75 |
function crdToggleTOC() { |
function crdToggleTOC() { |
76 |
$("html").toggleClass("no-toc"); |
$("html").toggleClass("no-toc"); |
77 |
if (typeof(Storage) !== "undefined") { |
if (typeof(Storage) !== "undefined") { |
78 |
sessionStorage.setItem("show-toc", $("html").hasClass("no-toc") ? "no" : "yes"); |
try { |
79 |
|
sessionStorage.setItem("show-toc", $("html").hasClass("no-toc") ? "no" : "yes"); |
80 |
|
} catch (e) {} |
81 |
} |
} |
82 |
crdUpdateTOCStatus(); |
crdUpdateTOCStatus(); |
83 |
} |
} |
158 |
}); |
}); |
159 |
var showToc = null; |
var showToc = null; |
160 |
if (typeof(Storage) !== "undefined") { |
if (typeof(Storage) !== "undefined") { |
161 |
var s = sessionStorage.getItem("show-toc"); |
try { |
162 |
if (s) |
var s = sessionStorage.getItem("show-toc"); |
163 |
showToc = s != "no"; |
if (s) |
164 |
|
showToc = s != "no"; |
165 |
|
} catch (e) {} |
166 |
} |
} |
167 |
if (!$("body aside") || !$("body aside").length) |
if (!$("body aside") || !$("body aside").length) |
168 |
showToc = false; |
showToc = false; |