do not do initial fold, if not set by cookie

This commit is contained in:
Q
2023-09-27 20:28:43 +03:00
parent 6375501087
commit 3c35a71879

View File

@@ -628,15 +628,6 @@ function fold_initial() {
fold_set_state(state); fold_set_state(state);
return; return;
} }
var slides = document.getElementsByClassName("head");
for (var i = 0; i < slides.length; i++) {
var el = slides.item(i);
var rect = el.getBoundingClientRect();
if (window.innerHeight * 1.5 < rect.top) {
var name = el.id.replace("head_", "");
fold_toggle(name);
}
}
} }
function fold_get_state() { function fold_get_state() {
@@ -691,6 +682,7 @@ var config = {
search: true, // include search bar search: true, // include search bar
style: null, // file to load css from style: null, // file to load css from
favicon: null, // link to favicon file favicon: null, // link to favicon file
foldCategories: true
}; };
// TEMPLATED:HIGHLIGHT_CODE // TEMPLATED:HIGHLIGHT_CODE
// TEMPLATED:CONFIG // TEMPLATED:CONFIG