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 c99178c commit cb4cea2Copy full SHA for cb4cea2
themes/CodeMeta-Pyramids/static/js/codemeta.js
@@ -8,11 +8,18 @@
8
9
const headerEl = document.querySelector('#sectionsNav');
10
11
-window.addEventListener('scroll', () => {
+function manageNav() {
12
if (window.scrollY > 50) {
13
headerEl.classList.remove('navbar-transparent');
14
} else if (window.scrollY < 50) {
15
headerEl.classList.add('navbar-transparent');
16
}
17
-
+}
18
+
19
+if (performance.navigation.type == performance.navigation.TYPE_RELOAD) {
20
+ manageNav();
21
22
23
+window.addEventListener('scroll', () => {
24
25
});
0 commit comments