3fca6336 by Dan Rempel

CWL update ads for new sizes

1 parent 2eef8dce
Showing 18 changed files with 230 additions and 3 deletions
<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
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="425.51" height="47.84" viewBox="0 0 425.51 47.84"><defs><style>.cls-1{fill:#55565a;}</style></defs><title>txt1</title><path class="cls-1" d="M75.81,397.52l15.88,41.94,16.48-41.94h6.7v47.84h-4.56V404h-0.13L93.83,445.36H89.54L73.8,404H73.66v41.34H69.11V397.52h6.7Z" transform="translate(-69.11 -397.52)"/><path class="cls-1" d="M141.67,397.52l18.76,47.84h-4.89l-5.83-14.87H127.93l-5.76,14.87h-4.82l19.23-47.84h5.09Zm6.5,29.08-9.25-24.52-9.58,24.52h18.83Z" transform="translate(-69.11 -397.52)"/><path class="cls-1" d="M167.66,397.52v25.73l27.81-25.73h6.16l-21.37,19.76,22.38,28.07h-5.9l-19.9-24.92-9.18,8.51v16.42h-4.56V397.52h4.56Z" transform="translate(-69.11 -397.52)"/><path class="cls-1" d="M237.88,397.52v3.89H209.4v17.29h26.67v3.89H209.4v18.89h28.81v3.89H204.85V397.52h33Z" transform="translate(-69.11 -397.52)"/><path class="cls-1" d="M278.95,397.52l18.76,47.84h-4.89L287,430.48H265.21l-5.76,14.87h-4.82l19.23-47.84h5.09Zm6.5,29.08-9.25-24.52-9.58,24.52h18.83Z" transform="translate(-69.11 -397.52)"/><path class="cls-1" d="M317.41,397.52l10.85,41.88h0.13l11.66-41.87h5.7l11.72,41.88h0.13l10.92-41.87h4.56l-13.2,47.84h-4.82l-12.13-42.81H342.8l-12.06,42.81h-5l-13.27-47.84h4.89Z" transform="translate(-69.11 -397.52)"/><path class="cls-1" d="M394.32,397.52l18.76,47.84h-4.89l-5.83-14.87H380.59l-5.76,14.87H370l19.23-47.84h5.09Zm6.5,29.08-9.25-24.52L382,426.6h18.83Z" transform="translate(-69.11 -397.52)"/><path class="cls-1" d="M412,397.52l15.54,42.81h0.13l15.41-42.81h4.82l-17.75,47.84h-5.29l-17.69-47.84H412Z" transform="translate(-69.11 -397.52)"/><path class="cls-1" d="M483.5,397.52v3.89H455v17.29h26.67v3.89H455v18.89h28.81v3.89H450.47V397.52h33Z" transform="translate(-69.11 -397.52)"/><path class="cls-1" d="M489,438.25h5.63v7.1H489v-7.1Zm0.54-40.74h4.56v14.27l-1,21.64h-2.55l-1-21.64V397.52Z" transform="translate(-69.11 -397.52)"/></svg>
\ No newline at end of file
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>HTML5 Ad</title>
<script type="text/javascript">
// IAB source: modified to allow link testing
var clickTag = "http://thecommonwell.ca/wave";
function getParameterByName(name)
{
var match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);
if (match == null || match == ""){
return clickTag;
} else{
return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
}
}
clickTag = getParameterByName('clickTag');
</script>
<script type="text/javascript">
window.onload = function() {
window.isVideoClick = false;
var video = document.getElementById("video");
var videoControls = document.getElementById("video-controls");
var playButton = document.getElementById("play-pause");
playButton.addEventListener("click", function(e) {
if (video.paused == true) {
video.play();
playButton.setAttribute("class", "pause");
videoControls.setAttribute("class", "play");
} else {
video.pause();
playButton.setAttribute("class", "play");
}
});
}
</script>
<style>
body{
margin: 0;
padding: 0;
width: 600px;
height: 566px;
line-height: 1.2;
font-size: 27px;
letter-spacing: .4;
color: #CD040B;
font-family: "Neue Haas Grotesk", Arial, sans-serif;
/*font-weight: 800;*/ /*BOLD-800, MEDIUM-600, ROMAN - 400*/
font-style: normal;
}
a{
text-decoration: none;
color: inherit;
}
#click-tag{
display: block;
position: absolute;
width: 100%;
height: 186px;
top:380px;
}
#border{
position: relative;
width: 600px;
height: 566px;
border: 1px solid #55565A;
background-color: #FFFFFF;
overflow: hidden;
cursor: pointer;
box-sizing: border-box;
}
#border:hover #cta{
background-color: #666666;
}
#border:active #cta{
background-color: #000000;
}
#video, #video-controls{
position: absolute;
width: 553px;
height: 311px;
left:23px;
top:23px;
}
#video-controls{
background: url(assets/video-poster.jpg) no-repeat center center;
}
#video-controls.play {
background: none;
}
#video-controls button{
width: 100%;
height: 100%;
background: url(assets/play.svg) no-repeat center center;
border: none;
cursor: pointer;
}
#video-controls button.play:hover{
background-size: 160px 160px;
}
#video-controls button.play{
background: url(assets/play.svg) no-repeat center center;
background-size: 155px 155px;
}
#video-controls button.pause{
background: none;
}
.bar{
position: absolute;
width: 47px;
height: 30px;
left:-50px;
}
.grey{
background-color: #55565A;
top:396px;
}
.green{
background-color: #77BC1F;
top:434px;
}
.blue{
background-color: #009BDE;
top:472px;
}
.orange{
background-color: #F7A800;
top:510px;
}
#txt1, #txt2{
position: absolute;
left:69px;
top:396px;
opacity: 0;
}
#logoImg{
position: absolute;
left:297px;
top:395px;
opacity: 0;
}
</style>
</head>
<body>
<div id="border">
<!--<div id="img"><img id="" src="assets/img@1x.gif" width="600" height="566" style="border-style:none"></div>-->
<a id="click-tag" href="javascript:window.open(window.clickTag)"></a>
<video id="video" width="272" height="152">
<source src="assets/vid.mp4" type="video/mp4">
Your browser doesn't support HTML5 video.
</video>
<div id="video-controls">
<button type="button" id="play-pause" class="play"></button>
</div>
<div id="bar1" class="bar grey"></div>
<div id="bar2" class="bar green"></div>
<div id="bar3" class="bar blue"></div>
<div id="bar4" class="bar orange"></div>
<img id="txt1" src="assets/txt1.svg" style="border-style:none">
<img id="txt2" src="assets/txt2.svg" style="border-style:none">
<img id="logoImg" src="assets/logo.svg" style="border-style:none">
</div>
<!-- jQuery-->
<script src="//code.jquery.com/jquery-1.12.3.min.js" integrity="sha256-aaODHAgvwQW1bFOGXMeX+pC4PZIPsvn2h1sArYOhgXQ=" crossorigin="anonymous"></script>
<!-- GREENSOCK-->
<!-- <script src="//www.greensock.com/js/src/utils/SplitText.min.js"></script> enables character or word animation - $99/yr -->
<script src="//cdnjs.cloudflare.com/ajax/libs/gsap/latest/TweenMax.min.js"></script>
<script>
function stage1(){
var tl = new TimelineMax({repeat:0, repeatDelay:2});
var barDelay = -0.05;
var barDuration = .25;
tl.to("#bar1", barDuration, {left:0, ease:Power1.easeInOut, delay:0 });
tl.to("#bar2", barDuration, {left:0, ease:Power1.easeInOut, delay:barDelay });
tl.to("#bar3", barDuration, {left:0, ease:Power1.easeInOut, delay:barDelay });
tl.to("#bar4", barDuration, {left:0, ease:Power1.easeInOut, delay:barDelay });
var fadeDuration = .5;
tl.to("#txt1", fadeDuration, {opacity:1, ease:Power1.easeInOut, delay:-.5 });
tl.to("#txt1", fadeDuration, {opacity:0, ease:Power1.easeInOut, delay:1.5 });
tl.to("#txt2", fadeDuration, {opacity:1, ease:Power1.easeInOut, delay:-.5});
tl.to("#txt2", fadeDuration, {opacity:0, ease:Power1.easeInOut, delay:2});
tl.to("#logoImg", 1, {opacity:1, ease:Power1.easeInOut, delay:-.5 });
console.log( "time: " + tl.totalDuration() );
}
//---------------------
$(document).ready(function(){
stage1();
});
</script>
</body>
</html>
\ No newline at end of file
......@@ -18,6 +18,7 @@
<iframe id='' class="b728x90 stacked" scrolling="no" src="en_728x90_cwl_2016Spring_trades/index.html"></iframe>
<iframe id='' class="b300x600 stacked" scrolling="no" src="en_300x600_cwl_2016Spring_makeawave/index.html"></iframe>
<iframe id='' class="b600x566 stacked" scrolling="no" src="en_600x566_cwl_2016Spring_makeawave/index.html"></iframe>
</body>
</html>
......
......@@ -13,7 +13,7 @@
<h3><a href="index.html">Desktop HTML5 Ads</a> &nbsp; &nbsp; | &nbsp; &nbsp;<a href="index_mobile.html">Mobile Ads</a></h3>
<img class="stacked" src="en_728x90_cwl_2016Spring_trades.gif" alt="en_728x90_cwl_2016Spring_trades" width="728" height="90">
<img class="stacked" src="en_300x50_cwl_2016Spring_business.gif" alt="en_300x50_cwl_2016Spring_business" width="300" height="50">
<img class="stacked" src="en_640x100_cwl_2016Spring_business.gif" alt="en_640x100_cwl_2016Spring_business" width="640" height="100">
<img class="stacked" src="en_320x50_cwl_2016Spring_business.gif" alt="en_320x50_cwl_2016Spring_business" width="320" height="50">
</body>
</html>
......
......@@ -47,4 +47,7 @@ iframe, img {
width: 300px;
height: 600px;
}
.b600x566 {
width: 600px;
height: 566px;
}
......