assets/js/TopScroll.js in appscms-tools-theme-0.4.4 vs assets/js/TopScroll.js in appscms-tools-theme-0.4.5
- old
+ new
@@ -1,9 +1,8 @@
-const alertbar = document.querySelector('.alertbar')
-window.addEventListener('scroll', () => {
- if (pageYOffset > 200) {
- alertbar.style.display = 'block'
- } else {
- alertbar.style.display = 'none'
- }
-})
-//
+const alertbar = document.querySelector('.alertbar')
+window.addEventListener('scroll', () => {
+ if (pageYOffset > 200) {
+ alertbar.style.display = 'block'
+ } else {
+ alertbar.style.display = 'none'
+ }
+})