Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.





Panel
borderColor#5f5f5f
bgColor#dfdfdf
titleColor#5f5f5f
borderStylesolid
titleTable of Contents

Page Tree
rootClean Energy Communities





HTML
<style>
	#com-atlassian-confluence th, 
	#com-atlassian-confluence td,
	#com-atlassian-confluence .confluenceTh, 
	#com-atlassian-confluence .confluenceTd {
		border: 0;
	}
</style>


HTML
<script>
// Find out the varinitial state selectorsof =the ['#splitter-sidebar','.vsplitbar', '#splitter-button']; 
  AJS.$.each(selectors, function(){ 
    AJS.$(''+thissidebar and set cookies to remember it
jQuery.cookie("showsidebar",AJS.$("div#splitter-sidebar").width(), {expires:5});
jQuery.cookie("resetsidebar",jQuery("doc-sidebar"), {expires:5});
//If the sidebar is visible, hide it and the split bar...
if (AJS.$("div#splitter-sidebar").width() > 0) {
AJS.$(".vsplitbar").hide(); 
  }
AJS.$("div#splitter-sidebar").width(0);
// ...then change the width and position of the content...
AJS.$('#splitter-content').css({'width':'100%', 'left':'0'});
};
</script> // ...and hide the sidebar button
AJS.$("#splitter-button").hide();
// The unload function runs when the user navigates away from the page
jQuery(window).unload(function() {
// Read the cookie to find out where the sidebar was originally
var origstate = jQuery.cookie("showsidebar");
// If the sidebar is now hidden and it wasn't originally, Click the button
if (AJS.$("div#splitter-sidebar").width() != 300 && origstate == 300) {
AJS.$("#splitter-button").click();
};
// Restore the original value for the doc-sidebar cookie
jQuery.cookie("doc-sidebar",jQuery("resetsidebar"));
// Delete the temporary cookies
jQuery.cookie("showsidebar", null);
jQuery.cookie("resetsidebar", null);
});
</script>