We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fbb104 commit 31eea37Copy full SHA for 31eea37
html/js/garden.js
@@ -40,6 +40,7 @@ $(document).ready(function() {
40
}
41
42
function highlightSection() {
43
+ console.log('foo');
44
var offset = $(window).scrollTop();
45
var id = articles[0][1];
46
for(var i = 0, l = articles.length; i < l; i++) {
@@ -49,11 +50,12 @@ $(document).ready(function() {
49
50
51
selectNavigation(id, offset === 0);
52
53
+
54
+ var initSelection = setTimeout(highlightSection, 50);
55
$(document).scroll(function() {
56
+ clearTimeout(initSelection);
57
highlightSection();
58
});
- setTimeout(highlightSection, 0);
-
59
prettyPrint();
60
61
0 commit comments