do not do initial fold, if not set by cookie
This commit is contained in:
10
index.html
10
index.html
@@ -628,15 +628,6 @@ function fold_initial() {
|
||||
fold_set_state(state);
|
||||
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() {
|
||||
@@ -691,6 +682,7 @@ var config = {
|
||||
search: true, // include search bar
|
||||
style: null, // file to load css from
|
||||
favicon: null, // link to favicon file
|
||||
foldCategories: true
|
||||
};
|
||||
// TEMPLATED:HIGHLIGHT_CODE
|
||||
// TEMPLATED:CONFIG
|
||||
|
||||
Reference in New Issue
Block a user