Sha256: 7fbd0fe0b5ca7dcf124f891af6b81b377e2afb0797dee5f2c77183c154762cca

Contents?: true

Size: 1.11 KB

Versions: 84

Compression:

Stored size: 1.11 KB

Contents

$(".nav-tabs a.nav-tab-link").click(function () {
    $(".nav-tabs  a.nav-tab-link").removeClass('active');
});

const detect = document.querySelector("#detect");
const adsWrapper = document.querySelector(".wrapper");
const closePopup = document.getElementsByClassName("closePopup");
const extensions = document.querySelector(".extensions")

const refresh = () => {
    location.reload()
}


let adsBtn = document.querySelector(".allow-ads-btn")
adsBtn.addEventListener("click", () => {
    extensions.classList.add("show")
})


let adClasses = ["ad", "ads", "adsbox", "doubleclick", "ad-placement", "ad-placeholder", "adbadge", "BannerAd"];
for (let item of adClasses) {
    detect.classList.add(item);
}

let getProperty = window.getComputedStyle(detect).getPropertyValue("display");
if (!adsWrapper.classList.contains("show")) {
    getProperty == "none" ? adsWrapper.classList.add("show") : adsWrapper.classList.remove("show");
}
closePopup[0].addEventListener("click", () => {
    console.log(true)
    adsWrapper.classList.remove("show");
});
closePopup[1].addEventListener("click", () => {
    extensions.classList.remove("show");
});

Version data entries

84 entries across 84 versions & 1 rubygems

Version Path
word-games-theme-1.2.5 assets/js/adBlocker.js
word-games-theme-1.2.4 assets/js/adBlocker.js
word-games-theme-1.2.3 assets/js/adBlocker.js
word-games-theme-1.2.2 assets/js/adBlocker.js
word-games-theme-1.2.1 assets/js/adBlocker.js
word-games-theme-1.2.0 assets/js/adBlocker.js
word-games-theme-1.1.9 assets/js/adBlocker.js
word-games-theme-1.1.8 assets/js/adBlocker.js
word-games-theme-1.1.7 assets/js/adBlocker.js
word-games-theme-1.1.6 assets/js/adBlocker.js
word-games-theme-1.1.5 assets/js/adBlocker.js
word-games-theme-1.1.4 assets/js/adBlocker.js
word-games-theme-1.1.3 assets/js/adBlocker.js
word-games-theme-1.1.2 assets/js/adBlocker.js
word-games-theme-1.1.1 assets/js/adBlocker.js
word-games-theme-1.1.0 assets/js/adBlocker.js
word-games-theme-1.0.9 assets/js/adBlocker.js
word-games-theme-1.0.8 assets/js/adBlocker.js
word-games-theme-1.0.7 assets/js/adBlocker.js
word-games-theme-1.0.6 assets/js/adBlocker.js