-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
52 lines (51 loc) · 1.29 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html ⚡ lang="en">
<head>
<meta charset="utf-8" />
<title>Bento AdBlock Detector</title>
<meta
name="viewport"
content="width=device-width,minimum-scale=1,initial-scale=1"
/>
<script
async
custom-element="amp-ad"
src="/dist/v0/amp-ad-0.1.max.js"
></script>
<script
async
custom-element="amp-adblock-detector"
src="/dist/v0/amp-adblock-detector-1.0.max.js"
></script>
<script async src="/dist/amp.js"></script>
<script>
(self.AMP = self.AMP || []).push(function (AMP) {
AMP.toggleExperiment('bento', true);
});
</script>
</head>
<body>
<h1>
Bento AdBlock Detector
</h1>
<amp-adblock-detector layout="fixed" width="120" height="600" {...args}>
<amp-ad
width="120"
height="600"
type="doubleclick"
data-slot="/21730346048/test-skyscraper"
>
<div fallback>
<p>Error while loading Ad</p>
</div>
</amp-ad>
<div
status="blocked"
style="border: 2px solid red; border-radius: 10px; margin: 5px; padding: 5px;"
>
<h2>Ad Blocker Detected</h2>
<p>Please allow ads to run on this page.</p>
</div>
</amp-adblock-detector>
</body>
</html>