folding optional
This commit is contained in:
@@ -358,6 +358,7 @@ function filter_cookies(cookies,name) {
|
||||
}
|
||||
function fold_content(name) {
|
||||
if (!narrow_window()) { return }
|
||||
if (!config.foldCategories) { return }
|
||||
var title = document.getElementById("head_"+name);
|
||||
var el = document.getElementById("content_"+name);
|
||||
el.hidden = ! el.hidden;
|
||||
@@ -365,6 +366,7 @@ function fold_content(name) {
|
||||
}
|
||||
function fold_initial() {
|
||||
if (!narrow_window()) { return }
|
||||
if (!config.foldCategories) { return }
|
||||
var slides = document.getElementsByClassName("head");
|
||||
for(var i = 0; i < slides.length; i++) {
|
||||
var el = slides.item(i);
|
||||
@@ -395,7 +397,8 @@ var config = {
|
||||
style:null, // file to load css from
|
||||
favicon:null, // link to favicon file
|
||||
narrow:600, // pixel width that is narrow screen = single column table
|
||||
arrows:['📙','📚'] // Arrow characters for in/out tab icon
|
||||
arrows:['📙','📚'], // Arrow characters for in/out tab icon
|
||||
foldCategories:true // fold categories in single column mode
|
||||
};
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user