ac145fee by Dan Rempel

CWL fall ads for approval

1 parent 892ad92d
Showing 28 changed files with 843 additions and 0 deletions
1 <svg xmlns="http://www.w3.org/2000/svg" width="83.27" height="83.27" viewBox="0 0 83.27 83.27"><defs><style>.cls-1{opacity:0.75;}.cls-2{fill:none;stroke:#fff;stroke-miterlimit:10;stroke-width:8.11px;}.cls-3{fill:#fff;}</style></defs><title>mute-un</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><g class="cls-1"><circle class="cls-2" cx="41.64" cy="41.64" r="37.58"/><polygon class="cls-3" points="19.11 35.14 19.11 50.24 29.17 50.24 41.76 62.82 41.76 22.55 29.17 35.14 19.11 35.14"/><path class="cls-3" d="M46.79,59.71a18,18,0,0,0,0-34.24V20.22a23.11,23.11,0,0,1,0,44.86Z"/><path class="cls-3" d="M46.79,46.33a6.69,6.69,0,0,0,0-7.44V32.23a11.79,11.79,0,0,1,0,20.78Z"/></g></g></g></svg>
...\ No newline at end of file ...\ No newline at end of file
1 <svg xmlns="http://www.w3.org/2000/svg" width="83.27" height="83.27" viewBox="0 0 83.27 83.27"><defs><style>.cls-1{opacity:0.75;}.cls-2{fill:none;stroke:#fff;stroke-miterlimit:10;stroke-width:8.11px;}.cls-3{fill:#fff;}</style></defs><title>mute</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><g class="cls-1"><circle class="cls-2" cx="41.64" cy="41.64" r="37.58"/><g id="volume-off"><path class="cls-3" d="M53.08,42.69a10.93,10.93,0,0,0-6.29-10.07v5.54l6.29,6.29Zm6.29,0a18.9,18.9,0,0,1-1.26,6.54L61.89,53a21.18,21.18,0,0,0,2.52-10.57A22.69,22.69,0,0,0,46.79,20.29v5.28A18.14,18.14,0,0,1,59.37,42.69ZM22.38,20l-3.27,3.27L30.94,35.14H19.11v15.1H29.17L41.76,62.82V46L52.58,56.78a21,21,0,0,1-5.79,3v5.28a21.49,21.49,0,0,0,9.31-4.53l5,5,3.27-3.27L41.76,39.67Zm19.38,2.52-5.28,5.28,5.28,5.28Z"/></g></g></g></g></svg>
...\ No newline at end of file ...\ No newline at end of file
1 <svg xmlns="http://www.w3.org/2000/svg" width="83.27" height="83.27" viewBox="0 0 83.27 83.27"><defs><style>.cls-1{opacity:0.75;}.cls-2{fill:none;stroke:#fff;stroke-miterlimit:10;stroke-width:8.11px;}.cls-3{fill:#fff;}</style></defs><title>pause</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><g class="cls-1"><circle class="cls-2" cx="41.64" cy="41.64" r="37.58"/><rect class="cls-3" x="26.26" y="23.5" width="10.32" height="36.42"/><rect class="cls-3" x="46.9" y="23.5" width="10.32" height="36.42"/></g></g></g></svg>
...\ No newline at end of file ...\ No newline at end of file
1 <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="83.28" height="83.28" viewBox="0 0 83.28 83.28"><defs><style>.cls-1{opacity:0.75;}.cls-2{fill:none;stroke:#fff;stroke-miterlimit:10;stroke-width:8.11px;}.cls-3{fill:#fff;}</style></defs><title>play</title><g class="cls-1"><circle class="cls-2" cx="41.64" cy="41.64" r="37.58"/><polygon class="cls-3" points="33.38 60.14 33.38 23.68 62.26 41.91 33.38 60.14"/></g></svg>
...\ No newline at end of file ...\ No newline at end of file
1 <!DOCTYPE html>
2 <head>
3
4 <meta charset="utf-8">
5 <title>HTML5 Ad</title>
6 <!--
7 <script type="text/javascript">
8
9 // IAB source: modified to allow link testing
10 var clickTag = "http://thecommonwell.ca/wave";
11 function getParameterByName(name)
12 {
13 var match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);
14 if (match == null || match == ""){
15 return clickTag;
16 } else{
17 return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
18 }
19 }
20 clickTag = getParameterByName('clickTag');
21 </script>
22 -->
23 <script type="text/javascript" src="https://quickresource.eyereturn.com/eyebuild/eyebuild_1_19.js"></script>
24 <script type="text/javascript">
25 window.onload = function() {
26 eyeBuild.initialize();
27 window.isVideoClick = false;
28
29 var videoPlays = 0;
30 var v0 = false;
31 var v25 = false;
32 var v50 = false;
33 var v75 = false;
34
35 var video = document.getElementById("video");
36 var videoControls = document.getElementById("video-controls");
37 var playButton = document.getElementById("play-pause");
38 var muteButton = document.getElementById("mute");
39
40 playButton.addEventListener("click", function(e) {
41 if (video.paused == true) {
42 play();
43 eyeBuild.doIAT(0);
44 } else {
45 pause();
46 eyeBuild.doIAT(1);
47 }
48 });
49 var play = function(){
50 video.play();
51 videoPlays++;
52 videoControls.className = ""
53 toggleClass(videoControls, "playing");
54 toggleClass(playButton, "playing");
55 }
56 var pause = function(){
57 video.pause();
58 toggleClass(videoControls, "playing");
59 toggleClass(playButton, "playing");
60 }
61 video.addEventListener('ended', function(e){
62 video.currentTime = 0;
63 pause();
64 videoControls.className = "start"
65 v0 = false;
66 v25 = false;
67 v50 = false;
68 v75 = false;
69 eyeBuild.doIAT(9);
70 }, false);
71
72 muteButton.addEventListener("click", function(e) {
73 if (video.muted == true) {
74 eyeBuild.doIAT(4);
75 } else {
76 eyeBuild.doIAT(3);
77 }
78 video.muted = !video.muted;
79 toggleClass(muteButton, "muted");
80 });
81
82 // track video plays
83 video.addEventListener('timeupdate', function(e){
84 var pct = video.currentTime / video.duration *100;
85 if (pct > 75 && !v75){
86 v75 = true;
87 eyeBuild.doIAT(8);
88 }else if (pct > 50 && !v50){
89 v50 = true;
90 eyeBuild.doIAT(7);
91 }else if (pct > 25 && !v25){
92 v25 = true;
93 eyeBuild.doIAT(6);
94 }else if (pct > 0 && !v0){
95 v0 = true;
96 eyeBuild.doIAT(5);
97 if(videoPlays>1){
98 eyeBuild.doIAT(10);
99 }
100 }
101 }, false);
102
103 }
104
105
106 function toggleClass(element, toggleClass){
107 var currentClass = element.className;
108 if(currentClass.indexOf(toggleClass) > -1){ //has class
109 newClass = currentClass.replace(toggleClass,"")
110 }else{
111 newClass = currentClass + " " + toggleClass;
112 }
113 element.className = newClass;
114 }
115
116 </script>
117
118
119 <style>
120
121 body{
122 margin: 0;
123 padding: 0;
124 width: 300px;
125 height: 600px;
126 line-height: 1.2;
127 font-size: 27px;
128 letter-spacing: .4;
129 color: #CD040B;
130 font-family: "Neue Haas Grotesk", Arial, sans-serif;
131 /*font-weight: 800;*/ /*BOLD-800, MEDIUM-600, ROMAN - 400*/
132 font-style: normal;
133 }
134
135 a{
136 text-decoration: none;
137 color: inherit;
138 }
139 #click-tag{
140 display: block;
141 position: absolute;
142 width: 100%;
143 height: 434px;
144 top:166px;
145 }
146
147 #border{
148 position: relative;
149 width: 300px;
150 height: 600px;
151 /* border: 1px solid #55565A; */
152 background-color: #FFFFFF;
153 overflow: hidden;
154 cursor: pointer;
155 box-sizing: border-box;
156 }
157
158 #border:hover #cta{
159 background-color: #666666;
160 }
161
162 #border:active #cta{
163 background-color: #000000;
164 }
165
166 #video, #video-controls{
167 position: absolute;
168 width: 257px;
169 height: 145px;
170 left:22px;
171 top:25px;
172 }
173 #video-controls.start{
174 background: url(assets/video-poster.jpg) no-repeat center center;
175 opacity:1;
176 }
177 #video-controls.playing {
178 opacity:0;
179 }
180
181 #video-controls:hover {
182 opacity:1;
183 }
184
185 #video-controls button{
186 border: none;
187 cursor: pointer;
188 width: 100%;
189 height: 100%;
190 }
191
192 button#play-pause{
193 background: url(assets/play.svg) no-repeat center center;
194 background-size: 83px 83px;
195 }
196 button#play-pause.playing{
197 background: url(assets/pause.svg) no-repeat 30px 119px; /* modify this y to adjust pause icon position */
198 background-size: 20px 20px;
199 }
200 button#play-pause:hover{
201 background-size: 85px 85px;
202 }
203 button#play-pause.playing:hover{
204 background-position: 29px 118px; /* modify this y to adjust pause icon hover position (should be 1px less than non hover) */
205 background-size: 21px 21px;
206 }
207
208
209 button#mute{
210 background: url(assets/mute-un.svg) no-repeat center center;
211 background-size: 20px 20px;
212 position: absolute;
213 width: 22px;
214 height: 22px;
215 left:5px;
216 bottom: 5px;
217 }
218 button#mute.muted{
219 background: url(assets/mute.svg) no-repeat center center;
220 background-size: 20px 20px;
221 }
222
223 button#mute:hover{
224 background-size: 22px 22px;
225 }
226
227
228 </style>
229
230 </head>
231
232 <body>
233 <div id="border">
234
235 <div id="img"><img id="logoImg" src="assets/img.gif" width="300" height="600" style="border-style:none"></div>
236 <video id="video">
237 <source src="https://player.vimeo.com/external/286231961.sd.mp4?s=68056c45098af9b747cbe30d8e87d4cdafcef83a&profile_id=164" type="video/mp4" class="A">
238 Your browser doesn't support HTML5 video.
239 </video>
240 <div id="video-controls" class="start">
241 <button type="button" id="play-pause" class=""></button>
242 <button type="button" id="mute" class=""></button>
243 </div>
244
245 <a id="click-tag" href="javascript:eyeBuild.doClick(0)"></a>
246 <!--<a id="click-tag" href="javascript:window.open(window.clickTag)"></a>-->
247 </div>
248
249 </body>
250
251 </html>
...\ No newline at end of file ...\ No newline at end of file
1 <svg xmlns="http://www.w3.org/2000/svg" width="83.27" height="83.27" viewBox="0 0 83.27 83.27"><defs><style>.cls-1{opacity:0.75;}.cls-2{fill:none;stroke:#fff;stroke-miterlimit:10;stroke-width:8.11px;}.cls-3{fill:#fff;}</style></defs><title>mute-un</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><g class="cls-1"><circle class="cls-2" cx="41.64" cy="41.64" r="37.58"/><polygon class="cls-3" points="19.11 35.14 19.11 50.24 29.17 50.24 41.76 62.82 41.76 22.55 29.17 35.14 19.11 35.14"/><path class="cls-3" d="M46.79,59.71a18,18,0,0,0,0-34.24V20.22a23.11,23.11,0,0,1,0,44.86Z"/><path class="cls-3" d="M46.79,46.33a6.69,6.69,0,0,0,0-7.44V32.23a11.79,11.79,0,0,1,0,20.78Z"/></g></g></g></svg>
...\ No newline at end of file ...\ No newline at end of file
1 <svg xmlns="http://www.w3.org/2000/svg" width="83.27" height="83.27" viewBox="0 0 83.27 83.27"><defs><style>.cls-1{opacity:0.75;}.cls-2{fill:none;stroke:#fff;stroke-miterlimit:10;stroke-width:8.11px;}.cls-3{fill:#fff;}</style></defs><title>mute</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><g class="cls-1"><circle class="cls-2" cx="41.64" cy="41.64" r="37.58"/><g id="volume-off"><path class="cls-3" d="M53.08,42.69a10.93,10.93,0,0,0-6.29-10.07v5.54l6.29,6.29Zm6.29,0a18.9,18.9,0,0,1-1.26,6.54L61.89,53a21.18,21.18,0,0,0,2.52-10.57A22.69,22.69,0,0,0,46.79,20.29v5.28A18.14,18.14,0,0,1,59.37,42.69ZM22.38,20l-3.27,3.27L30.94,35.14H19.11v15.1H29.17L41.76,62.82V46L52.58,56.78a21,21,0,0,1-5.79,3v5.28a21.49,21.49,0,0,0,9.31-4.53l5,5,3.27-3.27L41.76,39.67Zm19.38,2.52-5.28,5.28,5.28,5.28Z"/></g></g></g></g></svg>
...\ No newline at end of file ...\ No newline at end of file
1 <svg xmlns="http://www.w3.org/2000/svg" width="83.27" height="83.27" viewBox="0 0 83.27 83.27"><defs><style>.cls-1{opacity:0.75;}.cls-2{fill:none;stroke:#fff;stroke-miterlimit:10;stroke-width:8.11px;}.cls-3{fill:#fff;}</style></defs><title>pause</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><g class="cls-1"><circle class="cls-2" cx="41.64" cy="41.64" r="37.58"/><rect class="cls-3" x="26.26" y="23.5" width="10.32" height="36.42"/><rect class="cls-3" x="46.9" y="23.5" width="10.32" height="36.42"/></g></g></g></svg>
...\ No newline at end of file ...\ No newline at end of file
1 <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="83.28" height="83.28" viewBox="0 0 83.28 83.28"><defs><style>.cls-1{opacity:0.75;}.cls-2{fill:none;stroke:#fff;stroke-miterlimit:10;stroke-width:8.11px;}.cls-3{fill:#fff;}</style></defs><title>play</title><g class="cls-1"><circle class="cls-2" cx="41.64" cy="41.64" r="37.58"/><polygon class="cls-3" points="33.38 60.14 33.38 23.68 62.26 41.91 33.38 60.14"/></g></svg>
...\ No newline at end of file ...\ No newline at end of file
1 <!DOCTYPE html>
2 <head>
3
4 <meta charset="utf-8">
5 <title>HTML5 Ad</title>
6 <!--
7 <script type="text/javascript">
8
9 // IAB source: modified to allow link testing
10 var clickTag = "http://thecommonwell.ca/wave";
11 function getParameterByName(name)
12 {
13 var match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);
14 if (match == null || match == ""){
15 return clickTag;
16 } else{
17 return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
18 }
19 }
20 clickTag = getParameterByName('clickTag');
21 </script>
22 -->
23 <script type="text/javascript" src="https://quickresource.eyereturn.com/eyebuild/eyebuild_1_19.js"></script>
24 <script type="text/javascript">
25 window.onload = function() {
26 eyeBuild.initialize();
27 window.isVideoClick = false;
28
29 var videoPlays = 0;
30 var v0 = false;
31 var v25 = false;
32 var v50 = false;
33 var v75 = false;
34
35 var video = document.getElementById("video");
36 var videoControls = document.getElementById("video-controls");
37 var playButton = document.getElementById("play-pause");
38 var muteButton = document.getElementById("mute");
39
40 playButton.addEventListener("click", function(e) {
41 if (video.paused == true) {
42 play();
43 eyeBuild.doIAT(0);
44 } else {
45 pause();
46 eyeBuild.doIAT(1);
47 }
48 });
49 var play = function(){
50 video.play();
51 videoPlays++;
52 videoControls.className = ""
53 toggleClass(videoControls, "playing");
54 toggleClass(playButton, "playing");
55 }
56 var pause = function(){
57 video.pause();
58 toggleClass(videoControls, "playing");
59 toggleClass(playButton, "playing");
60 }
61 video.addEventListener('ended', function(e){
62 video.currentTime = 0;
63 pause();
64 videoControls.className = "start"
65 v0 = false;
66 v25 = false;
67 v50 = false;
68 v75 = false;
69 eyeBuild.doIAT(9);
70 }, false);
71
72 muteButton.addEventListener("click", function(e) {
73 if (video.muted == true) {
74 eyeBuild.doIAT(4);
75 } else {
76 eyeBuild.doIAT(3);
77 }
78 video.muted = !video.muted;
79 toggleClass(muteButton, "muted");
80 });
81
82 // track video plays
83 video.addEventListener('timeupdate', function(e){
84 var pct = video.currentTime / video.duration *100;
85 if (pct > 75 && !v75){
86 v75 = true;
87 eyeBuild.doIAT(8);
88 }else if (pct > 50 && !v50){
89 v50 = true;
90 eyeBuild.doIAT(7);
91 }else if (pct > 25 && !v25){
92 v25 = true;
93 eyeBuild.doIAT(6);
94 }else if (pct > 0 && !v0){
95 v0 = true;
96 eyeBuild.doIAT(5);
97 if(videoPlays>1){
98 eyeBuild.doIAT(10);
99 }
100 }
101 }, false);
102
103 }
104
105
106 function toggleClass(element, toggleClass){
107 var currentClass = element.className;
108 if(currentClass.indexOf(toggleClass) > -1){ //has class
109 newClass = currentClass.replace(toggleClass,"")
110 }else{
111 newClass = currentClass + " " + toggleClass;
112 }
113 element.className = newClass;
114 }
115
116 </script>
117
118
119 <style>
120
121 body{
122 margin: 0;
123 padding: 0;
124 width: 300px;
125 height: 600px;
126 line-height: 1.2;
127 font-size: 27px;
128 letter-spacing: .4;
129 color: #CD040B;
130 font-family: "Neue Haas Grotesk", Arial, sans-serif;
131 /*font-weight: 800;*/ /*BOLD-800, MEDIUM-600, ROMAN - 400*/
132 font-style: normal;
133 }
134
135 a{
136 text-decoration: none;
137 color: inherit;
138 }
139 #click-tag{
140 display: block;
141 position: absolute;
142 width: 100%;
143 height: 434px;
144 top:166px;
145 }
146
147 #border{
148 position: relative;
149 width: 300px;
150 height: 600px;
151 /* border: 1px solid #55565A; */
152 background-color: #FFFFFF;
153 overflow: hidden;
154 cursor: pointer;
155 box-sizing: border-box;
156 }
157
158 #border:hover #cta{
159 background-color: #666666;
160 }
161
162 #border:active #cta{
163 background-color: #000000;
164 }
165
166 #video, #video-controls{
167 position: absolute;
168 width: 257px;
169 height: 145px;
170 left:22px;
171 top:25px;
172 }
173 #video-controls.start{
174 background: url(assets/video-poster.jpg) no-repeat center center;
175 opacity:1;
176 }
177 #video-controls.playing {
178 opacity:0;
179 }
180
181 #video-controls:hover {
182 opacity:1;
183 }
184
185 #video-controls button{
186 border: none;
187 cursor: pointer;
188 width: 100%;
189 height: 100%;
190 }
191
192 button#play-pause{
193 background: url(assets/play.svg) no-repeat center center;
194 background-size: 83px 83px;
195 }
196 button#play-pause.playing{
197 background: url(assets/pause.svg) no-repeat 30px 119px; /* modify this y to adjust pause icon position */
198 background-size: 20px 20px;
199 }
200 button#play-pause:hover{
201 background-size: 85px 85px;
202 }
203 button#play-pause.playing:hover{
204 background-position: 29px 118px; /* modify this y to adjust pause icon hover position (should be 1px less than non hover) */
205 background-size: 21px 21px;
206 }
207
208
209 button#mute{
210 background: url(assets/mute-un.svg) no-repeat center center;
211 background-size: 20px 20px;
212 position: absolute;
213 width: 22px;
214 height: 22px;
215 left:5px;
216 bottom: 5px;
217 }
218 button#mute.muted{
219 background: url(assets/mute.svg) no-repeat center center;
220 background-size: 20px 20px;
221 }
222
223 button#mute:hover{
224 background-size: 22px 22px;
225 }
226
227
228 </style>
229
230 </head>
231
232 <body>
233 <div id="border">
234
235 <div id="img"><img id="logoImg" src="assets/img.gif" width="300" height="600" style="border-style:none"></div>
236 <video id="video">
237 <source src="https://player.vimeo.com/external/286231961.sd.mp4?s=68056c45098af9b747cbe30d8e87d4cdafcef83a&profile_id=164" type="video/mp4" class="A">
238 Your browser doesn't support HTML5 video.
239 </video>
240 <div id="video-controls" class="start">
241 <button type="button" id="play-pause" class=""></button>
242 <button type="button" id="mute" class=""></button>
243 </div>
244
245 <a id="click-tag" href="javascript:eyeBuild.doClick(0)"></a>
246 <!--<a id="click-tag" href="javascript:window.open(window.clickTag)"></a>-->
247 </div>
248
249 </body>
250
251 </html>
...\ No newline at end of file ...\ No newline at end of file
1 <svg xmlns="http://www.w3.org/2000/svg" width="83.27" height="83.27" viewBox="0 0 83.27 83.27"><defs><style>.cls-1{opacity:0.75;}.cls-2{fill:none;stroke:#fff;stroke-miterlimit:10;stroke-width:8.11px;}.cls-3{fill:#fff;}</style></defs><title>mute-un</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><g class="cls-1"><circle class="cls-2" cx="41.64" cy="41.64" r="37.58"/><polygon class="cls-3" points="19.11 35.14 19.11 50.24 29.17 50.24 41.76 62.82 41.76 22.55 29.17 35.14 19.11 35.14"/><path class="cls-3" d="M46.79,59.71a18,18,0,0,0,0-34.24V20.22a23.11,23.11,0,0,1,0,44.86Z"/><path class="cls-3" d="M46.79,46.33a6.69,6.69,0,0,0,0-7.44V32.23a11.79,11.79,0,0,1,0,20.78Z"/></g></g></g></svg>
...\ No newline at end of file ...\ No newline at end of file
1 <svg xmlns="http://www.w3.org/2000/svg" width="83.27" height="83.27" viewBox="0 0 83.27 83.27"><defs><style>.cls-1{opacity:0.75;}.cls-2{fill:none;stroke:#fff;stroke-miterlimit:10;stroke-width:8.11px;}.cls-3{fill:#fff;}</style></defs><title>mute</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><g class="cls-1"><circle class="cls-2" cx="41.64" cy="41.64" r="37.58"/><g id="volume-off"><path class="cls-3" d="M53.08,42.69a10.93,10.93,0,0,0-6.29-10.07v5.54l6.29,6.29Zm6.29,0a18.9,18.9,0,0,1-1.26,6.54L61.89,53a21.18,21.18,0,0,0,2.52-10.57A22.69,22.69,0,0,0,46.79,20.29v5.28A18.14,18.14,0,0,1,59.37,42.69ZM22.38,20l-3.27,3.27L30.94,35.14H19.11v15.1H29.17L41.76,62.82V46L52.58,56.78a21,21,0,0,1-5.79,3v5.28a21.49,21.49,0,0,0,9.31-4.53l5,5,3.27-3.27L41.76,39.67Zm19.38,2.52-5.28,5.28,5.28,5.28Z"/></g></g></g></g></svg>
...\ No newline at end of file ...\ No newline at end of file
1 <svg xmlns="http://www.w3.org/2000/svg" width="83.27" height="83.27" viewBox="0 0 83.27 83.27"><defs><style>.cls-1{opacity:0.75;}.cls-2{fill:none;stroke:#fff;stroke-miterlimit:10;stroke-width:8.11px;}.cls-3{fill:#fff;}</style></defs><title>pause</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><g class="cls-1"><circle class="cls-2" cx="41.64" cy="41.64" r="37.58"/><rect class="cls-3" x="26.26" y="23.5" width="10.32" height="36.42"/><rect class="cls-3" x="46.9" y="23.5" width="10.32" height="36.42"/></g></g></g></svg>
...\ No newline at end of file ...\ No newline at end of file
1 <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="83.28" height="83.28" viewBox="0 0 83.28 83.28"><defs><style>.cls-1{opacity:0.75;}.cls-2{fill:none;stroke:#fff;stroke-miterlimit:10;stroke-width:8.11px;}.cls-3{fill:#fff;}</style></defs><title>play</title><g class="cls-1"><circle class="cls-2" cx="41.64" cy="41.64" r="37.58"/><polygon class="cls-3" points="33.38 60.14 33.38 23.68 62.26 41.91 33.38 60.14"/></g></svg>
...\ No newline at end of file ...\ No newline at end of file
1 <!DOCTYPE html>
2 <head>
3
4 <meta charset="utf-8">
5 <title>HTML5 Ad</title>
6 <!--
7 <script type="text/javascript">
8
9 // IAB source: modified to allow link testing
10 var clickTag = "http://thecommonwell.ca/wave";
11 function getParameterByName(name)
12 {
13 var match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);
14 if (match == null || match == ""){
15 return clickTag;
16 } else{
17 return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
18 }
19 }
20 clickTag = getParameterByName('clickTag');
21 </script>
22 -->
23 <script type="text/javascript" src="https://quickresource.eyereturn.com/eyebuild/eyebuild_1_19.js"></script>
24 <script type="text/javascript">
25 window.onload = function() {
26 eyeBuild.initialize();
27 window.isVideoClick = false;
28
29 var videoPlays = 0;
30 var v0 = false;
31 var v25 = false;
32 var v50 = false;
33 var v75 = false;
34
35 var video = document.getElementById("video");
36 var videoControls = document.getElementById("video-controls");
37 var playButton = document.getElementById("play-pause");
38 var muteButton = document.getElementById("mute");
39
40 playButton.addEventListener("click", function(e) {
41 if (video.paused == true) {
42 play();
43 eyeBuild.doIAT(0);
44 } else {
45 pause();
46 eyeBuild.doIAT(1);
47 }
48 });
49 var play = function(){
50 video.play();
51 videoPlays++;
52 videoControls.className = ""
53 toggleClass(videoControls, "playing");
54 toggleClass(playButton, "playing");
55 }
56 var pause = function(){
57 video.pause();
58 toggleClass(videoControls, "playing");
59 toggleClass(playButton, "playing");
60 }
61 video.addEventListener('ended', function(e){
62 video.currentTime = 0;
63 pause();
64 videoControls.className = "start"
65 v0 = false;
66 v25 = false;
67 v50 = false;
68 v75 = false;
69 eyeBuild.doIAT(9);
70 }, false);
71
72 muteButton.addEventListener("click", function(e) {
73 if (video.muted == true) {
74 eyeBuild.doIAT(4);
75 } else {
76 eyeBuild.doIAT(3);
77 }
78 video.muted = !video.muted;
79 toggleClass(muteButton, "muted");
80 });
81
82 // track video plays
83 video.addEventListener('timeupdate', function(e){
84 var pct = video.currentTime / video.duration *100;
85 if (pct > 75 && !v75){
86 v75 = true;
87 eyeBuild.doIAT(8);
88 }else if (pct > 50 && !v50){
89 v50 = true;
90 eyeBuild.doIAT(7);
91 }else if (pct > 25 && !v25){
92 v25 = true;
93 eyeBuild.doIAT(6);
94 }else if (pct > 0 && !v0){
95 v0 = true;
96 eyeBuild.doIAT(5);
97 if(videoPlays>1){
98 eyeBuild.doIAT(10);
99 }
100 }
101 }, false);
102
103 }
104
105
106 function toggleClass(element, toggleClass){
107 var currentClass = element.className;
108 if(currentClass.indexOf(toggleClass) > -1){ //has class
109 newClass = currentClass.replace(toggleClass,"")
110 }else{
111 newClass = currentClass + " " + toggleClass;
112 }
113 element.className = newClass;
114 }
115
116 </script>
117
118
119 <style>
120
121 body{
122 margin: 0;
123 padding: 0;
124 width: 300px;
125 height: 600px;
126 line-height: 1.2;
127 font-size: 27px;
128 letter-spacing: .4;
129 color: #CD040B;
130 font-family: "Neue Haas Grotesk", Arial, sans-serif;
131 /*font-weight: 800;*/ /*BOLD-800, MEDIUM-600, ROMAN - 400*/
132 font-style: normal;
133 }
134
135 a{
136 text-decoration: none;
137 color: inherit;
138 }
139 #click-tag{
140 display: block;
141 position: absolute;
142 width: 100%;
143 height: 434px;
144 top:166px;
145 }
146
147 #border{
148 position: relative;
149 width: 300px;
150 height: 600px;
151 /* border: 1px solid #55565A; */
152 background-color: #FFFFFF;
153 overflow: hidden;
154 cursor: pointer;
155 box-sizing: border-box;
156 }
157
158 #border:hover #cta{
159 background-color: #666666;
160 }
161
162 #border:active #cta{
163 background-color: #000000;
164 }
165
166 #video, #video-controls{
167 position: absolute;
168 width: 257px;
169 height: 145px;
170 left:22px;
171 top:25px;
172 }
173 #video-controls.start{
174 background: url(assets/video-poster.jpg) no-repeat center center;
175 opacity:1;
176 }
177 #video-controls.playing {
178 opacity:0;
179 }
180
181 #video-controls:hover {
182 opacity:1;
183 }
184
185 #video-controls button{
186 border: none;
187 cursor: pointer;
188 width: 100%;
189 height: 100%;
190 }
191
192 button#play-pause{
193 background: url(assets/play.svg) no-repeat center center;
194 background-size: 83px 83px;
195 }
196 button#play-pause.playing{
197 background: url(assets/pause.svg) no-repeat 30px 119px; /* modify this y to adjust pause icon position */
198 background-size: 20px 20px;
199 }
200 button#play-pause:hover{
201 background-size: 85px 85px;
202 }
203 button#play-pause.playing:hover{
204 background-position: 29px 118px; /* modify this y to adjust pause icon hover position (should be 1px less than non hover) */
205 background-size: 21px 21px;
206 }
207
208
209 button#mute{
210 background: url(assets/mute-un.svg) no-repeat center center;
211 background-size: 20px 20px;
212 position: absolute;
213 width: 22px;
214 height: 22px;
215 left:5px;
216 bottom: 5px;
217 }
218 button#mute.muted{
219 background: url(assets/mute.svg) no-repeat center center;
220 background-size: 20px 20px;
221 }
222
223 button#mute:hover{
224 background-size: 22px 22px;
225 }
226
227
228 </style>
229
230 </head>
231
232 <body>
233 <div id="border">
234
235 <div id="img"><img id="logoImg" src="assets/img.gif" width="300" height="600" style="border-style:none"></div>
236 <video id="video">
237 <source src="https://player.vimeo.com/external/286231961.sd.mp4?s=68056c45098af9b747cbe30d8e87d4cdafcef83a&profile_id=164" type="video/mp4" class="A">
238 Your browser doesn't support HTML5 video.
239 </video>
240 <div id="video-controls" class="start">
241 <button type="button" id="play-pause" class=""></button>
242 <button type="button" id="mute" class=""></button>
243 </div>
244
245 <a id="click-tag" href="javascript:eyeBuild.doClick(0)"></a>
246 <!--<a id="click-tag" href="javascript:window.open(window.clickTag)"></a>-->
247 </div>
248
249 </body>
250
251 </html>
...\ No newline at end of file ...\ No newline at end of file
1 <!DOCTYPE html>
2 <html>
3
4 <head>
5 <meta charset="utf-8">
6 <meta http-equiv="X-UA-Compatible" content="IE=edge">
7 <title>HTML5 Online Ads</title>
8 <meta name="description" content="An interactive getting started guide for Brackets.">
9 <link rel="stylesheet" href="main.css">
10 <script src="main.js"></script>
11 </head>
12 <body>
13
14 <!-- <h3><a href="index.html">Postmedia & Acuity</a> &nbsp; &nbsp; | &nbsp; &nbsp;<a href="index_twn.html">TWN</a></h3> -->
15
16 <iframe id='' class="b300x600 " scrolling="no" src="CWL_2018_Fall_Online_300x600_A/index.html"></iframe>
17 <iframe id='' class="b300x600 " scrolling="no" src="CWL_2018_Fall_Online_300x600_B/index.html"></iframe>
18 <iframe id='' class="b300x600 " scrolling="no" src="CWL_2018_Fall_Online_300x600_C/index.html"></iframe>
19
20
21
22 </body>
23 </html>
1 html {
2 background-color: #d4d4d4;
3 }
4
5 body {
6 margin: 0 auto;
7 padding: 2em 2em 4em;
8 font-family: Helvetica, Arial, sans-serif;
9 font-size: 14px;
10 line-height: 1.5em;
11 color: #8e8e8e;
12 }
13
14 h1, h2, h3, h4, h5, h6 {
15 font-weight: 600;
16 line-height: 1.3em;
17 margin-left: 10px;
18 }
19 a {
20 color: #8e8e8e;
21 }
22 a:hover {
23 color: #FFFFFF;
24 }
25 iframe, img {
26 margin: 10px;
27 /* border: 1px #d4d4d4 solid; */
28 border: 0px fuchsia solid;
29 overflow: hidden;
30 iframe::-webkit-scrollbar {
31 display: none;
32 };
33 }
34
35 .stacked {
36 display: flex;
37
38 }
39 .b300x250 {
40 width: 300px;
41 height: 250px;
42 }
43 .b728x90 {
44 width: 728px;
45 height: 90px;
46 }
47 .b300x600 {
48 width: 300px;
49 height: 600px;
50 }
51 .b600x566 {
52 width: 600px;
53 height: 566px;
54 }
1 js file
...\ No newline at end of file ...\ No newline at end of file