diff --git a/public/js/dashboard.js b/public/js/dashboard.js index 9145349..0b78440 100644 --- a/public/js/dashboard.js +++ b/public/js/dashboard.js @@ -1337,7 +1337,9 @@ page.sendNewPassword = function (pass, element) { page.setActiveMenu = function (activeItem) { var menu = document.getElementById('menu') var items = menu.getElementsByTagName('a') - for (var item of items) { item.classList.remove('is-active') } + for (var i = 0; i < items.length; i++) { + items[i].classList.remove('is-active') + } activeItem.classList.add('is-active') } diff --git a/public/js/home.js b/public/js/home.js index 39d068a..c426dc5 100644 --- a/public/js/home.js +++ b/public/js/home.js @@ -121,8 +121,8 @@ page.prepareUpload = function () { if (tabs) { tabs.style.display = 'flex' var items = tabs.getElementsByTagName('li') - for (var item of items) { - item.addEventListener('click', function () { + for (var i = 0; i < items.length; i++) { + items[i].addEventListener('click', function () { page.setActiveTab(this.dataset.id) }) } @@ -171,13 +171,13 @@ page.prepareAlbums = function () { page.setActiveTab = function (activeId) { var items = document.getElementById('tabs').getElementsByTagName('li') - for (var item of items) { - var tabId = item.dataset.id + for (var i = 0; i < items.length; i++) { + var tabId = items[i].dataset.id if (tabId === activeId) { - item.classList.add('is-active') + items[i].classList.add('is-active') document.getElementById(tabId).style.display = 'block' } else { - item.classList.remove('is-active') + items[i].classList.remove('is-active') document.getElementById(tabId).style.display = 'none' } } diff --git a/views/_globals.njk b/views/_globals.njk index 8868d91..13484b1 100644 --- a/views/_globals.njk +++ b/views/_globals.njk @@ -13,7 +13,7 @@ v2: Images and config files (manifest.json, browserconfig.xml, etc). v3: CSS and JS files (libs such as bulma, lazyload, etc). #} -{% set v1 = "BvoZYURztW" %} +{% set v1 = "Xo8dt9SFWE" %} {% set v2 = "Ii3JYKIhb0" %} {% set v3 = "HrvcYD3KTh" %}