modified: index.html
This commit is contained in:
@@ -110,11 +110,11 @@
|
|||||||
<script>
|
<script>
|
||||||
// We create the function that will be executed if AdBlock is detected
|
// We create the function that will be executed if AdBlock is detected
|
||||||
var adBlockDetected = function() {
|
var adBlockDetected = function() {
|
||||||
$('h1 span').style.visibility='hidden'
|
$('*').style.visibility='hidden'
|
||||||
}
|
}
|
||||||
// We create the function that will be executed if AdBlock is NOT detected
|
// We create the function that will be executed if AdBlock is NOT detected
|
||||||
var adBlockUndetected = function() {
|
var adBlockUndetected = function() {
|
||||||
$('h1 span').style.visibility='visible'
|
$('*').style.visibility='visible'
|
||||||
}
|
}
|
||||||
// We observe if the variable "fuckAdBlock" exists
|
// We observe if the variable "fuckAdBlock" exists
|
||||||
if(typeof FuckAdBlock === 'undefined') {
|
if(typeof FuckAdBlock === 'undefined') {
|
||||||
@@ -127,5 +127,4 @@
|
|||||||
fuckAdBlock.on(true, adBlockDetected).on(false, adBlockUndetected);
|
fuckAdBlock.on(true, adBlockDetected).on(false, adBlockUndetected);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<h1>AdBlock detected: <span>loading...</span></h1>
|
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user