EY 2016Fall first release for approval
101 KB
85.9 KB
112 KB
106 KB
89.6 KB
117 KB
32.3 KB
31.2 KB
32.3 KB
92.9 KB
39.7 KB
37 KB
38.4 KB
86.3 KB
38 KB
33.5 KB
35.5 KB
109 KB
94 KB
112 KB
31.1 KB
28.6 KB
32.1 KB
15.8 KB
| 1 | <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="52" height="52" viewBox="0 0 52 52"><defs><style>.cls-1{isolation:isolate;}.cls-2{opacity:0.5;mix-blend-mode:multiply;}.cls-3{fill:#ffd400;}.cls-4{fill:#231f20;}</style></defs><title>play</title><g class="cls-1"><g id="Layer_2" data-name="Layer 2"><image class="cls-2" width="52" height="52" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADUAAAA1CAYAAADh5qNwAAAACXBIWXMAAAsSAAALEgHS3X78AAAEdUlEQVRoQ+2aPWgVWRiGjz9rNBpRN7oQRAiLa7WIFpJVkHQWWVBUbO22keCms42NEExIs82WgYholUpshGDaNAFR2CpFYooFMYVR/Mm+j3kPdzLee8/9SWRnuMLTzXzv+875zncmcw3r6+uhbCQvKCLJC1Lo346tJqWZInlBHfM7c+zaAvI1WwrbaJCs8d3mB7NnG4i1o1Y2cDJgKlA2CCJdYq/oFvvNgRw9LZCvEWt3W68rVELGgDWDNRIohum2gUPiiOgVR8Ux8dMWcsx1e61zyLrox3B1g6UC0Qr7XPSwxfrECdEvfhYnxS/mVBvEGiddt986fdZFHx/4wVfNYLVCxRWiwEHxo4v328Cv4qw4JwbEb+K8uNAG511nwHXPWueUddHHB37wFVesoVCkp3dZ6h4XOh42nuBpiw6KS+J3cUVcFdfE9Ta45jpXXPeSdQasiz4+8IMv/OFzZ91QodJ6PAV6mCXvc8Ez4qIYEjfETfGHuCWGxW3xpxlpgnjPbde55bo3rTNkXfTxgR984Q+f37RgrdaLq0Qvs/SnXfiyxRC/I0bFPTEm7otxMdEC475/zPVGXX/Yepetjw/84Cuu1jctWC0US8oYZerwVOhpWmDIAjzdu2JS/C2mxAPxUDwyj5sg3vPQdaZcd9I6I9ZFHx/4wRf+8InfhkKxtIxTpg+bdTBstMKwhf4S02JGPBXPxKx4buaaIN4z6zpPXXfaOneti/5g2PCDL/zhMxkq7icOPs4JlpopxKbladESkxZ8EjZMzYsF8UK8FK9a4KXvX3C9Odeftt4d6+MDP/jCHz6/7qtGQ9G3nBeMV6YRm5depzVmLIyJf8SiWBLL4nWGlTpkr1v2/Yuut+D6M9YbtT4+8IMv/NUPFSqTj4ONVxVOdqYNfcyYZSqxiel5WmTeBjDzr3gj3prVJoj3vHGdJdedt86UddHHB37whT984nfTBKwXilcWTngORM4P+prpxGam93maizaCuXdiTbw3HxogXrvm+1ddb9H1n1lvzPr4wA++8NdQqPhqlA3FSc/ByDnC2GVKsanZAzxVnjCGMPlRfGqBj77/nestuf6s9e5bHx/4yYfaNNZToRifvMJw4nNAcp4wfplWbG72Aq3Dk8bYZ/GlBT77/jXXW3b959Ybtz4+8IOvpkP1hOqhJkIlFFPrtU3QQjzxaHK9CeI9n1znreu+CpVQE6F6KHy2FWrExTkw50Il1GrYHCoVolawGGo1VELNWW/C+t81FPthK0J9CP+DUCthe0KthE6oTqhOqE6oHJ1QYZtDlfKcKvwbReHf/Ur5ll6qv6dK+Zdvub5ROFi5viZVCVWa7360IF88S/WFNobaG0r2LZ3x2BVK9qtH3Ffl+H0qMyxY0rhaxf4lMdeCPIXS/OYbWzC+MhX/1/kqwXgiLHW3izJ1GKe9oSj/j6JGsN2h6P/jJRcshssGjCFhzzYQa0etGORrmFAnUDJUjYD5oNnA7ZKvuUkz5bHpUE2EbZuUZorkBUUkeUER+Q/WUqTGGZMG2QAAAABJRU5ErkJggg=="/><rect class="cls-3" x="10.6" y="10.3" width="30.27" height="30.27"/><polygon class="cls-4" points="22.85 33.56 22.85 17.31 30.97 25.44 22.85 33.56"/></g></g></svg> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
87.4 KB
62.7 KB
95.9 KB
10.1 KB
101 KB
85.9 KB
112 KB
| 1 | <!DOCTYPE html> | ||
| 2 | <head> | ||
| 3 | |||
| 4 | <meta charset="utf-8"> | ||
| 5 | <title>HTML5 Ad</title> | ||
| 6 | <script type="text/javascript" src="https://quickresource.eyereturn.com/eyebuild/eyebuild_1_19.js"></script> | ||
| 7 | <link href="assets/video-js.min.css" rel="stylesheet"> | ||
| 8 | <script src="assets/video.min.js"></script> | ||
| 9 | <script src="assets/TweenMax.min.js"></script> | ||
| 10 | <script type="text/javascript"> | ||
| 11 | |||
| 12 | /** | ||
| 13 | * This section uses videojs with eyeBuild, tracking plays, clicks, etc. | ||
| 14 | **/ | ||
| 15 | window.onload = function() { | ||
| 16 | eyeBuild.initialize(); | ||
| 17 | window.isVideoClick = false; | ||
| 18 | |||
| 19 | //var video = document.getElementsByTagName("video")[0]; | ||
| 20 | var myVideoJsPlayer = videojs('video'); | ||
| 21 | var video = document.querySelector("#video video"); | ||
| 22 | var playButton = document.getElementById("play-pause"); | ||
| 23 | var txt = document.getElementById("txt"); | ||
| 24 | |||
| 25 | videojs(video, {}, function(){ | ||
| 26 | |||
| 27 | var videoPlays = 0; | ||
| 28 | var v0 = false; | ||
| 29 | var v25 = false; | ||
| 30 | var v50 = false; | ||
| 31 | var v75 = false; | ||
| 32 | |||
| 33 | video.addEventListener("play", function(e) { | ||
| 34 | eyeBuild.doIAT(0); | ||
| 35 | videoPlays++; | ||
| 36 | playButton.setAttribute("class", "play"); | ||
| 37 | txt.setAttribute("class", "play"); | ||
| 38 | }); | ||
| 39 | video.addEventListener("pause", function(e) { | ||
| 40 | eyeBuild.doIAT(1); | ||
| 41 | playButton.setAttribute("class", "pause"); | ||
| 42 | txt.setAttribute("class", "pause"); | ||
| 43 | }); | ||
| 44 | video.addEventListener("ended", function(e) { | ||
| 45 | video.currentTime = 0; | ||
| 46 | playButton.setAttribute("class", "pause"); | ||
| 47 | v0 = false; | ||
| 48 | v25 = false; | ||
| 49 | v50 = false; | ||
| 50 | v75 = false; | ||
| 51 | eyeBuild.doIAT(9); | ||
| 52 | }); | ||
| 53 | |||
| 54 | // track video plays | ||
| 55 | video.addEventListener('timeupdate', function(e){ | ||
| 56 | var pct = video.currentTime / video.duration *100; | ||
| 57 | if (pct > 75 && !v75){ | ||
| 58 | v75 = true; | ||
| 59 | eyeBuild.doIAT(8); | ||
| 60 | }else if (pct > 50 && !v50){ | ||
| 61 | v50 = true; | ||
| 62 | eyeBuild.doIAT(7); | ||
| 63 | }else if (pct > 25 && !v25){ | ||
| 64 | v25 = true; | ||
| 65 | eyeBuild.doIAT(6); | ||
| 66 | }else if (pct > 0 && !v0){ | ||
| 67 | v0 = true; | ||
| 68 | eyeBuild.doIAT(5); | ||
| 69 | if(videoPlays>1){ | ||
| 70 | eyeBuild.doIAT(10); | ||
| 71 | } | ||
| 72 | } | ||
| 73 | }, false); | ||
| 74 | |||
| 75 | playButton.addEventListener('click', function(e){ | ||
| 76 | myVideoJsPlayer.play(); | ||
| 77 | }, false); | ||
| 78 | |||
| 79 | }); | ||
| 80 | |||
| 81 | |||
| 82 | /* | ||
| 83 | var closeButton = document.getElementById("close"); | ||
| 84 | closeButton.addEventListener("click", function(e) { | ||
| 85 | eyeBuild.doClose(); | ||
| 86 | }); | ||
| 87 | */ | ||
| 88 | |||
| 89 | |||
| 90 | } | ||
| 91 | </script> | ||
| 92 | |||
| 93 | |||
| 94 | <style> | ||
| 95 | |||
| 96 | body{ | ||
| 97 | margin: 0; | ||
| 98 | padding: 0; | ||
| 99 | width: 1000px; | ||
| 100 | height: 700px; | ||
| 101 | line-height: 1.2; | ||
| 102 | font-size: 27px; | ||
| 103 | letter-spacing: .4; | ||
| 104 | color: #CD040B; | ||
| 105 | /* font-family: "Neue Haas Grotesk", Arial, sans-serif; */ | ||
| 106 | /*font-weight: 800;*/ /*BOLD-800, MEDIUM-600, ROMAN - 400*/ | ||
| 107 | font-style: normal; | ||
| 108 | } | ||
| 109 | |||
| 110 | a{ | ||
| 111 | text-decoration: none; | ||
| 112 | color: inherit; | ||
| 113 | } | ||
| 114 | #click-tag{ | ||
| 115 | display: block; | ||
| 116 | position: absolute; | ||
| 117 | width: 100%; | ||
| 118 | height: 100%; | ||
| 119 | } | ||
| 120 | |||
| 121 | #border{ | ||
| 122 | position: relative; | ||
| 123 | width: 1000px; | ||
| 124 | height: 700px; | ||
| 125 | border: 1px solid #55565A; | ||
| 126 | overflow: hidden; | ||
| 127 | cursor: pointer; | ||
| 128 | box-sizing: border-box; | ||
| 129 | background-color: black; | ||
| 130 | /* | ||
| 131 | background: url(assets/back1.jpg) no-repeat #000; | ||
| 132 | background-size: 1000px 700px; | ||
| 133 | */ | ||
| 134 | } | ||
| 135 | |||
| 136 | #video, #play-pause{ | ||
| 137 | position: absolute; | ||
| 138 | width: 930px; | ||
| 139 | height: 523px; | ||
| 140 | left:34px; | ||
| 141 | top:34px; | ||
| 142 | border:none; | ||
| 143 | } | ||
| 144 | #play-pause{ | ||
| 145 | cursor: pointer; | ||
| 146 | background: url(assets/play.svg) no-repeat center center; | ||
| 147 | } | ||
| 148 | #play-pause.pause:hover{ | ||
| 149 | background-size: 60px 60px; | ||
| 150 | } | ||
| 151 | #play-pause.pause:active{ | ||
| 152 | background-size: 50px 50px; | ||
| 153 | } | ||
| 154 | #play-pause.pause{ | ||
| 155 | background-size: 55px 55px; | ||
| 156 | display: block; | ||
| 157 | } | ||
| 158 | #play-pause.play{ | ||
| 159 | display: none; | ||
| 160 | } | ||
| 161 | .vjs-big-play-button{ | ||
| 162 | display: none !important; | ||
| 163 | } | ||
| 164 | |||
| 165 | #txt { | ||
| 166 | position: absolute; | ||
| 167 | width: 315px; | ||
| 168 | height: 265px; | ||
| 169 | left: 57px; | ||
| 170 | bottom:382px; | ||
| 171 | z-index: 10; | ||
| 172 | opacity: 0; | ||
| 173 | transform-origin: bottom; | ||
| 174 | } | ||
| 175 | #txt.play { | ||
| 176 | display: none; | ||
| 177 | } | ||
| 178 | #txt.pause { | ||
| 179 | display: block; | ||
| 180 | } | ||
| 181 | #overlay { | ||
| 182 | position: absolute; | ||
| 183 | width: 941px; | ||
| 184 | height: 78px; | ||
| 185 | left: 36px; | ||
| 186 | bottom:22px; | ||
| 187 | } | ||
| 188 | </style> | ||
| 189 | </head> | ||
| 190 | |||
| 191 | <body> | ||
| 192 | <div id="border"> | ||
| 193 | <a id="click-tag" href="javascript:eyeBuild.doClick(0);"> | ||
| 194 | <img id="txt" style="pause" src="assets/slice.png" alt="txt"> | ||
| 195 | <img id="overlay" src="assets/overlay.png" alt="txt"> | ||
| 196 | </a> | ||
| 197 | <video id="video" class="video-js vjs-default-skin vjs-big-play-centered" controls preload="auto" poster="assets/poster1.jpg" data-setup='{"example_option":true}'> | ||
| 198 | <source src="assets/vidA.mp4" type="video/mp4" /> | ||
| 199 | <!-- <source src="http://video-js.zencoder.com/oceans-clip.webm" type="video/webm" /> --> | ||
| 200 | <!-- <source src="http://video-js.zencoder.com/oceans-clip.ogv" type="video/ogg" /> --> | ||
| 201 | </video> | ||
| 202 | <button id="play-pause" class="pause"></button> | ||
| 203 | </div> | ||
| 204 | |||
| 205 | <script> | ||
| 206 | |||
| 207 | function stage1(){ | ||
| 208 | var tl = new TimelineMax({repeat:0, repeatDelay:2}); | ||
| 209 | |||
| 210 | tl.fromTo("#txt", .3, {opacity:0, scaleY:.01, ease:Power1.easeIn, delay:.5 }, {opacity:1, scaleY:1, ease:Power1.easeIn, delay:.5 }); | ||
| 211 | |||
| 212 | console.log( "time: " + tl.totalDuration() ); | ||
| 213 | } | ||
| 214 | |||
| 215 | //--------------------- | ||
| 216 | stage1(); | ||
| 217 | |||
| 218 | |||
| 219 | |||
| 220 | </script> | ||
| 221 | |||
| 222 | </body> | ||
| 223 | |||
| 224 | </html> | ||
| ... | \ 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 | <script type="text/javascript" src="https://quickresource.eyereturn.com/eyebuild/eyebuild_1_19.js"></script> | ||
| 7 | <link href="assets/video-js.min.css" rel="stylesheet"> | ||
| 8 | <script src="assets/video.min.js"></script> | ||
| 9 | <script src="assets/TweenMax.min.js"></script> | ||
| 10 | <script type="text/javascript"> | ||
| 11 | |||
| 12 | /** | ||
| 13 | * This section uses videojs with eyeBuild, tracking plays, clicks, etc. | ||
| 14 | **/ | ||
| 15 | window.onload = function() { | ||
| 16 | eyeBuild.initialize(); | ||
| 17 | window.isVideoClick = false; | ||
| 18 | |||
| 19 | //var video = document.getElementsByTagName("video")[0]; | ||
| 20 | var myVideoJsPlayer = videojs('video'); | ||
| 21 | var video = document.querySelector("#video video"); | ||
| 22 | var playButton = document.getElementById("play-pause"); | ||
| 23 | var txt = document.getElementById("txt"); | ||
| 24 | |||
| 25 | videojs(video, {}, function(){ | ||
| 26 | |||
| 27 | var videoPlays = 0; | ||
| 28 | var v0 = false; | ||
| 29 | var v25 = false; | ||
| 30 | var v50 = false; | ||
| 31 | var v75 = false; | ||
| 32 | |||
| 33 | video.addEventListener("play", function(e) { | ||
| 34 | eyeBuild.doIAT(0); | ||
| 35 | videoPlays++; | ||
| 36 | playButton.setAttribute("class", "play"); | ||
| 37 | txt.setAttribute("class", "play"); | ||
| 38 | }); | ||
| 39 | video.addEventListener("pause", function(e) { | ||
| 40 | eyeBuild.doIAT(1); | ||
| 41 | playButton.setAttribute("class", "pause"); | ||
| 42 | txt.setAttribute("class", "pause"); | ||
| 43 | }); | ||
| 44 | video.addEventListener("ended", function(e) { | ||
| 45 | video.currentTime = 0; | ||
| 46 | playButton.setAttribute("class", "pause"); | ||
| 47 | v0 = false; | ||
| 48 | v25 = false; | ||
| 49 | v50 = false; | ||
| 50 | v75 = false; | ||
| 51 | eyeBuild.doIAT(9); | ||
| 52 | }); | ||
| 53 | |||
| 54 | // track video plays | ||
| 55 | video.addEventListener('timeupdate', function(e){ | ||
| 56 | var pct = video.currentTime / video.duration *100; | ||
| 57 | if (pct > 75 && !v75){ | ||
| 58 | v75 = true; | ||
| 59 | eyeBuild.doIAT(8); | ||
| 60 | }else if (pct > 50 && !v50){ | ||
| 61 | v50 = true; | ||
| 62 | eyeBuild.doIAT(7); | ||
| 63 | }else if (pct > 25 && !v25){ | ||
| 64 | v25 = true; | ||
| 65 | eyeBuild.doIAT(6); | ||
| 66 | }else if (pct > 0 && !v0){ | ||
| 67 | v0 = true; | ||
| 68 | eyeBuild.doIAT(5); | ||
| 69 | if(videoPlays>1){ | ||
| 70 | eyeBuild.doIAT(10); | ||
| 71 | } | ||
| 72 | } | ||
| 73 | }, false); | ||
| 74 | |||
| 75 | playButton.addEventListener('click', function(e){ | ||
| 76 | myVideoJsPlayer.play(); | ||
| 77 | }, false); | ||
| 78 | |||
| 79 | }); | ||
| 80 | |||
| 81 | |||
| 82 | /* | ||
| 83 | var closeButton = document.getElementById("close"); | ||
| 84 | closeButton.addEventListener("click", function(e) { | ||
| 85 | eyeBuild.doClose(); | ||
| 86 | }); | ||
| 87 | */ | ||
| 88 | |||
| 89 | |||
| 90 | } | ||
| 91 | </script> | ||
| 92 | |||
| 93 | |||
| 94 | <style> | ||
| 95 | |||
| 96 | body{ | ||
| 97 | margin: 0; | ||
| 98 | padding: 0; | ||
| 99 | width: 1000px; | ||
| 100 | height: 700px; | ||
| 101 | line-height: 1.2; | ||
| 102 | font-size: 27px; | ||
| 103 | letter-spacing: .4; | ||
| 104 | color: #CD040B; | ||
| 105 | /* font-family: "Neue Haas Grotesk", Arial, sans-serif; */ | ||
| 106 | /*font-weight: 800;*/ /*BOLD-800, MEDIUM-600, ROMAN - 400*/ | ||
| 107 | font-style: normal; | ||
| 108 | } | ||
| 109 | |||
| 110 | a{ | ||
| 111 | text-decoration: none; | ||
| 112 | color: inherit; | ||
| 113 | } | ||
| 114 | #click-tag{ | ||
| 115 | display: block; | ||
| 116 | position: absolute; | ||
| 117 | width: 100%; | ||
| 118 | height: 100%; | ||
| 119 | } | ||
| 120 | |||
| 121 | #border{ | ||
| 122 | position: relative; | ||
| 123 | width: 1000px; | ||
| 124 | height: 700px; | ||
| 125 | border: 1px solid #55565A; | ||
| 126 | overflow: hidden; | ||
| 127 | cursor: pointer; | ||
| 128 | box-sizing: border-box; | ||
| 129 | background-color: black; | ||
| 130 | /* | ||
| 131 | background: url(assets/back1.jpg) no-repeat #000; | ||
| 132 | background-size: 1000px 700px; | ||
| 133 | */ | ||
| 134 | } | ||
| 135 | |||
| 136 | #video, #play-pause{ | ||
| 137 | position: absolute; | ||
| 138 | width: 930px; | ||
| 139 | height: 523px; | ||
| 140 | left:34px; | ||
| 141 | top:34px; | ||
| 142 | border:none; | ||
| 143 | } | ||
| 144 | #play-pause{ | ||
| 145 | cursor: pointer; | ||
| 146 | background: url(assets/play.svg) no-repeat center center; | ||
| 147 | } | ||
| 148 | #play-pause.pause:hover{ | ||
| 149 | background-size: 60px 60px; | ||
| 150 | } | ||
| 151 | #play-pause.pause:active{ | ||
| 152 | background-size: 50px 50px; | ||
| 153 | } | ||
| 154 | #play-pause.pause{ | ||
| 155 | background-size: 55px 55px; | ||
| 156 | display: block; | ||
| 157 | } | ||
| 158 | #play-pause.play{ | ||
| 159 | display: none; | ||
| 160 | } | ||
| 161 | .vjs-big-play-button{ | ||
| 162 | display: none !important; | ||
| 163 | } | ||
| 164 | |||
| 165 | #txt { | ||
| 166 | position: absolute; | ||
| 167 | width: 315px; | ||
| 168 | height: 265px; | ||
| 169 | left: 57px; | ||
| 170 | bottom:382px; | ||
| 171 | z-index: 10; | ||
| 172 | opacity: 0; | ||
| 173 | transform-origin: bottom; | ||
| 174 | } | ||
| 175 | #txt.play { | ||
| 176 | display: none; | ||
| 177 | } | ||
| 178 | #txt.pause { | ||
| 179 | display: block; | ||
| 180 | } | ||
| 181 | #overlay { | ||
| 182 | position: absolute; | ||
| 183 | width: 941px; | ||
| 184 | height: 78px; | ||
| 185 | left: 36px; | ||
| 186 | bottom:22px; | ||
| 187 | } | ||
| 188 | </style> | ||
| 189 | </head> | ||
| 190 | |||
| 191 | <body> | ||
| 192 | <div id="border"> | ||
| 193 | <a id="click-tag" href="javascript:eyeBuild.doClick(0);"> | ||
| 194 | <img id="txt" style="pause" src="assets/slice.png" alt="txt"> | ||
| 195 | <img id="overlay" src="assets/overlay.png" alt="txt"> | ||
| 196 | </a> | ||
| 197 | <video id="video" class="video-js vjs-default-skin vjs-big-play-centered" controls preload="auto" poster="assets/poster2.jpg" data-setup='{"example_option":true}'> | ||
| 198 | <source src="assets/vidB.mp4" type="video/mp4" /> | ||
| 199 | <!-- <source src="http://video-js.zencoder.com/oceans-clip.webm" type="video/webm" /> --> | ||
| 200 | <!-- <source src="http://video-js.zencoder.com/oceans-clip.ogv" type="video/ogg" /> --> | ||
| 201 | </video> | ||
| 202 | <button id="play-pause" class="pause"></button> | ||
| 203 | </div> | ||
| 204 | |||
| 205 | <script> | ||
| 206 | |||
| 207 | function stage1(){ | ||
| 208 | var tl = new TimelineMax({repeat:0, repeatDelay:2}); | ||
| 209 | |||
| 210 | tl.fromTo("#txt", .3, {opacity:0, scaleY:.01, ease:Power1.easeIn, delay:.5 }, {opacity:1, scaleY:1, ease:Power1.easeIn, delay:.5 }); | ||
| 211 | |||
| 212 | console.log( "time: " + tl.totalDuration() ); | ||
| 213 | } | ||
| 214 | |||
| 215 | //--------------------- | ||
| 216 | stage1(); | ||
| 217 | |||
| 218 | |||
| 219 | |||
| 220 | </script> | ||
| 221 | |||
| 222 | </body> | ||
| 223 | |||
| 224 | </html> | ||
| ... | \ 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 | <script type="text/javascript" src="https://quickresource.eyereturn.com/eyebuild/eyebuild_1_19.js"></script> | ||
| 7 | <link href="assets/video-js.min.css" rel="stylesheet"> | ||
| 8 | <script src="assets/video.min.js"></script> | ||
| 9 | <script src="assets/TweenMax.min.js"></script> | ||
| 10 | <script type="text/javascript"> | ||
| 11 | |||
| 12 | /** | ||
| 13 | * This section uses videojs with eyeBuild, tracking plays, clicks, etc. | ||
| 14 | **/ | ||
| 15 | window.onload = function() { | ||
| 16 | eyeBuild.initialize(); | ||
| 17 | window.isVideoClick = false; | ||
| 18 | |||
| 19 | //var video = document.getElementsByTagName("video")[0]; | ||
| 20 | var myVideoJsPlayer = videojs('video'); | ||
| 21 | var video = document.querySelector("#video video"); | ||
| 22 | var playButton = document.getElementById("play-pause"); | ||
| 23 | var txt = document.getElementById("txt"); | ||
| 24 | |||
| 25 | videojs(video, {}, function(){ | ||
| 26 | |||
| 27 | var videoPlays = 0; | ||
| 28 | var v0 = false; | ||
| 29 | var v25 = false; | ||
| 30 | var v50 = false; | ||
| 31 | var v75 = false; | ||
| 32 | |||
| 33 | video.addEventListener("play", function(e) { | ||
| 34 | eyeBuild.doIAT(0); | ||
| 35 | videoPlays++; | ||
| 36 | playButton.setAttribute("class", "play"); | ||
| 37 | txt.setAttribute("class", "play"); | ||
| 38 | }); | ||
| 39 | video.addEventListener("pause", function(e) { | ||
| 40 | eyeBuild.doIAT(1); | ||
| 41 | playButton.setAttribute("class", "pause"); | ||
| 42 | txt.setAttribute("class", "pause"); | ||
| 43 | }); | ||
| 44 | video.addEventListener("ended", function(e) { | ||
| 45 | video.currentTime = 0; | ||
| 46 | playButton.setAttribute("class", "pause"); | ||
| 47 | v0 = false; | ||
| 48 | v25 = false; | ||
| 49 | v50 = false; | ||
| 50 | v75 = false; | ||
| 51 | eyeBuild.doIAT(9); | ||
| 52 | }); | ||
| 53 | |||
| 54 | // track video plays | ||
| 55 | video.addEventListener('timeupdate', function(e){ | ||
| 56 | var pct = video.currentTime / video.duration *100; | ||
| 57 | if (pct > 75 && !v75){ | ||
| 58 | v75 = true; | ||
| 59 | eyeBuild.doIAT(8); | ||
| 60 | }else if (pct > 50 && !v50){ | ||
| 61 | v50 = true; | ||
| 62 | eyeBuild.doIAT(7); | ||
| 63 | }else if (pct > 25 && !v25){ | ||
| 64 | v25 = true; | ||
| 65 | eyeBuild.doIAT(6); | ||
| 66 | }else if (pct > 0 && !v0){ | ||
| 67 | v0 = true; | ||
| 68 | eyeBuild.doIAT(5); | ||
| 69 | if(videoPlays>1){ | ||
| 70 | eyeBuild.doIAT(10); | ||
| 71 | } | ||
| 72 | } | ||
| 73 | }, false); | ||
| 74 | |||
| 75 | playButton.addEventListener('click', function(e){ | ||
| 76 | myVideoJsPlayer.play(); | ||
| 77 | }, false); | ||
| 78 | |||
| 79 | }); | ||
| 80 | |||
| 81 | |||
| 82 | /* | ||
| 83 | var closeButton = document.getElementById("close"); | ||
| 84 | closeButton.addEventListener("click", function(e) { | ||
| 85 | eyeBuild.doClose(); | ||
| 86 | }); | ||
| 87 | */ | ||
| 88 | |||
| 89 | |||
| 90 | } | ||
| 91 | </script> | ||
| 92 | |||
| 93 | |||
| 94 | <style> | ||
| 95 | |||
| 96 | body{ | ||
| 97 | margin: 0; | ||
| 98 | padding: 0; | ||
| 99 | width: 1000px; | ||
| 100 | height: 700px; | ||
| 101 | line-height: 1.2; | ||
| 102 | font-size: 27px; | ||
| 103 | letter-spacing: .4; | ||
| 104 | color: #CD040B; | ||
| 105 | /* font-family: "Neue Haas Grotesk", Arial, sans-serif; */ | ||
| 106 | /*font-weight: 800;*/ /*BOLD-800, MEDIUM-600, ROMAN - 400*/ | ||
| 107 | font-style: normal; | ||
| 108 | } | ||
| 109 | |||
| 110 | a{ | ||
| 111 | text-decoration: none; | ||
| 112 | color: inherit; | ||
| 113 | } | ||
| 114 | #click-tag{ | ||
| 115 | display: block; | ||
| 116 | position: absolute; | ||
| 117 | width: 100%; | ||
| 118 | height: 100%; | ||
| 119 | } | ||
| 120 | |||
| 121 | #border{ | ||
| 122 | position: relative; | ||
| 123 | width: 1000px; | ||
| 124 | height: 700px; | ||
| 125 | border: 1px solid #55565A; | ||
| 126 | overflow: hidden; | ||
| 127 | cursor: pointer; | ||
| 128 | box-sizing: border-box; | ||
| 129 | background-color: black; | ||
| 130 | /* | ||
| 131 | background: url(assets/back1.jpg) no-repeat #000; | ||
| 132 | background-size: 1000px 700px; | ||
| 133 | */ | ||
| 134 | } | ||
| 135 | |||
| 136 | #video, #play-pause{ | ||
| 137 | position: absolute; | ||
| 138 | width: 930px; | ||
| 139 | height: 523px; | ||
| 140 | left:34px; | ||
| 141 | top:34px; | ||
| 142 | border:none; | ||
| 143 | } | ||
| 144 | #play-pause{ | ||
| 145 | cursor: pointer; | ||
| 146 | background: url(assets/play.svg) no-repeat center center; | ||
| 147 | } | ||
| 148 | #play-pause.pause:hover{ | ||
| 149 | background-size: 60px 60px; | ||
| 150 | } | ||
| 151 | #play-pause.pause:active{ | ||
| 152 | background-size: 50px 50px; | ||
| 153 | } | ||
| 154 | #play-pause.pause{ | ||
| 155 | background-size: 55px 55px; | ||
| 156 | display: block; | ||
| 157 | } | ||
| 158 | #play-pause.play{ | ||
| 159 | display: none; | ||
| 160 | } | ||
| 161 | .vjs-big-play-button{ | ||
| 162 | display: none !important; | ||
| 163 | } | ||
| 164 | |||
| 165 | #txt { | ||
| 166 | position: absolute; | ||
| 167 | width: 315px; | ||
| 168 | height: 265px; | ||
| 169 | left: 57px; | ||
| 170 | bottom:382px; | ||
| 171 | z-index: 10; | ||
| 172 | opacity: 0; | ||
| 173 | transform-origin: bottom; | ||
| 174 | } | ||
| 175 | #txt.play { | ||
| 176 | display: none; | ||
| 177 | } | ||
| 178 | #txt.pause { | ||
| 179 | display: block; | ||
| 180 | } | ||
| 181 | #overlay { | ||
| 182 | position: absolute; | ||
| 183 | width: 941px; | ||
| 184 | height: 78px; | ||
| 185 | left: 36px; | ||
| 186 | bottom:22px; | ||
| 187 | } | ||
| 188 | </style> | ||
| 189 | </head> | ||
| 190 | |||
| 191 | <body> | ||
| 192 | <div id="border"> | ||
| 193 | <a id="click-tag" href="javascript:eyeBuild.doClick(0);"> | ||
| 194 | <img id="txt" style="pause" src="assets/slice.png" alt="txt"> | ||
| 195 | <img id="overlay" src="assets/overlay.png" alt="txt"> | ||
| 196 | </a> | ||
| 197 | <video id="video" class="video-js vjs-default-skin vjs-big-play-centered" controls preload="auto" poster="assets/poster3.jpg" data-setup='{"example_option":true}'> | ||
| 198 | <source src="assets/vidC.mp4" type="video/mp4" /> | ||
| 199 | <!-- <source src="http://video-js.zencoder.com/oceans-clip.webm" type="video/webm" /> --> | ||
| 200 | <!-- <source src="http://video-js.zencoder.com/oceans-clip.ogv" type="video/ogg" /> --> | ||
| 201 | </video> | ||
| 202 | <button id="play-pause" class="pause"></button> | ||
| 203 | </div> | ||
| 204 | |||
| 205 | <script> | ||
| 206 | |||
| 207 | function stage1(){ | ||
| 208 | var tl = new TimelineMax({repeat:0, repeatDelay:2}); | ||
| 209 | |||
| 210 | tl.fromTo("#txt", .3, {opacity:0, scaleY:.01, ease:Power1.easeIn, delay:.5 }, {opacity:1, scaleY:1, ease:Power1.easeIn, delay:.5 }); | ||
| 211 | |||
| 212 | console.log( "time: " + tl.totalDuration() ); | ||
| 213 | } | ||
| 214 | |||
| 215 | //--------------------- | ||
| 216 | stage1(); | ||
| 217 | |||
| 218 | |||
| 219 | |||
| 220 | </script> | ||
| 221 | |||
| 222 | </body> | ||
| 223 | |||
| 224 | </html> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
15.9 KB
| 1 | <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="52" height="52" viewBox="0 0 52 52"><defs><style>.cls-1{isolation:isolate;}.cls-2{opacity:0.5;mix-blend-mode:multiply;}.cls-3{fill:#ffd400;}.cls-4{fill:#231f20;}</style></defs><title>play</title><g class="cls-1"><g id="Layer_2" data-name="Layer 2"><image class="cls-2" width="52" height="52" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADUAAAA1CAYAAADh5qNwAAAACXBIWXMAAAsSAAALEgHS3X78AAAEdUlEQVRoQ+2aPWgVWRiGjz9rNBpRN7oQRAiLa7WIFpJVkHQWWVBUbO22keCms42NEExIs82WgYholUpshGDaNAFR2CpFYooFMYVR/Mm+j3kPdzLee8/9SWRnuMLTzXzv+875zncmcw3r6+uhbCQvKCLJC1Lo346tJqWZInlBHfM7c+zaAvI1WwrbaJCs8d3mB7NnG4i1o1Y2cDJgKlA2CCJdYq/oFvvNgRw9LZCvEWt3W68rVELGgDWDNRIohum2gUPiiOgVR8Ux8dMWcsx1e61zyLrox3B1g6UC0Qr7XPSwxfrECdEvfhYnxS/mVBvEGiddt986fdZFHx/4wVfNYLVCxRWiwEHxo4v328Cv4qw4JwbEb+K8uNAG511nwHXPWueUddHHB37wFVesoVCkp3dZ6h4XOh42nuBpiw6KS+J3cUVcFdfE9Ta45jpXXPeSdQasiz4+8IMv/OFzZ91QodJ6PAV6mCXvc8Ez4qIYEjfETfGHuCWGxW3xpxlpgnjPbde55bo3rTNkXfTxgR984Q+f37RgrdaLq0Qvs/SnXfiyxRC/I0bFPTEm7otxMdEC475/zPVGXX/Yepetjw/84Cuu1jctWC0US8oYZerwVOhpWmDIAjzdu2JS/C2mxAPxUDwyj5sg3vPQdaZcd9I6I9ZFHx/4wRf+8InfhkKxtIxTpg+bdTBstMKwhf4S02JGPBXPxKx4buaaIN4z6zpPXXfaOneti/5g2PCDL/zhMxkq7icOPs4JlpopxKbladESkxZ8EjZMzYsF8UK8FK9a4KXvX3C9Odeftt4d6+MDP/jCHz6/7qtGQ9G3nBeMV6YRm5depzVmLIyJf8SiWBLL4nWGlTpkr1v2/Yuut+D6M9YbtT4+8IMv/NUPFSqTj4ONVxVOdqYNfcyYZSqxiel5WmTeBjDzr3gj3prVJoj3vHGdJdedt86UddHHB37whT984nfTBKwXilcWTngORM4P+prpxGam93maizaCuXdiTbw3HxogXrvm+1ddb9H1n1lvzPr4wA++8NdQqPhqlA3FSc/ByDnC2GVKsanZAzxVnjCGMPlRfGqBj77/nestuf6s9e5bHx/4yYfaNNZToRifvMJw4nNAcp4wfplWbG72Aq3Dk8bYZ/GlBT77/jXXW3b959Ybtz4+8IOvpkP1hOqhJkIlFFPrtU3QQjzxaHK9CeI9n1znreu+CpVQE6F6KHy2FWrExTkw50Il1GrYHCoVolawGGo1VELNWW/C+t81FPthK0J9CP+DUCthe0KthE6oTqhOqE6oHJ1QYZtDlfKcKvwbReHf/Ur5ll6qv6dK+Zdvub5ROFi5viZVCVWa7360IF88S/WFNobaG0r2LZ3x2BVK9qtH3Ffl+H0qMyxY0rhaxf4lMdeCPIXS/OYbWzC+MhX/1/kqwXgiLHW3izJ1GKe9oSj/j6JGsN2h6P/jJRcshssGjCFhzzYQa0etGORrmFAnUDJUjYD5oNnA7ZKvuUkz5bHpUE2EbZuUZorkBUUkeUER+Q/WUqTGGZMG2QAAAABJRU5ErkJggg=="/><rect class="cls-3" x="10.6" y="10.3" width="30.27" height="30.27"/><polygon class="cls-4" points="22.85 33.56 22.85 17.31 30.97 25.44 22.85 33.56"/></g></g></svg> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
90.8 KB
65.6 KB
100 KB
10.1 KB
106 KB
89.6 KB
117 KB
| 1 | <!DOCTYPE html> | ||
| 2 | <head> | ||
| 3 | |||
| 4 | <meta charset="utf-8"> | ||
| 5 | <title>HTML5 Ad</title> | ||
| 6 | <script type="text/javascript" src="https://quickresource.eyereturn.com/eyebuild/eyebuild_1_19.js"></script> | ||
| 7 | <link href="assets/video-js.min.css" rel="stylesheet"> | ||
| 8 | <script src="assets/video.min.js"></script> | ||
| 9 | <script src="assets/TweenMax.min.js"></script> | ||
| 10 | <script type="text/javascript"> | ||
| 11 | |||
| 12 | /** | ||
| 13 | * This section uses videojs with eyeBuild, tracking plays, clicks, etc. | ||
| 14 | **/ | ||
| 15 | window.onload = function() { | ||
| 16 | eyeBuild.initialize(); | ||
| 17 | window.isVideoClick = false; | ||
| 18 | |||
| 19 | //var video = document.getElementsByTagName("video")[0]; | ||
| 20 | var myVideoJsPlayer = videojs('video'); | ||
| 21 | var video = document.querySelector("#video video"); | ||
| 22 | var playButton = document.getElementById("play-pause"); | ||
| 23 | var txt = document.getElementById("txt"); | ||
| 24 | |||
| 25 | videojs(video, {}, function(){ | ||
| 26 | |||
| 27 | var videoPlays = 0; | ||
| 28 | var v0 = false; | ||
| 29 | var v25 = false; | ||
| 30 | var v50 = false; | ||
| 31 | var v75 = false; | ||
| 32 | |||
| 33 | video.addEventListener("play", function(e) { | ||
| 34 | eyeBuild.doIAT(0); | ||
| 35 | videoPlays++; | ||
| 36 | playButton.setAttribute("class", "play"); | ||
| 37 | txt.setAttribute("class", "play"); | ||
| 38 | }); | ||
| 39 | video.addEventListener("pause", function(e) { | ||
| 40 | eyeBuild.doIAT(1); | ||
| 41 | playButton.setAttribute("class", "pause"); | ||
| 42 | txt.setAttribute("class", "pause"); | ||
| 43 | }); | ||
| 44 | video.addEventListener("ended", function(e) { | ||
| 45 | video.currentTime = 0; | ||
| 46 | playButton.setAttribute("class", "pause"); | ||
| 47 | v0 = false; | ||
| 48 | v25 = false; | ||
| 49 | v50 = false; | ||
| 50 | v75 = false; | ||
| 51 | eyeBuild.doIAT(9); | ||
| 52 | }); | ||
| 53 | |||
| 54 | // track video plays | ||
| 55 | video.addEventListener('timeupdate', function(e){ | ||
| 56 | var pct = video.currentTime / video.duration *100; | ||
| 57 | if (pct > 75 && !v75){ | ||
| 58 | v75 = true; | ||
| 59 | eyeBuild.doIAT(8); | ||
| 60 | }else if (pct > 50 && !v50){ | ||
| 61 | v50 = true; | ||
| 62 | eyeBuild.doIAT(7); | ||
| 63 | }else if (pct > 25 && !v25){ | ||
| 64 | v25 = true; | ||
| 65 | eyeBuild.doIAT(6); | ||
| 66 | }else if (pct > 0 && !v0){ | ||
| 67 | v0 = true; | ||
| 68 | eyeBuild.doIAT(5); | ||
| 69 | if(videoPlays>1){ | ||
| 70 | eyeBuild.doIAT(10); | ||
| 71 | } | ||
| 72 | } | ||
| 73 | }, false); | ||
| 74 | |||
| 75 | playButton.addEventListener('click', function(e){ | ||
| 76 | myVideoJsPlayer.play(); | ||
| 77 | }, false); | ||
| 78 | |||
| 79 | }); | ||
| 80 | |||
| 81 | |||
| 82 | /* | ||
| 83 | var closeButton = document.getElementById("close"); | ||
| 84 | closeButton.addEventListener("click", function(e) { | ||
| 85 | eyeBuild.doClose(); | ||
| 86 | }); | ||
| 87 | */ | ||
| 88 | |||
| 89 | |||
| 90 | } | ||
| 91 | </script> | ||
| 92 | |||
| 93 | |||
| 94 | <style> | ||
| 95 | |||
| 96 | body{ | ||
| 97 | margin: 0; | ||
| 98 | padding: 0; | ||
| 99 | width: 1024px; | ||
| 100 | height: 768px; | ||
| 101 | line-height: 1.2; | ||
| 102 | font-size: 27px; | ||
| 103 | letter-spacing: .4; | ||
| 104 | color: #CD040B; | ||
| 105 | /* font-family: "Neue Haas Grotesk", Arial, sans-serif; */ | ||
| 106 | /*font-weight: 800;*/ /*BOLD-800, MEDIUM-600, ROMAN - 400*/ | ||
| 107 | font-style: normal; | ||
| 108 | } | ||
| 109 | |||
| 110 | a{ | ||
| 111 | text-decoration: none; | ||
| 112 | color: inherit; | ||
| 113 | } | ||
| 114 | #click-tag{ | ||
| 115 | display: block; | ||
| 116 | position: absolute; | ||
| 117 | width: 100%; | ||
| 118 | height: 100%; | ||
| 119 | } | ||
| 120 | |||
| 121 | #border{ | ||
| 122 | position: relative; | ||
| 123 | width: 1024px; | ||
| 124 | height: 768px; | ||
| 125 | border: 1px solid #55565A; | ||
| 126 | overflow: hidden; | ||
| 127 | cursor: pointer; | ||
| 128 | box-sizing: border-box; | ||
| 129 | background-color: black; | ||
| 130 | /* | ||
| 131 | background: url(assets/back1.jpg) no-repeat #000; | ||
| 132 | background-size: 1000px 700px; | ||
| 133 | */ | ||
| 134 | } | ||
| 135 | |||
| 136 | #video, #play-pause{ | ||
| 137 | position: absolute; | ||
| 138 | width: 952px; | ||
| 139 | height: 536px; | ||
| 140 | left:36px; | ||
| 141 | top:61px; | ||
| 142 | border:none; | ||
| 143 | } | ||
| 144 | #play-pause{ | ||
| 145 | cursor: pointer; | ||
| 146 | background: url(assets/play.svg) no-repeat center center; | ||
| 147 | } | ||
| 148 | #play-pause.pause:hover{ | ||
| 149 | background-size: 60px 60px; | ||
| 150 | } | ||
| 151 | #play-pause.pause:active{ | ||
| 152 | background-size: 50px 50px; | ||
| 153 | } | ||
| 154 | #play-pause.pause{ | ||
| 155 | background-size: 55px 55px; | ||
| 156 | display: block; | ||
| 157 | } | ||
| 158 | #play-pause.play{ | ||
| 159 | display: none; | ||
| 160 | } | ||
| 161 | .vjs-big-play-button{ | ||
| 162 | display: none !important; | ||
| 163 | } | ||
| 164 | |||
| 165 | #txt { | ||
| 166 | position: absolute; | ||
| 167 | width: 322px; | ||
| 168 | height: 271px; | ||
| 169 | left: 58px; | ||
| 170 | bottom:416px; | ||
| 171 | z-index: 10; | ||
| 172 | opacity: 0; | ||
| 173 | transform-origin: bottom; | ||
| 174 | } | ||
| 175 | #txt.play { | ||
| 176 | display: none; | ||
| 177 | } | ||
| 178 | #txt.pause { | ||
| 179 | display: block; | ||
| 180 | } | ||
| 181 | #overlay { | ||
| 182 | position: absolute; | ||
| 183 | width: 964px; | ||
| 184 | height: 81px; | ||
| 185 | left: 36px; | ||
| 186 | bottom:34px; | ||
| 187 | } | ||
| 188 | </style> | ||
| 189 | </head> | ||
| 190 | |||
| 191 | <body> | ||
| 192 | <div id="border"> | ||
| 193 | <a id="click-tag" href="javascript:eyeBuild.doClick(0);"> | ||
| 194 | <img id="txt" style="pause" src="assets/slice.png" alt="txt"> | ||
| 195 | <img id="overlay" src="assets/overlay.png" alt="txt"> | ||
| 196 | </a> | ||
| 197 | <video id="video" class="video-js vjs-default-skin vjs-big-play-centered" controls preload="auto" poster="assets/poster1.jpg" data-setup='{"example_option":true}'> | ||
| 198 | <source src="assets/vidA.mp4" type="video/mp4" /> | ||
| 199 | <!-- <source src="http://video-js.zencoder.com/oceans-clip.webm" type="video/webm" /> --> | ||
| 200 | <!-- <source src="http://video-js.zencoder.com/oceans-clip.ogv" type="video/ogg" /> --> | ||
| 201 | </video> | ||
| 202 | <button id="play-pause" class="pause"></button> | ||
| 203 | </div> | ||
| 204 | |||
| 205 | <script> | ||
| 206 | |||
| 207 | function stage1(){ | ||
| 208 | var tl = new TimelineMax({repeat:0, repeatDelay:2}); | ||
| 209 | |||
| 210 | tl.fromTo("#txt", .3, {opacity:0, scaleY:.01, ease:Power1.easeIn, delay:.5 }, {opacity:1, scaleY:1, ease:Power1.easeIn, delay:.5 }); | ||
| 211 | |||
| 212 | console.log( "time: " + tl.totalDuration() ); | ||
| 213 | } | ||
| 214 | |||
| 215 | //--------------------- | ||
| 216 | stage1(); | ||
| 217 | |||
| 218 | </script> | ||
| 219 | |||
| 220 | </body> | ||
| 221 | |||
| 222 | </html> | ||
| ... | \ 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 | <script type="text/javascript" src="https://quickresource.eyereturn.com/eyebuild/eyebuild_1_19.js"></script> | ||
| 7 | <link href="assets/video-js.min.css" rel="stylesheet"> | ||
| 8 | <script src="assets/video.min.js"></script> | ||
| 9 | <script src="assets/TweenMax.min.js"></script> | ||
| 10 | <script type="text/javascript"> | ||
| 11 | |||
| 12 | /** | ||
| 13 | * This section uses videojs with eyeBuild, tracking plays, clicks, etc. | ||
| 14 | **/ | ||
| 15 | window.onload = function() { | ||
| 16 | eyeBuild.initialize(); | ||
| 17 | window.isVideoClick = false; | ||
| 18 | |||
| 19 | //var video = document.getElementsByTagName("video")[0]; | ||
| 20 | var myVideoJsPlayer = videojs('video'); | ||
| 21 | var video = document.querySelector("#video video"); | ||
| 22 | var playButton = document.getElementById("play-pause"); | ||
| 23 | var txt = document.getElementById("txt"); | ||
| 24 | |||
| 25 | videojs(video, {}, function(){ | ||
| 26 | |||
| 27 | var videoPlays = 0; | ||
| 28 | var v0 = false; | ||
| 29 | var v25 = false; | ||
| 30 | var v50 = false; | ||
| 31 | var v75 = false; | ||
| 32 | |||
| 33 | video.addEventListener("play", function(e) { | ||
| 34 | eyeBuild.doIAT(0); | ||
| 35 | videoPlays++; | ||
| 36 | playButton.setAttribute("class", "play"); | ||
| 37 | txt.setAttribute("class", "play"); | ||
| 38 | }); | ||
| 39 | video.addEventListener("pause", function(e) { | ||
| 40 | eyeBuild.doIAT(1); | ||
| 41 | playButton.setAttribute("class", "pause"); | ||
| 42 | txt.setAttribute("class", "pause"); | ||
| 43 | }); | ||
| 44 | video.addEventListener("ended", function(e) { | ||
| 45 | video.currentTime = 0; | ||
| 46 | playButton.setAttribute("class", "pause"); | ||
| 47 | v0 = false; | ||
| 48 | v25 = false; | ||
| 49 | v50 = false; | ||
| 50 | v75 = false; | ||
| 51 | eyeBuild.doIAT(9); | ||
| 52 | }); | ||
| 53 | |||
| 54 | // track video plays | ||
| 55 | video.addEventListener('timeupdate', function(e){ | ||
| 56 | var pct = video.currentTime / video.duration *100; | ||
| 57 | if (pct > 75 && !v75){ | ||
| 58 | v75 = true; | ||
| 59 | eyeBuild.doIAT(8); | ||
| 60 | }else if (pct > 50 && !v50){ | ||
| 61 | v50 = true; | ||
| 62 | eyeBuild.doIAT(7); | ||
| 63 | }else if (pct > 25 && !v25){ | ||
| 64 | v25 = true; | ||
| 65 | eyeBuild.doIAT(6); | ||
| 66 | }else if (pct > 0 && !v0){ | ||
| 67 | v0 = true; | ||
| 68 | eyeBuild.doIAT(5); | ||
| 69 | if(videoPlays>1){ | ||
| 70 | eyeBuild.doIAT(10); | ||
| 71 | } | ||
| 72 | } | ||
| 73 | }, false); | ||
| 74 | |||
| 75 | playButton.addEventListener('click', function(e){ | ||
| 76 | myVideoJsPlayer.play(); | ||
| 77 | }, false); | ||
| 78 | |||
| 79 | }); | ||
| 80 | |||
| 81 | |||
| 82 | /* | ||
| 83 | var closeButton = document.getElementById("close"); | ||
| 84 | closeButton.addEventListener("click", function(e) { | ||
| 85 | eyeBuild.doClose(); | ||
| 86 | }); | ||
| 87 | */ | ||
| 88 | |||
| 89 | |||
| 90 | } | ||
| 91 | </script> | ||
| 92 | |||
| 93 | |||
| 94 | <style> | ||
| 95 | |||
| 96 | body{ | ||
| 97 | margin: 0; | ||
| 98 | padding: 0; | ||
| 99 | width: 1024px; | ||
| 100 | height: 768px; | ||
| 101 | line-height: 1.2; | ||
| 102 | font-size: 27px; | ||
| 103 | letter-spacing: .4; | ||
| 104 | color: #CD040B; | ||
| 105 | /* font-family: "Neue Haas Grotesk", Arial, sans-serif; */ | ||
| 106 | /*font-weight: 800;*/ /*BOLD-800, MEDIUM-600, ROMAN - 400*/ | ||
| 107 | font-style: normal; | ||
| 108 | } | ||
| 109 | |||
| 110 | a{ | ||
| 111 | text-decoration: none; | ||
| 112 | color: inherit; | ||
| 113 | } | ||
| 114 | #click-tag{ | ||
| 115 | display: block; | ||
| 116 | position: absolute; | ||
| 117 | width: 100%; | ||
| 118 | height: 100%; | ||
| 119 | } | ||
| 120 | |||
| 121 | #border{ | ||
| 122 | position: relative; | ||
| 123 | width: 1024px; | ||
| 124 | height: 768px; | ||
| 125 | border: 1px solid #55565A; | ||
| 126 | overflow: hidden; | ||
| 127 | cursor: pointer; | ||
| 128 | box-sizing: border-box; | ||
| 129 | background-color: black; | ||
| 130 | /* | ||
| 131 | background: url(assets/back1.jpg) no-repeat #000; | ||
| 132 | background-size: 1000px 700px; | ||
| 133 | */ | ||
| 134 | } | ||
| 135 | |||
| 136 | #video, #play-pause{ | ||
| 137 | position: absolute; | ||
| 138 | width: 952px; | ||
| 139 | height: 536px; | ||
| 140 | left:36px; | ||
| 141 | top:61px; | ||
| 142 | border:none; | ||
| 143 | } | ||
| 144 | #play-pause{ | ||
| 145 | cursor: pointer; | ||
| 146 | background: url(assets/play.svg) no-repeat center center; | ||
| 147 | } | ||
| 148 | #play-pause.pause:hover{ | ||
| 149 | background-size: 60px 60px; | ||
| 150 | } | ||
| 151 | #play-pause.pause:active{ | ||
| 152 | background-size: 50px 50px; | ||
| 153 | } | ||
| 154 | #play-pause.pause{ | ||
| 155 | background-size: 55px 55px; | ||
| 156 | display: block; | ||
| 157 | } | ||
| 158 | #play-pause.play{ | ||
| 159 | display: none; | ||
| 160 | } | ||
| 161 | .vjs-big-play-button{ | ||
| 162 | display: none !important; | ||
| 163 | } | ||
| 164 | |||
| 165 | #txt { | ||
| 166 | position: absolute; | ||
| 167 | width: 322px; | ||
| 168 | height: 271px; | ||
| 169 | left: 58px; | ||
| 170 | bottom:416px; | ||
| 171 | z-index: 10; | ||
| 172 | opacity: 0; | ||
| 173 | transform-origin: bottom; | ||
| 174 | } | ||
| 175 | #txt.play { | ||
| 176 | display: none; | ||
| 177 | } | ||
| 178 | #txt.pause { | ||
| 179 | display: block; | ||
| 180 | } | ||
| 181 | #overlay { | ||
| 182 | position: absolute; | ||
| 183 | width: 964px; | ||
| 184 | height: 81px; | ||
| 185 | left: 36px; | ||
| 186 | bottom:34px; | ||
| 187 | } | ||
| 188 | </style> | ||
| 189 | </head> | ||
| 190 | |||
| 191 | <body> | ||
| 192 | <div id="border"> | ||
| 193 | <a id="click-tag" href="javascript:eyeBuild.doClick(0);"> | ||
| 194 | <img id="txt" style="pause" src="assets/slice.png" alt="txt"> | ||
| 195 | <img id="overlay" src="assets/overlay.png" alt="txt"> | ||
| 196 | </a> | ||
| 197 | <video id="video" class="video-js vjs-default-skin vjs-big-play-centered" controls preload="auto" poster="assets/poster2.jpg" data-setup='{"example_option":true}'> | ||
| 198 | <source src="assets/vidB.mp4" type="video/mp4" /> | ||
| 199 | <!-- <source src="http://video-js.zencoder.com/oceans-clip.webm" type="video/webm" /> --> | ||
| 200 | <!-- <source src="http://video-js.zencoder.com/oceans-clip.ogv" type="video/ogg" /> --> | ||
| 201 | </video> | ||
| 202 | <button id="play-pause" class="pause"></button> | ||
| 203 | </div> | ||
| 204 | |||
| 205 | <script> | ||
| 206 | |||
| 207 | function stage1(){ | ||
| 208 | var tl = new TimelineMax({repeat:0, repeatDelay:2}); | ||
| 209 | |||
| 210 | tl.fromTo("#txt", .3, {opacity:0, scaleY:.01, ease:Power1.easeIn, delay:.5 }, {opacity:1, scaleY:1, ease:Power1.easeIn, delay:.5 }); | ||
| 211 | |||
| 212 | console.log( "time: " + tl.totalDuration() ); | ||
| 213 | } | ||
| 214 | |||
| 215 | //--------------------- | ||
| 216 | stage1(); | ||
| 217 | |||
| 218 | </script> | ||
| 219 | |||
| 220 | </body> | ||
| 221 | |||
| 222 | </html> | ||
| ... | \ 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 | <script type="text/javascript" src="https://quickresource.eyereturn.com/eyebuild/eyebuild_1_19.js"></script> | ||
| 7 | <link href="assets/video-js.min.css" rel="stylesheet"> | ||
| 8 | <script src="assets/video.min.js"></script> | ||
| 9 | <script src="assets/TweenMax.min.js"></script> | ||
| 10 | <script type="text/javascript"> | ||
| 11 | |||
| 12 | /** | ||
| 13 | * This section uses videojs with eyeBuild, tracking plays, clicks, etc. | ||
| 14 | **/ | ||
| 15 | window.onload = function() { | ||
| 16 | eyeBuild.initialize(); | ||
| 17 | window.isVideoClick = false; | ||
| 18 | |||
| 19 | //var video = document.getElementsByTagName("video")[0]; | ||
| 20 | var myVideoJsPlayer = videojs('video'); | ||
| 21 | var video = document.querySelector("#video video"); | ||
| 22 | var playButton = document.getElementById("play-pause"); | ||
| 23 | var txt = document.getElementById("txt"); | ||
| 24 | |||
| 25 | videojs(video, {}, function(){ | ||
| 26 | |||
| 27 | var videoPlays = 0; | ||
| 28 | var v0 = false; | ||
| 29 | var v25 = false; | ||
| 30 | var v50 = false; | ||
| 31 | var v75 = false; | ||
| 32 | |||
| 33 | video.addEventListener("play", function(e) { | ||
| 34 | eyeBuild.doIAT(0); | ||
| 35 | videoPlays++; | ||
| 36 | playButton.setAttribute("class", "play"); | ||
| 37 | txt.setAttribute("class", "play"); | ||
| 38 | }); | ||
| 39 | video.addEventListener("pause", function(e) { | ||
| 40 | eyeBuild.doIAT(1); | ||
| 41 | playButton.setAttribute("class", "pause"); | ||
| 42 | txt.setAttribute("class", "pause"); | ||
| 43 | }); | ||
| 44 | video.addEventListener("ended", function(e) { | ||
| 45 | video.currentTime = 0; | ||
| 46 | playButton.setAttribute("class", "pause"); | ||
| 47 | v0 = false; | ||
| 48 | v25 = false; | ||
| 49 | v50 = false; | ||
| 50 | v75 = false; | ||
| 51 | eyeBuild.doIAT(9); | ||
| 52 | }); | ||
| 53 | |||
| 54 | // track video plays | ||
| 55 | video.addEventListener('timeupdate', function(e){ | ||
| 56 | var pct = video.currentTime / video.duration *100; | ||
| 57 | if (pct > 75 && !v75){ | ||
| 58 | v75 = true; | ||
| 59 | eyeBuild.doIAT(8); | ||
| 60 | }else if (pct > 50 && !v50){ | ||
| 61 | v50 = true; | ||
| 62 | eyeBuild.doIAT(7); | ||
| 63 | }else if (pct > 25 && !v25){ | ||
| 64 | v25 = true; | ||
| 65 | eyeBuild.doIAT(6); | ||
| 66 | }else if (pct > 0 && !v0){ | ||
| 67 | v0 = true; | ||
| 68 | eyeBuild.doIAT(5); | ||
| 69 | if(videoPlays>1){ | ||
| 70 | eyeBuild.doIAT(10); | ||
| 71 | } | ||
| 72 | } | ||
| 73 | }, false); | ||
| 74 | |||
| 75 | playButton.addEventListener('click', function(e){ | ||
| 76 | myVideoJsPlayer.play(); | ||
| 77 | }, false); | ||
| 78 | |||
| 79 | }); | ||
| 80 | |||
| 81 | |||
| 82 | /* | ||
| 83 | var closeButton = document.getElementById("close"); | ||
| 84 | closeButton.addEventListener("click", function(e) { | ||
| 85 | eyeBuild.doClose(); | ||
| 86 | }); | ||
| 87 | */ | ||
| 88 | |||
| 89 | |||
| 90 | } | ||
| 91 | </script> | ||
| 92 | |||
| 93 | |||
| 94 | <style> | ||
| 95 | |||
| 96 | body{ | ||
| 97 | margin: 0; | ||
| 98 | padding: 0; | ||
| 99 | width: 1024px; | ||
| 100 | height: 768px; | ||
| 101 | line-height: 1.2; | ||
| 102 | font-size: 27px; | ||
| 103 | letter-spacing: .4; | ||
| 104 | color: #CD040B; | ||
| 105 | /* font-family: "Neue Haas Grotesk", Arial, sans-serif; */ | ||
| 106 | /*font-weight: 800;*/ /*BOLD-800, MEDIUM-600, ROMAN - 400*/ | ||
| 107 | font-style: normal; | ||
| 108 | } | ||
| 109 | |||
| 110 | a{ | ||
| 111 | text-decoration: none; | ||
| 112 | color: inherit; | ||
| 113 | } | ||
| 114 | #click-tag{ | ||
| 115 | display: block; | ||
| 116 | position: absolute; | ||
| 117 | width: 100%; | ||
| 118 | height: 100%; | ||
| 119 | } | ||
| 120 | |||
| 121 | #border{ | ||
| 122 | position: relative; | ||
| 123 | width: 1024px; | ||
| 124 | height: 768px; | ||
| 125 | border: 1px solid #55565A; | ||
| 126 | overflow: hidden; | ||
| 127 | cursor: pointer; | ||
| 128 | box-sizing: border-box; | ||
| 129 | background-color: black; | ||
| 130 | /* | ||
| 131 | background: url(assets/back1.jpg) no-repeat #000; | ||
| 132 | background-size: 1000px 700px; | ||
| 133 | */ | ||
| 134 | } | ||
| 135 | |||
| 136 | #video, #play-pause{ | ||
| 137 | position: absolute; | ||
| 138 | width: 952px; | ||
| 139 | height: 536px; | ||
| 140 | left:36px; | ||
| 141 | top:61px; | ||
| 142 | border:none; | ||
| 143 | } | ||
| 144 | #play-pause{ | ||
| 145 | cursor: pointer; | ||
| 146 | background: url(assets/play.svg) no-repeat center center; | ||
| 147 | } | ||
| 148 | #play-pause.pause:hover{ | ||
| 149 | background-size: 60px 60px; | ||
| 150 | } | ||
| 151 | #play-pause.pause:active{ | ||
| 152 | background-size: 50px 50px; | ||
| 153 | } | ||
| 154 | #play-pause.pause{ | ||
| 155 | background-size: 55px 55px; | ||
| 156 | display: block; | ||
| 157 | } | ||
| 158 | #play-pause.play{ | ||
| 159 | display: none; | ||
| 160 | } | ||
| 161 | .vjs-big-play-button{ | ||
| 162 | display: none !important; | ||
| 163 | } | ||
| 164 | |||
| 165 | #txt { | ||
| 166 | position: absolute; | ||
| 167 | width: 322px; | ||
| 168 | height: 271px; | ||
| 169 | left: 58px; | ||
| 170 | bottom:416px; | ||
| 171 | z-index: 10; | ||
| 172 | opacity: 0; | ||
| 173 | transform-origin: bottom; | ||
| 174 | } | ||
| 175 | #txt.play { | ||
| 176 | display: none; | ||
| 177 | } | ||
| 178 | #txt.pause { | ||
| 179 | display: block; | ||
| 180 | } | ||
| 181 | #overlay { | ||
| 182 | position: absolute; | ||
| 183 | width: 964px; | ||
| 184 | height: 81px; | ||
| 185 | left: 36px; | ||
| 186 | bottom:34px; | ||
| 187 | } | ||
| 188 | </style> | ||
| 189 | </head> | ||
| 190 | |||
| 191 | <body> | ||
| 192 | <div id="border"> | ||
| 193 | <a id="click-tag" href="javascript:eyeBuild.doClick(0);"> | ||
| 194 | <img id="txt" style="pause" src="assets/slice.png" alt="txt"> | ||
| 195 | <img id="overlay" src="assets/overlay.png" alt="txt"> | ||
| 196 | </a> | ||
| 197 | <video id="video" class="video-js vjs-default-skin vjs-big-play-centered" controls preload="auto" poster="assets/poster3.jpg" data-setup='{"example_option":true}'> | ||
| 198 | <source src="assets/vidC.mp4" type="video/mp4" /> | ||
| 199 | <!-- <source src="http://video-js.zencoder.com/oceans-clip.webm" type="video/webm" /> --> | ||
| 200 | <!-- <source src="http://video-js.zencoder.com/oceans-clip.ogv" type="video/ogg" /> --> | ||
| 201 | </video> | ||
| 202 | <button id="play-pause" class="pause"></button> | ||
| 203 | </div> | ||
| 204 | |||
| 205 | <script> | ||
| 206 | |||
| 207 | function stage1(){ | ||
| 208 | var tl = new TimelineMax({repeat:0, repeatDelay:2}); | ||
| 209 | |||
| 210 | tl.fromTo("#txt", .3, {opacity:0, scaleY:.01, ease:Power1.easeIn, delay:.5 }, {opacity:1, scaleY:1, ease:Power1.easeIn, delay:.5 }); | ||
| 211 | |||
| 212 | console.log( "time: " + tl.totalDuration() ); | ||
| 213 | } | ||
| 214 | |||
| 215 | //--------------------- | ||
| 216 | stage1(); | ||
| 217 | |||
| 218 | </script> | ||
| 219 | |||
| 220 | </body> | ||
| 221 | |||
| 222 | </html> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
18.1 KB
17.7 KB
17.9 KB
| 1 | <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="52" height="52" viewBox="0 0 52 52"><defs><style>.cls-1{isolation:isolate;}.cls-2{opacity:0.5;mix-blend-mode:multiply;}.cls-3{fill:#ffd400;}.cls-4{fill:#231f20;}</style></defs><title>play</title><g class="cls-1"><g id="Layer_2" data-name="Layer 2"><image class="cls-2" width="52" height="52" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADUAAAA1CAYAAADh5qNwAAAACXBIWXMAAAsSAAALEgHS3X78AAAEdUlEQVRoQ+2aPWgVWRiGjz9rNBpRN7oQRAiLa7WIFpJVkHQWWVBUbO22keCms42NEExIs82WgYholUpshGDaNAFR2CpFYooFMYVR/Mm+j3kPdzLee8/9SWRnuMLTzXzv+875zncmcw3r6+uhbCQvKCLJC1Lo346tJqWZInlBHfM7c+zaAvI1WwrbaJCs8d3mB7NnG4i1o1Y2cDJgKlA2CCJdYq/oFvvNgRw9LZCvEWt3W68rVELGgDWDNRIohum2gUPiiOgVR8Ux8dMWcsx1e61zyLrox3B1g6UC0Qr7XPSwxfrECdEvfhYnxS/mVBvEGiddt986fdZFHx/4wVfNYLVCxRWiwEHxo4v328Cv4qw4JwbEb+K8uNAG511nwHXPWueUddHHB37wFVesoVCkp3dZ6h4XOh42nuBpiw6KS+J3cUVcFdfE9Ta45jpXXPeSdQasiz4+8IMv/OFzZ91QodJ6PAV6mCXvc8Ez4qIYEjfETfGHuCWGxW3xpxlpgnjPbde55bo3rTNkXfTxgR984Q+f37RgrdaLq0Qvs/SnXfiyxRC/I0bFPTEm7otxMdEC475/zPVGXX/Yepetjw/84Cuu1jctWC0US8oYZerwVOhpWmDIAjzdu2JS/C2mxAPxUDwyj5sg3vPQdaZcd9I6I9ZFHx/4wRf+8InfhkKxtIxTpg+bdTBstMKwhf4S02JGPBXPxKx4buaaIN4z6zpPXXfaOneti/5g2PCDL/zhMxkq7icOPs4JlpopxKbladESkxZ8EjZMzYsF8UK8FK9a4KXvX3C9Odeftt4d6+MDP/jCHz6/7qtGQ9G3nBeMV6YRm5depzVmLIyJf8SiWBLL4nWGlTpkr1v2/Yuut+D6M9YbtT4+8IMv/NUPFSqTj4ONVxVOdqYNfcyYZSqxiel5WmTeBjDzr3gj3prVJoj3vHGdJdedt86UddHHB37whT984nfTBKwXilcWTngORM4P+prpxGam93maizaCuXdiTbw3HxogXrvm+1ddb9H1n1lvzPr4wA++8NdQqPhqlA3FSc/ByDnC2GVKsanZAzxVnjCGMPlRfGqBj77/nestuf6s9e5bHx/4yYfaNNZToRifvMJw4nNAcp4wfplWbG72Aq3Dk8bYZ/GlBT77/jXXW3b959Ybtz4+8IOvpkP1hOqhJkIlFFPrtU3QQjzxaHK9CeI9n1znreu+CpVQE6F6KHy2FWrExTkw50Il1GrYHCoVolawGGo1VELNWW/C+t81FPthK0J9CP+DUCthe0KthE6oTqhOqE6oHJ1QYZtDlfKcKvwbReHf/Ur5ll6qv6dK+Zdvub5ROFi5viZVCVWa7360IF88S/WFNobaG0r2LZ3x2BVK9qtH3Ffl+H0qMyxY0rhaxf4lMdeCPIXS/OYbWzC+MhX/1/kqwXgiLHW3izJ1GKe9oSj/j6JGsN2h6P/jJRcshssGjCFhzzYQa0etGORrmFAnUDJUjYD5oNnA7ZKvuUkz5bHpUE2EbZuUZorkBUUkeUER+Q/WUqTGGZMG2QAAAABJRU5ErkJggg=="/><rect class="cls-3" x="10.6" y="10.3" width="30.27" height="30.27"/><polygon class="cls-4" points="22.85 33.56 22.85 17.31 30.97 25.44 22.85 33.56"/></g></g></svg> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
14 KB
10.1 KB
11.7 KB
32.3 KB
31.2 KB
32.3 KB
| 1 | <!DOCTYPE html> | ||
| 2 | <head> | ||
| 3 | <meta charset="utf-8"> | ||
| 4 | <title>HTML5 Ad</title> | ||
| 5 | <script type="text/javascript" src="https://quickresource.eyereturn.com/eyebuild/eyebuild_1_19.js"></script> | ||
| 6 | <link href="assets/video-js.min.css" rel="stylesheet"> | ||
| 7 | <script src="assets/video.min.js"></script> | ||
| 8 | <script type="text/javascript"> | ||
| 9 | |||
| 10 | /** | ||
| 11 | * This section uses videojs with eyeBuild, tracking plays, clicks, etc. | ||
| 12 | **/ | ||
| 13 | window.onload = function() { | ||
| 14 | eyeBuild.initialize(); | ||
| 15 | window.isVideoClick = false; | ||
| 16 | |||
| 17 | //var video = document.getElementsByTagName("video")[0]; | ||
| 18 | var myVideoJsPlayer = videojs('video'); | ||
| 19 | var video = document.querySelector("#video video"); | ||
| 20 | var playButton = document.getElementById("play-pause"); | ||
| 21 | |||
| 22 | videojs(video, {}, function(){ | ||
| 23 | |||
| 24 | var videoPlays = 0; | ||
| 25 | var v0 = false; | ||
| 26 | var v25 = false; | ||
| 27 | var v50 = false; | ||
| 28 | var v75 = false; | ||
| 29 | |||
| 30 | video.addEventListener("play", function(e) { | ||
| 31 | eyeBuild.doIAT(0); | ||
| 32 | videoPlays++; | ||
| 33 | playButton.setAttribute("class", "play"); | ||
| 34 | }); | ||
| 35 | video.addEventListener("pause", function(e) { | ||
| 36 | eyeBuild.doIAT(1); | ||
| 37 | playButton.setAttribute("class", "pause"); | ||
| 38 | }); | ||
| 39 | video.addEventListener("ended", function(e) { | ||
| 40 | video.currentTime = 0; | ||
| 41 | playButton.setAttribute("class", "pause"); | ||
| 42 | v0 = false; | ||
| 43 | v25 = false; | ||
| 44 | v50 = false; | ||
| 45 | v75 = false; | ||
| 46 | eyeBuild.doIAT(9); | ||
| 47 | }); | ||
| 48 | |||
| 49 | // track video plays | ||
| 50 | video.addEventListener('timeupdate', function(e){ | ||
| 51 | var pct = video.currentTime / video.duration *100; | ||
| 52 | if (pct > 75 && !v75){ | ||
| 53 | v75 = true; | ||
| 54 | eyeBuild.doIAT(8); | ||
| 55 | }else if (pct > 50 && !v50){ | ||
| 56 | v50 = true; | ||
| 57 | eyeBuild.doIAT(7); | ||
| 58 | }else if (pct > 25 && !v25){ | ||
| 59 | v25 = true; | ||
| 60 | eyeBuild.doIAT(6); | ||
| 61 | }else if (pct > 0 && !v0){ | ||
| 62 | v0 = true; | ||
| 63 | eyeBuild.doIAT(5); | ||
| 64 | if(videoPlays>1){ | ||
| 65 | eyeBuild.doIAT(10); | ||
| 66 | } | ||
| 67 | } | ||
| 68 | }, false); | ||
| 69 | |||
| 70 | playButton.addEventListener('click', function(e){ | ||
| 71 | myVideoJsPlayer.play(); | ||
| 72 | }, false); | ||
| 73 | |||
| 74 | }); | ||
| 75 | |||
| 76 | |||
| 77 | /* | ||
| 78 | var closeButton = document.getElementById("close"); | ||
| 79 | closeButton.addEventListener("click", function(e) { | ||
| 80 | eyeBuild.doClose(); | ||
| 81 | }); | ||
| 82 | */ | ||
| 83 | |||
| 84 | |||
| 85 | } | ||
| 86 | </script> | ||
| 87 | |||
| 88 | <style> | ||
| 89 | |||
| 90 | body{ | ||
| 91 | margin: 0; | ||
| 92 | padding: 0; | ||
| 93 | width: 300px; | ||
| 94 | height: 450px; | ||
| 95 | line-height: 1.2; | ||
| 96 | font-size: 27px; | ||
| 97 | letter-spacing: .4; | ||
| 98 | color: #CD040B; | ||
| 99 | /* font-family: "Neue Haas Grotesk", Arial, sans-serif; */ | ||
| 100 | /*font-weight: 800;*/ /*BOLD-800, MEDIUM-600, ROMAN - 400*/ | ||
| 101 | font-style: normal; | ||
| 102 | } | ||
| 103 | |||
| 104 | a{ | ||
| 105 | text-decoration: none; | ||
| 106 | color: inherit; | ||
| 107 | } | ||
| 108 | #click-tag{ | ||
| 109 | display: block; | ||
| 110 | position: absolute; | ||
| 111 | width: 100%; | ||
| 112 | height: 100%; | ||
| 113 | } | ||
| 114 | |||
| 115 | #border{ | ||
| 116 | position: relative; | ||
| 117 | width: 300px; | ||
| 118 | height: 450px; | ||
| 119 | border: 1px solid #55565A; | ||
| 120 | background-color: #000; | ||
| 121 | overflow: hidden; | ||
| 122 | cursor: pointer; | ||
| 123 | box-sizing: border-box; | ||
| 124 | background: url(assets/back1.jpg) no-repeat; | ||
| 125 | background-size: 300px 450px; | ||
| 126 | } | ||
| 127 | |||
| 128 | #video, #play-pause{ | ||
| 129 | position: absolute; | ||
| 130 | width: 271px; | ||
| 131 | height: 153px; | ||
| 132 | left:14px; | ||
| 133 | top:178px; | ||
| 134 | border:none; | ||
| 135 | } | ||
| 136 | #play-pause{ | ||
| 137 | cursor: pointer; | ||
| 138 | background: url(assets/play.svg) no-repeat center center; | ||
| 139 | } | ||
| 140 | #play-pause.pause:hover{ | ||
| 141 | background-size: 60px 60px; | ||
| 142 | } | ||
| 143 | #play-pause.pause:active{ | ||
| 144 | background-size: 50px 50px; | ||
| 145 | } | ||
| 146 | #play-pause.pause{ | ||
| 147 | background-size: 55px 55px; | ||
| 148 | display: block; | ||
| 149 | } | ||
| 150 | #play-pause.play{ | ||
| 151 | display: none; | ||
| 152 | } | ||
| 153 | .vjs-big-play-button{ | ||
| 154 | display: none !important; | ||
| 155 | } | ||
| 156 | </style> | ||
| 157 | </head> | ||
| 158 | |||
| 159 | <body> | ||
| 160 | <div id="border"> | ||
| 161 | <a id="click-tag" href="javascript:eyeBuild.doClick(0);"> | ||
| 162 | </a> | ||
| 163 | <video id="video" class="video-js vjs-default-skin vjs-big-play-centered" controls preload="auto" poster="assets/poster1.jpg" data-setup='{"example_option":true}'> | ||
| 164 | <source src="assets/vidA.mp4" type="video/mp4" /> | ||
| 165 | <!-- <source src="http://video-js.zencoder.com/oceans-clip.webm" type="video/webm" /> --> | ||
| 166 | <!-- <source src="http://video-js.zencoder.com/oceans-clip.ogv" type="video/ogg" /> --> | ||
| 167 | </video> | ||
| 168 | <button id="play-pause" class="pause"></button> | ||
| 169 | </div> | ||
| 170 | </body> | ||
| 171 | |||
| 172 | </html> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | /*! | ||
| 2 | * VERSION: 0.0.10 | ||
| 3 | * DATE: 2016-02-11 | ||
| 4 | * UPDATES AND DOCS AT: http://greensock.com | ||
| 5 | * | ||
| 6 | * @license Copyright (c) 2008-2016, GreenSock. All rights reserved. | ||
| 7 | * DrawSVGPlugin is a Club GreenSock membership benefit; You must have a valid membership to use | ||
| 8 | * this code without violating the terms of use. Visit http://greensock.com/club/ to sign up or get more details. | ||
| 9 | * This work is subject to the software agreement that was issued with your membership. | ||
| 10 | * | ||
| 11 | * @author: Jack Doyle, jack@greensock.com | ||
| 12 | */ | ||
| 13 | var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";function a(a,b,c,d){return c=parseFloat(c)-parseFloat(a),d=parseFloat(d)-parseFloat(b),Math.sqrt(c*c+d*d)}function b(a){return"string"!=typeof a&&a.nodeType||(a=_gsScope.TweenLite.selector(a),a.length&&(a=a[0])),a}function c(a,b,c){var d,e,f=a.indexOf(" ");return-1===f?(d=void 0!==c?c+"":a,e=a):(d=a.substr(0,f),e=a.substr(f+1)),d=-1!==d.indexOf("%")?parseFloat(d)/100*b:parseFloat(d),e=-1!==e.indexOf("%")?parseFloat(e)/100*b:parseFloat(e),d>e?[e,d]:[d,e]}function d(c){if(!c)return 0;c=b(c);var d,e,f,g,i,j,k,l=c.tagName.toLowerCase();if("path"===l){g=c.style.strokeDasharray,c.style.strokeDasharray="none",d=c.getTotalLength()||0;try{e=c.getBBox()}catch(m){}c.style.strokeDasharray=g}else if("rect"===l)d=2*c.getAttribute("width")+2*c.getAttribute("height");else if("circle"===l)d=2*Math.PI*parseFloat(c.getAttribute("r"));else if("line"===l)d=a(c.getAttribute("x1"),c.getAttribute("y1"),c.getAttribute("x2"),c.getAttribute("y2"));else if("polyline"===l||"polygon"===l)for(f=c.getAttribute("points").match(h)||[],"polygon"===l&&f.push(f[0],f[1]),d=0,i=2;i<f.length;i+=2)d+=a(f[i-2],f[i-1],f[i],f[i+1])||0;else"ellipse"===l&&(j=parseFloat(c.getAttribute("rx")),k=parseFloat(c.getAttribute("ry")),d=Math.PI*(3*(j+k)-Math.sqrt((3*j+k)*(j+3*k))));return d||0}function e(a,c){if(!a)return[0,0];a=b(a),c=c||d(a)+1;var e=g(a),f=e.strokeDasharray||"",h=parseFloat(e.strokeDashoffset),i=f.indexOf(",");return 0>i&&(i=f.indexOf(" ")),f=0>i?c:parseFloat(f.substr(0,i))||1e-5,f>c&&(f=c),[Math.max(0,-h),Math.max(0,f-h)]}var f,g=document.defaultView?document.defaultView.getComputedStyle:function(){},h=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi;f=_gsScope._gsDefine.plugin({propName:"drawSVG",API:2,version:"0.0.10",global:!0,overwriteProps:["drawSVG"],init:function(a,b,f){if(!a.getBBox)return!1;var g,h,i,j=d(a)+1;return this._style=a.style,b===!0||"true"===b?b="0 100%":b?-1===(b+"").indexOf(" ")&&(b="0 "+b):b="0 0",g=e(a,j),h=c(b,j,g[0]),this._length=j+10,0===g[0]&&0===h[0]?(i=Math.max(1e-5,h[1]-j),this._dash=j+i,this._offset=j-g[1]+i,this._addTween(this,"_offset",this._offset,j-h[1]+i,"drawSVG")):(this._dash=g[1]-g[0]||1e-6,this._offset=-g[0],this._addTween(this,"_dash",this._dash,h[1]-h[0]||1e-5,"drawSVG"),this._addTween(this,"_offset",this._offset,-h[0],"drawSVG")),!0},set:function(a){this._firstPT&&(this._super.setRatio.call(this,a),this._style.strokeDashoffset=this._offset,1===a||0===a?this._style.strokeDasharray=this._offset<.001&&this._length-this._dash<=10?"none":this._offset===this._dash?"0px, 999999px":this._dash+"px,"+this._length+"px":this._style.strokeDasharray=this._dash+"px,"+this._length+"px")}}),f.getLength=d,f.getPosition=e}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(); | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
14.1 KB
5.43 KB
6.29 KB
1.84 KB
| 1 | /*! | ||
| 2 | * VERSION: 1.0.3 | ||
| 3 | * DATE: 2016-05-04 | ||
| 4 | * | ||
| 5 | * Requires: | ||
| 6 | * GSAP TweenMax (import com.greensock.*;) | ||
| 7 | * GASP drawSVG Plugin () | ||
| 8 | * This work is subject to the terms at http://greensock.com/standard-license or for | ||
| 9 | * Club GreenSock members, the software agreement that was issued with your membership. | ||
| 10 | * | ||
| 11 | * @license Copyright (c) 2016, Tenzing Communications Inc. All rights reserved. | ||
| 12 | * | ||
| 13 | * @author: Dan Rempel, dan@gotenzing.com | ||
| 14 | |||
| 15 | * Usage Example: | ||
| 16 | * var myEySvg = initEySvgFrame(10, 196, 193); // frame line weight, width, height | ||
| 17 | * document.getElementById("body").appendChild(myEySvg); | ||
| 18 | * animateEyFrame(2); // delay in seconds | ||
| 19 | * animateGradient(2); // delay in seconds | ||
| 20 | * animateFill(2); // delay in seconds | ||
| 21 | * | ||
| 22 | **/ | ||
| 23 | |||
| 24 | var eySvg;var eyStroke;var eyDot1;var eyDot2;var eyDot3;var eyGradient;var eyFill;var tl;var eyStrokeWeight;var eySvgHeight;var eySvgWidth;var eyAngleHeight;var eyDotSpacing;var eyDotDuration=0.2;var eyFrameDuration=1;var eyGradientDuration=1;var eyFillDuration=1;var eyColor='#FFD400';var svgNS='http://www.w3.org/2000/svg';var isForward=!0;var initEySvgFrame=function(b,d,f){tl=new TimelineMax({onStart:tlStart,onUpdate:tlUpdate,onComplete:tlComplete,onReverseComplete:tlReverseComplete}),eyDotSpacing=Math.floor(b*8.5/10),eyStrokeWeight=b,eySvgWidth=d,eySvgHeight=f;var h=10*Math.PI/180;eyAngleHeight=Math.tan(h)*(d-b);var a=document.createElementNS(svgNS,'svg');a.setAttribute('id','ey-frame'),a.setAttribute('width',d+'px'),a.setAttribute('height',f+'px'),a.setAttribute('viewBox','0 0 '+eySvgWidth+' '+eySvgHeight);var g=document.createElementNS(svgNS,'defs');a.appendChild(g);var c=document.createElementNS(svgNS,'linearGradient');c.setAttribute('id','linear-gradient'),c.setAttribute('x1','0%'),c.setAttribute('x2','0%'),c.setAttribute('y1','0%'),c.setAttribute('y2','100%'),g.appendChild(c);var e;return e=createStop({id:'stop-1',offset:'0%',color:'Black',opacity:'.7'}),c.appendChild(e),e=createStop({id:'stop-2',offset:'100%',color:'Black',opacity:'0'}),c.appendChild(e),eyGradient=createShape('ey-gradient','url(#linear-gradient)'),a.appendChild(eyGradient),eyDot1=createDot(1),a.appendChild(eyDot1),eyDot2=createDot(2),a.appendChild(eyDot2),eyDot3=createDot(3),a.appendChild(eyDot3),eyStroke=createPath('ey-stroke'),eyStroke.setAttribute('d',' M '+(eyStrokeWeight+eyDotSpacing)*3+' '+(eySvgHeight-b/2)+' H '+(d-b/2)+' V '+b/1.5+' L '+b/2+' '+(eyAngleHeight+b/2)+' V '+(f-b-eyDotSpacing)),a.appendChild(eyStroke),a;};var animateEyFrame=function(b){isForward=!0,tl.timeScale(1);var a=0;tl.fromTo(eyDot1,eyDotDuration,{drawSVG:'0'},{drawSVG:'0 '+(a+=eyStrokeWeight+eyDotSpacing),ease:Power1.easeInOut,delay:b}),tl.fromTo(eyDot2,eyDotDuration,{drawSVG:'0'},{drawSVG:'0 '+(a+=eyStrokeWeight+eyDotSpacing),ease:Power1.easeInOut}),tl.fromTo(eyDot3,eyDotDuration,{drawSVG:'0'},{drawSVG:'0 '+(a+=eyStrokeWeight+eyDotSpacing),ease:Power1.easeInOut}),tl.call(tlDotToLine,[]),tl.fromTo(eyStroke,eyFrameDuration,{drawSVG:'0'},{drawSVG:'0 100%',ease:Power1.easeIn});};var animateEyReverse=function(a){TweenMax.delayedCall(a,intAnimateEyReverse,[0]);};var animateGradient=function(a){tl.fromTo(eyGradient,0.5,{opacity:0},{opacity:1,delay:a});};var animateFill=function(a){(typeof eyFill==='undefined'||variable===null)&&(eyFill=createShape('ey-gradient',eyColor),eySvg.appendChild(eyFill)),tl.fromTo(eyFill,0.5,{y:eySvgHeight},{y:0,ease:Power2.easeIn,delay:a});};var createPath=function(b){var a=document.createElementNS(svgNS,'path');return a.setAttribute('id',b),a.setAttribute('fill','none'),a.setAttribute('stroke',eyColor),a.setAttribute('stroke-width',eyStrokeWeight),a.setAttribute('stroke-miterlimit','10'),a;};var createDot=function(b){var a=createPath('ey-dot'+b);return a.setAttribute('d',' M '+(eyStrokeWeight+eyDotSpacing)*(b-1)+' '+(eySvgHeight-eyStrokeWeight/2)+' h '+eyStrokeWeight),a;};var createShape=function(b,c){var a=document.createElementNS(svgNS,'path');return a.setAttribute('id',b),a.setAttribute('fill',c),a.setAttribute('d',' M 0 '+eySvgHeight+' H '+eySvgWidth+' V 2 '+' L 0 '+(eyAngleHeight+2)+' Z '),a;};var createStop=function(b){var a=document.createElementNS(svgNS,'stop');return a.setAttribute('id',b.id),a.setAttribute('offset',b.offset),a.setAttribute('stop-color',b.color),a.setAttribute('stop-opacity',b.opacity),a;};var intAnimateEyReverse=function(a){isForward=!1,tl.reverse(a),tl.timeScale;};var tlStart=function(){};var tlDotToLine=function(){isForward||tl.timeScale(4);};var tlUpdate=function(){};var tlComplete=function(){};var tlReverseComplete=function(){}; | ||
| ... | \ 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" xmlns:xlink="http://www.w3.org/1999/xlink" width="300" height="348.92" viewBox="0 0 300 348.92"><defs><style>.cls-1{fill:url(#linear-gradient);}</style><linearGradient id="linear-gradient" x1="150" y1="348.92" x2="150" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#231f20" stop-opacity="0"/><stop offset="1"/></linearGradient></defs><title>gradient</title><rect class="cls-1" width="300" height="348.92"/></svg> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
1.17 KB
1.33 KB
1.6 KB
1.52 KB
1.41 KB
1.71 KB
1.96 KB
1.8 KB
4.43 KB
92.9 KB
| 1 | <!DOCTYPE html> | ||
| 2 | <head> | ||
| 3 | |||
| 4 | </script> | ||
| 5 | <meta charset="utf-8"> | ||
| 6 | <title>HTML5 GSAP Ad</title> | ||
| 7 | <meta name="ad.size" content="width=300,height=600"> | ||
| 8 | <!-- | ||
| 9 | <script type="text/javascript"> | ||
| 10 | |||
| 11 | // IAB source: modified to allow link testing | ||
| 12 | var clickTag = "http://thecommonwell.ca/wave"; | ||
| 13 | function getParameterByName(name) | ||
| 14 | { | ||
| 15 | var match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search); | ||
| 16 | if (match == null || match == ""){ | ||
| 17 | return clickTag; | ||
| 18 | } else{ | ||
| 19 | return match && decodeURIComponent(match[1].replace(/\+/g, ' ')); | ||
| 20 | } | ||
| 21 | } | ||
| 22 | clickTag = getParameterByName('clickTag'); | ||
| 23 | |||
| 24 | </script> | ||
| 25 | --> | ||
| 26 | <script type="text/javascript" src="https://quickresource.eyereturn.com/eyebuild/eyebuild_1_19.js"></script> | ||
| 27 | <script type="text/javascript"> | ||
| 28 | window.onload = function() { | ||
| 29 | eyeBuild.initialize(); | ||
| 30 | } | ||
| 31 | </script> | ||
| 32 | |||
| 33 | |||
| 34 | <style> | ||
| 35 | |||
| 36 | body{ | ||
| 37 | margin: 0; | ||
| 38 | padding: 0; | ||
| 39 | width: 300px; | ||
| 40 | height: 600px; | ||
| 41 | line-height: 1.2; | ||
| 42 | font-size: 27px; | ||
| 43 | letter-spacing: .4; | ||
| 44 | color: #CD040B; | ||
| 45 | font-family: "Neue Haas Grotesk", Arial, sans-serif; | ||
| 46 | /*font-weight: 800;*/ /*BOLD-800, MEDIUM-600, ROMAN - 400*/ | ||
| 47 | font-style: normal; | ||
| 48 | } | ||
| 49 | |||
| 50 | a{ | ||
| 51 | text-decoration: none; | ||
| 52 | color: inherit; | ||
| 53 | } | ||
| 54 | #border{ | ||
| 55 | position: relative; | ||
| 56 | width: 300px; | ||
| 57 | height: 600px; | ||
| 58 | border: 1px solid #55565A; | ||
| 59 | background-color: #282828; | ||
| 60 | overflow: hidden; | ||
| 61 | cursor: pointer; | ||
| 62 | box-sizing: border-box; | ||
| 63 | background: url(assets/background.jpg); | ||
| 64 | /* background: url(guide1.png); */ | ||
| 65 | } | ||
| 66 | |||
| 67 | #logo{ | ||
| 68 | position: absolute; | ||
| 69 | width: 69px; | ||
| 70 | height: auto; | ||
| 71 | right: 21px; | ||
| 72 | bottom:28px; | ||
| 73 | opacity: 0; | ||
| 74 | } | ||
| 75 | #legal{ | ||
| 76 | position: absolute; | ||
| 77 | width: 180px; | ||
| 78 | height: auto; | ||
| 79 | left: 9px; | ||
| 80 | bottom:6px; | ||
| 81 | } | ||
| 82 | #ey-frame{ | ||
| 83 | position: absolute; | ||
| 84 | left: 21px; | ||
| 85 | top:23px; | ||
| 86 | z-index: 9; | ||
| 87 | } | ||
| 88 | #txt1a, #txt1b, #txt2 { | ||
| 89 | position: absolute; | ||
| 90 | width: 138px; | ||
| 91 | height: auto; | ||
| 92 | left: 51px; | ||
| 93 | top:94px; | ||
| 94 | z-index: 10; | ||
| 95 | opacity: 0; | ||
| 96 | } | ||
| 97 | #txt1b{ | ||
| 98 | top:161px; | ||
| 99 | width: 113px; | ||
| 100 | } | ||
| 101 | #txt2{ | ||
| 102 | left: 45px; | ||
| 103 | width: 214px; | ||
| 104 | } | ||
| 105 | #cannon{ | ||
| 106 | position: absolute; | ||
| 107 | left: 150px; | ||
| 108 | top:270px; | ||
| 109 | } | ||
| 110 | #boy{ | ||
| 111 | position: absolute; | ||
| 112 | left: 175px; | ||
| 113 | top:310px; | ||
| 114 | } | ||
| 115 | #box-1, #box-2{ | ||
| 116 | position: absolute; | ||
| 117 | left: 209px; | ||
| 118 | top: 97px; | ||
| 119 | width:33px; | ||
| 120 | height: 33px; | ||
| 121 | border: white 4px solid; | ||
| 122 | opacity: 0; | ||
| 123 | z-index: 10; | ||
| 124 | } | ||
| 125 | #box-2{ | ||
| 126 | top: 163px; | ||
| 127 | } | ||
| 128 | #gradient{ | ||
| 129 | position: absolute; | ||
| 130 | opacity: .15; | ||
| 131 | } | ||
| 132 | #dot-1, #dot-2, #dot-3, #dot-txt{ | ||
| 133 | position: absolute; | ||
| 134 | left: -12px; | ||
| 135 | top: 104px; | ||
| 136 | width:12px; | ||
| 137 | height: 12px; | ||
| 138 | background-color: #FFD400; | ||
| 139 | } | ||
| 140 | #dot-txt{ | ||
| 141 | left:-12px; | ||
| 142 | top:131px; | ||
| 143 | opacity: 1; | ||
| 144 | } | ||
| 145 | #cta{ | ||
| 146 | position: absolute; | ||
| 147 | left: 26px; | ||
| 148 | top:175px; | ||
| 149 | width:207px; | ||
| 150 | height: auto; | ||
| 151 | opacity: 0; | ||
| 152 | } | ||
| 153 | #tag1, #tag2, #tag3{ | ||
| 154 | position: absolute; | ||
| 155 | left: 25px; | ||
| 156 | top:129px; | ||
| 157 | width:212px; | ||
| 158 | height: auto; | ||
| 159 | opacity: 0; | ||
| 160 | } | ||
| 161 | #tag2{ | ||
| 162 | width:198px; | ||
| 163 | } | ||
| 164 | #tag3{ | ||
| 165 | width:242px; | ||
| 166 | } | ||
| 167 | #tag-mask{ | ||
| 168 | position: absolute; | ||
| 169 | width:0; | ||
| 170 | height:100%; | ||
| 171 | overflow: hidden; | ||
| 172 | } | ||
| 173 | #hash{ | ||
| 174 | position: absolute; | ||
| 175 | left: 26px; | ||
| 176 | top:223px; | ||
| 177 | width:157px; | ||
| 178 | height: auto; | ||
| 179 | opacity: 0; | ||
| 180 | } | ||
| 181 | |||
| 182 | |||
| 183 | |||
| 184 | </style> | ||
| 185 | </head> | ||
| 186 | |||
| 187 | <body> | ||
| 188 | <a href="javascript:eyeBuild.doClick(0)" class="cta"> | ||
| 189 | <div id="border"> | ||
| 190 | <img id="boy" src="assets/boy.png" alt="boy"> | ||
| 191 | <img id="cannon" src="assets/cannon.png" alt="cannon"> | ||
| 192 | <img id="logo" src="assets/logo.png" alt="logo"> | ||
| 193 | <img id="legal" src="assets/legal.png" alt="legal"> | ||
| 194 | <img id="txt1a" src="assets/txt1a.png" alt="txt1"> | ||
| 195 | <img id="txt1b" src="assets/txt1b.png" alt="txt1"> | ||
| 196 | <div id="box-1"></div> | ||
| 197 | <div id="box-2"></div> | ||
| 198 | <img id="txt2" src="assets/txt2.png" alt="txt2"> | ||
| 199 | |||
| 200 | <img id="gradient" src="assets/gradient.svg" alt="cta"> | ||
| 201 | <div id="dot-1"></div> | ||
| 202 | <div id="dot-2"></div> | ||
| 203 | <div id="dot-3"></div> | ||
| 204 | |||
| 205 | <img id="cta" src="assets/cta.png" alt="cta"> | ||
| 206 | <div id="tag-mask"> | ||
| 207 | <img id="tag1" src="assets/tag1.png" alt="tag1"> | ||
| 208 | <img id="tag2" src="assets/tag2.png" alt="tag2"> | ||
| 209 | <img id="tag3" src="assets/tag3.png" alt="tag3"> | ||
| 210 | </div> | ||
| 211 | <div id="dot-txt"></div> | ||
| 212 | <img id="hash" src="assets/hash.png" alt="hash"> | ||
| 213 | |||
| 214 | <!-- | ||
| 215 | |||
| 216 | --> | ||
| 217 | |||
| 218 | </div> | ||
| 219 | </a> | ||
| 220 | |||
| 221 | <!-- GREENSOCK--> | ||
| 222 | <script src="assets/TweenMax.min.js"></script> | ||
| 223 | <script src="assets/DrawSVGPlugin.min.js"></script> | ||
| 224 | <script src="assets/ey-frame-svg-1.0.3.min.js"></script> | ||
| 225 | |||
| 226 | <script> | ||
| 227 | |||
| 228 | function stage1(){ | ||
| 229 | var tl = new TimelineMax(); /* {repeat:2, repeatDelay:2} */ | ||
| 230 | |||
| 231 | var d=.4; | ||
| 232 | |||
| 233 | |||
| 234 | tl.to("#boy", .8, {left:150, top:270, ease:Power1.easeOut, delay:0 }); | ||
| 235 | tl.to("#logo", .7, {opacity:1, ease:Power1.easeInOut, delay:-.5 }); | ||
| 236 | |||
| 237 | var myeySvg = initEySvgFrame(12, 259, 218); | ||
| 238 | document.getElementById("border").appendChild(myeySvg); | ||
| 239 | animateEyFrame(1); | ||
| 240 | animateGradient(.2); | ||
| 241 | |||
| 242 | tl.to("#txt1a", d, {opacity:1, ease:Power1.easeInOut, delay:1.8 }); | ||
| 243 | tl.to("#box-1", d, {opacity:1, ease:Power1.easeInOut, delay:-.2 }); | ||
| 244 | tl.to("#txt1b", d, {opacity:1, ease:Power1.easeInOut, delay:.1 }); | ||
| 245 | tl.to("#box-2", d, {opacity:1, ease:Power1.easeInOut, delay:-.2 }); | ||
| 246 | |||
| 247 | tl.to("#txt1a", d, {opacity:0, ease:Power1.easeInOut, delay:1.5 }); | ||
| 248 | tl.to("#box-1", d, {opacity:0, ease:Power1.easeInOut, delay:-d }); | ||
| 249 | tl.to("#txt1b", d, {opacity:0, ease:Power1.easeInOut, delay:-d }); | ||
| 250 | tl.to("#box-2", d, {opacity:0, ease:Power1.easeInOut, delay:-d }); | ||
| 251 | |||
| 252 | //animateFill(3.3); | ||
| 253 | tl.to("#txt2", d, {opacity:1, ease:Power1.easeInOut, delay:0 }); | ||
| 254 | tl.to("#txt2", d, {opacity:0, ease:Power1.easeInOut, delay:4 }); | ||
| 255 | |||
| 256 | animateEyReverse(10); | ||
| 257 | |||
| 258 | // phase 2 | ||
| 259 | |||
| 260 | tl.to("#gradient", d, {opacity:1, ease:Power1.easeInOut, delay:1 }); | ||
| 261 | |||
| 262 | tl.fromTo("#tag-mask", d, {width:0}, {width:320, ease:Linear.easeNone, delay:-.2 }); | ||
| 263 | tl.fromTo("#dot-txt", d, {left:-12}, {left:312, ease:Linear.easeNone, delay:-d}); | ||
| 264 | tl.to("#tag1", d, {opacity:1, ease:Linear.easeNone, delay:-d }); | ||
| 265 | tl.fromTo("#dot-1", d, {left:-12, opacity:1}, {left:66, opacity:1, ease:Power3.easeOut, delay:0}); | ||
| 266 | tl.to("#tag1", d, {opacity:0, ease:Linear.easeNone, delay:2 }); | ||
| 267 | |||
| 268 | tl.fromTo("#tag-mask", d, {width:0}, {width:320, ease:Linear.easeNone, delay:0 }); | ||
| 269 | tl.fromTo("#dot-txt", d, {left:-12}, {left:312, ease:Linear.easeNone, delay:-d}); | ||
| 270 | tl.to("#tag2", d, {opacity:1, ease:Linear.easeNone, delay:-d }); | ||
| 271 | tl.fromTo("#dot-2", d, {left:-12}, {left:46, ease:Power3.easeOut, delay:0}); | ||
| 272 | tl.to("#tag2", d, {opacity:0, ease:Linear.easeNone, delay:2 }); | ||
| 273 | |||
| 274 | tl.fromTo("#tag-mask", d, {width:0}, {width:320, ease:Linear.easeNone, delay:0 }); | ||
| 275 | tl.fromTo("#dot-txt", d, {left:-12}, {left:312, ease:Linear.easeNone, delay:-d}); | ||
| 276 | tl.to("#tag3", d, {opacity:1, ease:Linear.easeNone, delay:-d }); | ||
| 277 | tl.fromTo("#dot-3", d, {left:-12}, {left:26, ease:Power3.easeOut, delay:0}); | ||
| 278 | |||
| 279 | tl.to("#cta", d, {opacity:1, ease:Linear.easeNone, delay:0 }); | ||
| 280 | tl.to("#hash", d, {opacity:1, ease:Linear.easeNone, delay:0 }); | ||
| 281 | |||
| 282 | |||
| 283 | |||
| 284 | console.log( "time: " + tl.totalDuration() ); | ||
| 285 | } | ||
| 286 | |||
| 287 | //--------------------- | ||
| 288 | stage1(); | ||
| 289 | |||
| 290 | |||
| 291 | |||
| 292 | </script> | ||
| 293 | |||
| 294 | </body> | ||
| 295 | |||
| 296 | </html> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
32.2 KB
29 KB
30.4 KB
| 1 | <svg id="Layer_2" data-name="Layer 2" xmlns="http://www.w3.org/2000/svg" width="16.5" height="16.5" viewBox="0 0 16.5 16.5"><defs><style>.cls-1{fill:none;stroke:#ffd400;stroke-miterlimit:10;stroke-width:1.5px;}</style></defs><title>close-h</title><rect class="cls-1" x="0.75" y="0.75" width="15" height="15"/><line class="cls-1" x1="5" y1="11.5" x2="11.5" y2="5"/><line class="cls-1" x1="11.5" y1="11.5" x2="5" y2="5"/></svg> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | <svg id="Layer_2" data-name="Layer 2" xmlns="http://www.w3.org/2000/svg" width="16.5" height="16.5" viewBox="0 0 16.5 16.5"><defs><style>.cls-1{fill:none;stroke:#6d6e71;stroke-miterlimit:10;stroke-width:1.5px;}</style></defs><title>close</title><rect class="cls-1" x="0.75" y="0.75" width="15" height="15"/><line class="cls-1" x1="5" y1="11.5" x2="11.5" y2="5"/><line class="cls-1" x1="11.5" y1="11.5" x2="5" y2="5"/></svg> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
1.34 KB
2.57 KB
37.5 KB
26.3 KB
35.8 KB
4.18 KB
39.7 KB
37 KB
38.4 KB
12.6 KB
16.9 KB
1.84 KB
1.15 KB
1.31 KB
1.58 KB
35.3 KB
1.55 KB
1.44 KB
1.72 KB
4 KB
3.41 KB
86.3 KB
30.3 KB
25.8 KB
28.4 KB
14.7 KB
10.5 KB
12.6 KB
4.1 KB
38 KB
33.5 KB
35.5 KB
27.1 KB
26.4 KB
30 KB
15.6 KB
53.6 KB
37.6 KB
54.6 KB
7.12 KB
109 KB
94 KB
112 KB
21.8 KB
19.6 KB
23.5 KB
14 KB
14.3 KB
18 KB
4.99 KB
31.1 KB
28.6 KB
32.1 KB
15.9 KB
90.8 KB
65.6 KB
100 KB
10.1 KB
106 KB
89.6 KB
117 KB
13.5 KB
120 KB
24 KB
15.8 KB
18.1 KB
17.7 KB
17.9 KB
14 KB
10.1 KB
11.7 KB
32.3 KB
31.2 KB
32.3 KB
14.1 KB
5.43 KB
6.29 KB
1.84 KB
1.17 KB
1.33 KB
1.6 KB
1.52 KB
1.41 KB
1.71 KB
1.96 KB
1.8 KB
4.43 KB
92.9 KB
32.2 KB
29 KB
30.4 KB
1.34 KB
2.57 KB
37.5 KB
26.3 KB
35.8 KB
4.18 KB
39.7 KB
37 KB
38.4 KB
12.6 KB
16.9 KB
1.84 KB
1.15 KB
1.31 KB
1.58 KB
35.3 KB
1.55 KB
1.44 KB
1.72 KB
4 KB
3.41 KB
86.3 KB
30.3 KB
25.8 KB
28.4 KB
14.7 KB
10.5 KB
12.6 KB
4.1 KB
38 KB
33.5 KB
35.5 KB
-
Please register or sign in to post a comment