-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
99 lines (95 loc) · 4.04 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<meta name="template.type" content="DCStudio">
<meta name="bundle.static" content="in.zip">
<meta name="ad.size" content="width=300,height=250">
<meta name="ad.fileSize" content="200">
<meta name="ad.numFiles" content="15">
<meta name="ad.staticFileSize" content="40">
<meta name="ad.compression" content="60">
<meta name="ad.minifyhtml" content="true">
<meta name="ad.spriteBackgroundColor" content="#FFFFFF"><!--background color for jpeg sprites-->
<title>HTML5 Template DC Studio</title>
<link inline rel="stylesheet" type="text/css" href="css/style.css">
<script type="text/javascript" src="https://s0.2mdn.net/ads/studio/Enabler.js"></script>
</head>
<body>
<div id="image-hack"></div>
<div id="background-border" class="size-collapsed"></div>
<div id="ad-root-wrapper" class="wrapper-collapsed">
<div id="adRoot" onclick="javascript:window.open(window.clickTag)">
<div class="bg-image">{{bgColor}}</div>
<div id="bgImage"></div>
<div id="headline">demo headline</div>
<div class="logo-sprite"></div>
<div class="logo-sprite-retina"></div>
<div id='demoSVG' class='abs-banner'></div>
<div id="catchAll" class="catch-all hidden"></div>
<div id="cta" class="cta hidden">click here!!!</div>
</div>
</div>
<!--Uncomment this to use CDN version of Greensock, remove local version if you do this. -->
<!--<script src="https://s0.2mdn.net/ads/studio/cached_libs/tweenmax_1.19.0_643d6911392a3398cb1607993edabfa7_min.js"></script>-->
<!-- build:js combined.js -->
<script type="text/javascript" src="js/vendor/bowser.min.js"></script><!-- If you don't need this you can remove it -->
<script type="text/javascript" src="js/vendor/greensock/TweenMax.min.js"></script>
<script type="text/javascript" src="js/vendor/SmoothifyPlugin.js"></script>
<script type="text/javascript" src="js/vendor/DynamicTemplate.js"></script>
<script type="text/javascript" src="js/vendor/DynamicAd.js"></script>
<script type="text/javascript" src="js/vendor/DataManager.js"></script>
<script type="text/javascript" src="js/vendor/DynamicBootloader.js"></script>
<!-- REMOVE IF YOU ARE NOT DOING DYNAMICS -->
<script type="text/javascript" src="js/svglib.js"></script>
<script type="text/javascript" src="js/svg-img-loader.js"></script>
<script type="text/javascript" src="js/Animation.js"></script>
<script type="text/javascript" src="js/Ad.js"></script>
<!-- endbuild -->
<script type="text/javascript">
try {
var dynamicAd = DynamicAd();
var dataManager = DataManager();
var downloadPreview = false;
var previewNumber = 1;
var sheetId = "1Z6z5t91qqYrFblYxC6AnHkP8duHGQrSaw9JoovZyBwI";
var projectId = "000_Dynamic_Ad_Template";
// var previewData = {}; // DO NOT DELETE - REQUIRED FOR AD GENERATOR
} catch (err) {
console.log('Dynamics Engine Not Included, Proceed as standard');
}
</script>
<script type="text/javascript">
window.clickHandler = function () {
Enabler.exit('exit', 'https://www.google.com'); // set initial URL here, can still be overwritten in DC Studio or DCM
};
var adVisibleFunc = function () {
console.log("Enabler VISIBLE");
// Enabler.setProfileId(10024307);
DynamicBootloader(window.ad.init);
};
var pageLoadedFunc = function () {
console.log("Enabler PAGE_LOADED");
if (!Enabler.isVisible()) {
Enabler.addEventListener(studio.events.StudioEvent.VISIBLE, adVisibleFunc);
} else {
adVisibleFunc();
}
};
var enablerInitFunc = function () {
console.log("Enabler INIT");
if (!Enabler.isPageLoaded()) {
Enabler.addEventListener(studio.events.StudioEvent.PAGE_LOADED, pageLoadedFunc);
} else {
pageLoadedFunc();
}
};
if (!Enabler.isInitialized()) {
Enabler.addEventListener(studio.events.StudioEvent.INIT, enablerInitFunc);
} else {
enablerInitFunc();
}
</script>
</body>
</html>