-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathagario.html
76 lines (72 loc) · 2.68 KB
/
agario.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="minimal-ui, user-scalable=no, initial-scale=1, maximum-scale=1, width=device-width" />
<title>AdinPlay Ads</title>
<script>
window.aiptag = window.aiptag || {cmd: []};
aiptag.cmd.display = aiptag.cmd.display || [];
aiptag.cmd.player = aiptag.cmd.player || [];
//CMP tool settings
aiptag.cmp = {
show: true,
position: "centered", //centered, bottom
button: true,
buttonText: "Privacy settings",
buttonPosition: "bottom-left" //bottom-left, bottom-right, top-left, top-right
}
aiptag.cmd.player.push(function() {
aiptag.adplayer = new aipPlayer({
AD_WIDTH: 960,
AD_HEIGHT: 540,
AD_DISPLAY: 'default', //default, fullscreen, center, fill
LOADING_TEXT: 'loading advertisement',
PREROLL_ELEM: function(){return document.getElementById('preroll')},
AIP_COMPLETE: function (state) {
/*******************
***** WARNING *****
*******************
Please do not remove the PREROLL_ELEM
from the page, it will be hidden automaticly.
*/
alert("Preroll Ad Completed: " + state);
}
});
});
function show_preroll() {
//check if the adslib is loaded correctly or blocked by adblockers etc.
if (typeof aiptag.adplayer !== 'undefined') {
aiptag.cmd.player.push(function() { aiptag.adplayer.startPreRoll(); });
} else {
//Adlib didnt load this could be due to an adblocker, timeout etc.
//Please add your script here that starts the content, this usually is the same script as added in AIP_COMPLETE.
alert("Ad Could not be loaded, load your content here");
}
}
</script>
<script async src="//api.adinplay.com/libs/aiptag/pub/AGO/agario.surf/tag.min.js"></script>
</head>
<body style="margin:0;padding:0;">
<p>Documentation: <a href="https://adinplay.com/api/" target="_blank">https://adinplay.com/api/</a></p>
AIP ID: AGO/agario.surf<br>
AIP PLACEMENT ID: agario-surf_300x250<br>
AIP PLACEMENT ID: agario-surf_970x250<br>
<br>
<div id='agario-surf_300x250'>
<script type='text/javascript'>
aiptag.cmd.display.push(function() { aipDisplayTag.display('agario-surf_300x250'); });
</script>
</div>
<button onclick="aiptag.cmd.display.push(function() { aipDisplayTag.display('agario-surf_300x250'); });">Refresh Ad</button>
<div id='agario-surf_970x250'>
<script type='text/javascript'>
aiptag.cmd.display.push(function() { aipDisplayTag.display('agario-surf_970x250'); });
</script>
</div>
<button onclick="aiptag.cmd.display.push(function() { aipDisplayTag.display('agario-surf_970x250'); });">Refresh Ad</button>
<br><br>
<button onclick="show_preroll();">Show Video Ad</button> <div id="preroll"></div>
<br><br>
</body>
</html>