Add adblocker warning. - bitreich-www - the bitreich www website generator | |
Log | |
Files | |
Refs | |
Tags | |
--- | |
commit 84eba7ea1e7edaf9edc5d717a318361818d36fc1 | |
parent 478ba1307abdaa638aa55c880917810bbbae9ff6 | |
Author: Christoph Lohmann <[email protected]> | |
Date: Sun, 22 Dec 2024 12:40:30 +0100 | |
Add adblocker warning. | |
Diffstat: | |
M 0-index.html.head | 2 ++ | |
M 9-redirect.html | 5 ++++- | |
A s/ads-prebid-wp-banner.js | 2 ++ | |
3 files changed, 8 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/0-index.html.head b/0-index.html.head | |
@@ -9,6 +9,8 @@ | |
<meta name="robots" content="follow" /> | |
<meta http-equiv="content-language" content="en" /> | |
<link rel="shortcut icon" href="/favicon.gif" type="image/gif" /> | |
+ | |
+ <script src="/ads-prebid-wp-banner.js"></script> | |
</head> | |
<body> | |
<h1>Bitreich.org</h1> | |
diff --git a/9-redirect.html b/9-redirect.html | |
@@ -1,6 +1,9 @@ | |
<script> | |
-/* Go Konga after 30 seconds. */ | |
+/* Adblocker not installed. */ | |
+if (window.runningAdsAllowed === true) { | |
+ alert("You are not using an adblocker. Please install some adblocker."… | |
+} | |
var now = new Date(); | |
var today = now.getDay(); | |
diff --git a/s/ads-prebid-wp-banner.js b/s/ads-prebid-wp-banner.js | |
@@ -0,0 +1,2 @@ | |
+window.runningAdsAllowed = true; | |
+ |