index.html
2.79 KB
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>
<head>
<meta charset="utf-8">
<title>HTML5 Ad</title>
<script type="text/javascript">
// IAB source: modified to allow link testing
var clickTag = "https://businesstobruce.com/wiarton";
function getParameterByName(name)
{
var match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);
if (match == null || match == ""){
return clickTag;
} else{
return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
}
}
clickTag = getParameterByName('clickTag');
</script>
<style>
body{
margin: 0;
padding: 0;
}
a{
text-decoration: none;
}
#click-tag{
display: block;
position: absolute;
width: 100%;
height: 100%;
}
#border{
position: relative;
width: 100%;
height: 100%;
border: 1px solid #939598;
background-color: #FFFFFF;
overflow: hidden;
cursor: pointer;
box-sizing: border-box;
}
img {
position: absolute;
}
#logos {
right: 0px;
}
/* Custom per ad */
body{
width: 728px;
height: 90px;
}
#blue {
left: -402px;
}
</style>
</head>
<body>
<div id="border">
<img id="logos" src="assets/logos.gif">
<img id="img" src="assets/img.jpg">
<img id="blue" src="assets/blue.png">
<img id="triangle" src="assets/triangle.png">
<img id="check" src="assets/check.gif">
<a id="click-tag" href="javascript:window.open(window.clickTag)"></a>
</div>
<!-- GREENSOCK-->
<script src="//cdnjs.cloudflare.com/ajax/libs/gsap/latest/TweenMax.min.js"></script>
<script>
var tl = new TimelineMax({repeat:2});
tl.to("#check", 0.6, {left:-728, ease:Power1.easeInOut, delay:3.5 });
tl.to("#blue", 0.4, {left:0, ease:Power1.easeInOut, delay:3.3 });
tl.to("#img", 1.0, {opacity:0, ease:Power1.easeInOut, delay:-0.5 });
tl.to("#logos", 1.0, {opacity:1, ease:Power1.easeInOut, delay:3 });
</script>
</body>
</html>