index.html 3.2 KB
<!DOCTYPE html>
    <head>
       
        <meta charset="utf-8">
        <title>HTML5 Ad</title>
        <script type="text/javascript" src="https://quickresource.eyereturn.com/eyebuild/eyebuild_1_19.js"></script>
        <script type="text/javascript">
            window.onload = function() {
             	eyeBuild.initialize();
                var playButton = document.getElementById("play-pause");
                    
                playButton.addEventListener('click', function(e){
                    eyeBuild.doOpen();
                }, false);
            };
        </script>
        
        <style>
            
            body{
                margin: 0;
                padding: 0;
                width: 300px;
                height: 600px;
                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;
            }
            #border{
                position: relative;
                width: 300px;
                height: 600px;
                border: 1px solid #55565A;
                background-color: #282828;
                overflow: hidden;
                cursor: pointer;
				box-sizing: border-box;
				background: url(assets/back1.jpg);
				background-size:300px 600px;
/* 				background: url(guide.png); */
            }
            #txt {
                position: absolute;
                width: 156px;
                height: 131px;
                left: 16px;
                bottom:451px;
                z-index: 10;
                opacity: 0;
                transform-origin: bottom;
            }
            #click-tag{
                position: absolute;
                width: 100%;
                height: 100%;
                display: block;
            }
            #play-pause {
                position: absolute;
                top: 320px;
                left: 15px;
                height: 153px;
                width: 271px;
                cursor: pointer;
                border: none;
                background: none;
            }
                        
        </style>
    </head>
    
    <body>
        <div id="border">
            <a id="click-tag" href="javascript:eyeBuild.doClick(0)">
                <img id="txt" src="assets/slice.png">

            </a>
            <button type="button" id="play-pause" class="pause"></button>
        </div>
        
    <!-- GREENSOCK-->
        <script src="assets/TweenMax.min.js"></script>
        <script>
            
            function stage1(){
            	var tl = new TimelineMax({repeat:0, repeatDelay:2});
            	              
             	tl.fromTo("#txt",           .3, {opacity:0, scaleY:.01, ease:Power1.easeIn, delay:.5 }, {opacity:1, scaleY:1, ease:Power1.easeIn, delay:.5 });
            	console.log( "time: " + tl.totalDuration() );
            }

            //---------------------
            stage1();

        </script>

    </body>

</html>