Anonymous

MediaWiki:Common.js: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 849: Line 849:
const shouldShowDownload = window.navigator.userAgent.match(/iPhone|iPad|iPod/i) && !window.navigator.userAgent.includes('gonative melvorwiki');
const shouldShowDownload = window.navigator.userAgent.match(/iPhone|iPad|iPod/i) && !window.navigator.userAgent.includes('gonative melvorwiki');
     const els = document.getElementsByClassName('ios-app-download');
     const els = document.getElementsByClassName('ios-app-download');
    /**Array.from(els).forEach((el) => {
for (let i = 0; i < els.length; i++) {
    if(shouldShowDownload) {
    if (shouldShowDownload) {
    el.style.display = 'block';
        els[i].style.display = 'block';
    }
    } else {
    else {
        els[i].style.display = 'none';
    el.style.display = 'none';
    }
    }
}
    });**/
}
}