(function (cjs, an) { var p; // shortcut to reference prototypes var lib={};var ss={};var img={}; var rect; // used to reference frame bounds lib.ssMetadata = []; // symbols: (lib.Y_970x250_0000_LOGO = function() { this.initialize(img.Y_970x250_0000_LOGO); }).prototype = p = new cjs.Bitmap(); p.nominalBounds = new cjs.Rectangle(0,0,80,55); (lib.Y_970x250_0001_Tree = function() { this.initialize(img.Y_970x250_0001_Tree); }).prototype = p = new cjs.Bitmap(); p.nominalBounds = new cjs.Rectangle(0,0,632,86); (lib.Y_970x250_0002_Limited = function() { this.initialize(img.Y_970x250_0002_Limited); }).prototype = p = new cjs.Bitmap(); p.nominalBounds = new cjs.Rectangle(0,0,499,193); (lib.Y_970x250_0003_CTA = function() { this.initialize(img.Y_970x250_0003_CTA); }).prototype = p = new cjs.Bitmap(); p.nominalBounds = new cjs.Rectangle(0,0,232,39); (lib.Y_970x250_0004_TEXT = function() { this.initialize(img.Y_970x250_0004_TEXT); }).prototype = p = new cjs.Bitmap(); p.nominalBounds = new cjs.Rectangle(0,0,261,96); (lib.Y_970x250_0005_Button = function() { this.initialize(img.Y_970x250_0005_Button); }).prototype = p = new cjs.Bitmap(); p.nominalBounds = new cjs.Rectangle(0,0,119,30); (lib.Y_970x250_0006_CLOUD = function() { this.initialize(img.Y_970x250_0006_CLOUD); }).prototype = p = new cjs.Bitmap(); p.nominalBounds = new cjs.Rectangle(0,0,970,250);// helper functions: function mc_symbol_clone() { var clone = this._cloneProps(new this.constructor(this.mode, this.startPosition, this.loop)); clone.gotoAndStop(this.currentFrame); clone.paused = this.paused; clone.framerate = this.framerate; return clone; } function getMCSymbolPrototype(symbol, nominalBounds, frameBounds) { var prototype = cjs.extend(symbol, cjs.MovieClip); prototype.clone = mc_symbol_clone; prototype.nominalBounds = nominalBounds; prototype.frameBounds = frameBounds; return prototype; } (lib.Tween16 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.Y_970x250_0005_Button(); this.instance.parent = this; this.instance.setTransform(-59.5,-15); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-59.5,-15,119,30); p.frameBounds = [rect]; (lib.Tween15 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.Y_970x250_0005_Button(); this.instance.parent = this; this.instance.setTransform(-59.5,-15); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-59.5,-15,119,30); p.frameBounds = [rect]; (lib.Tween14 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.Y_970x250_0005_Button(); this.instance.parent = this; this.instance.setTransform(-59.5,-15); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-59.5,-15,119,30); p.frameBounds = [rect]; (lib.Tween13 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.Y_970x250_0005_Button(); this.instance.parent = this; this.instance.setTransform(-59.5,-15); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-59.5,-15,119,30); p.frameBounds = [rect]; (lib.Tween12 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.Y_970x250_0003_CTA(); this.instance.parent = this; this.instance.setTransform(-116,-19.5); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-116,-19.5,232,39); p.frameBounds = [rect]; (lib.Tween11 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.Y_970x250_0003_CTA(); this.instance.parent = this; this.instance.setTransform(-116,-19.5); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-116,-19.5,232,39); p.frameBounds = [rect]; (lib.Tween10 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.Y_970x250_0003_CTA(); this.instance.parent = this; this.instance.setTransform(-116,-19.5); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-116,-19.5,232,39); p.frameBounds = [rect]; (lib.Tween9 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.Y_970x250_0003_CTA(); this.instance.parent = this; this.instance.setTransform(-116,-19.5); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-116,-19.5,232,39); p.frameBounds = [rect]; (lib.Tween8 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.Y_970x250_0004_TEXT(); this.instance.parent = this; this.instance.setTransform(-130.5,-48); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-130.5,-48,261,96); p.frameBounds = [rect]; (lib.Tween7 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.Y_970x250_0004_TEXT(); this.instance.parent = this; this.instance.setTransform(-130.5,-48); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-130.5,-48,261,96); p.frameBounds = [rect]; (lib.Tween6 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.Y_970x250_0002_Limited(); this.instance.parent = this; this.instance.setTransform(-249.5,-96.5); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-249.5,-96.5,499,193); p.frameBounds = [rect]; (lib.Tween5 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.Y_970x250_0002_Limited(); this.instance.parent = this; this.instance.setTransform(-249.5,-96.5); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-249.5,-96.5,499,193); p.frameBounds = [rect]; (lib.Tween4 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.Y_970x250_0002_Limited(); this.instance.parent = this; this.instance.setTransform(-249.5,-96.5); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-249.5,-96.5,499,193); p.frameBounds = [rect]; (lib.Tween3 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.Y_970x250_0002_Limited(); this.instance.parent = this; this.instance.setTransform(-249.5,-96.5); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-249.5,-96.5,499,193); p.frameBounds = [rect]; (lib.Tween2 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.Y_970x250_0001_Tree(); this.instance.parent = this; this.instance.setTransform(-316,-43); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-316,-43,632,86); p.frameBounds = [rect]; (lib.Tween1 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // Layer_1 this.instance = new lib.Y_970x250_0001_Tree(); this.instance.parent = this; this.instance.setTransform(-316,-43); this.timeline.addTween(cjs.Tween.get(this.instance).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(-316,-43,632,86); p.frameBounds = [rect]; (lib.mcVideo = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // timeline functions: this.frame_0 = function() { var playerOptions = { videoURL: "https://adtima-video.zadn.vn/2019/03/dfb6a280-558c-40f8-bbf4-706aa5f03de5.mp4", poster: "", canvas:canvas, box:this, autoplay: true, muted: true, is_mobile: false }; var aPlayer = function (obj){ var auto_resize = obj.auto_resize === true ? true : false; var is_zingtv = obj.is_zingtv === true ? true : false; var box = obj.box; var canvas = obj.canvas ? obj.canvas : window.canvas; var unmute_after_replay = obj.unmute_after_replay === true ? true : false; var click_through = obj.clickthrough ? obj.clickthrough : user_clickthrough; var videoURL = obj.videoURL ? obj.videoURL : ""; var posterURL = obj.poster ? obj.poster : ""; var is_mobile = obj.is_mobile === true ? true : false; var offMute = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAnRJREFUSA3FVztoG0EQvXMcE8dRwKSw49Ig3LmyMIGQTiAIuFAhhIogdI0LVUGFU4UUrlQEjERUKKQXWIXBYCOVNgG7SpoEEtL5V4iDxFiHMbq8Z1hxWk7avZOEBp5uPzPzdm5nb0emoSdTUIsBCWAVWAAWAcolcAV8Bw6AU6ADDBRz4KxhPMK8BWwCzxS6YrqFRgX4DDhiUH4OIn4N5Q/Akmyk2T+H3ntg30//gc8gF7MFbAMRn3ndIdpuAA+BY9lIJibpJ+CNrDhEfx22UaAncpmYkY6SVKx3BQ1GfiQGvMTc020xMYYnI/8J/KJvkVzMXq4mbCLRl44w4V4CDs8nxQLGTUoecpDLIDHBcxpKisXik4CG5JoSXyTdj0MPR6lUihQKhaBHjlyxafwkerxpdEzTNKrV6tNcLjenoe6nkiAxv71KicfjM0IJhLPpdPqx6Id4rjKrmc3LKmPXdZ/307Ftu5NKpWzO12q1ebabzeZtP32M/yHx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MVb3AOskcKUfQS/JYEQ85mVAcsTVgphyCGCnkrgbmKO1YEVgDXSKOUMwb51B1SJqWM1OMqZc6Yk7cl+N2LYtG8sFmZrQNCLnv4U1lfc087yclBEslr6ahvBgAWwXNE95zynx8DAf2Hg2xGe85H+aXsHbF93wqrBiwIAAAAASUVORK5CYII="; var iconPlay = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAATCAYAAABPwleqAAAAAXNSR0IArs4c6QAAAbdJREFUOBFtkr1OAlEQhUHwHzUxaGHUSk0oLLAwdtSUFMb4FNQ+h6EwPAaJIUZj7IHGxsKEhFjQYYBoXBbxfHcZlkUmOXdm7syZn7sbj4USD82JNZpYcwwjoA2WZkS02RZzOqHTSAuyE77v37bb7ad6vW6J1sD8iIaUFFaE1Ejied5zqVQ6kL8mLAnWRGZUCJCwIaQhI5rgvVKpnI/vl6XJo1FkEi5XhW3hMKAG53A4/KzVape63xSYjAkjBbhYF3aFk2ny2B40m80bxbaE6QJyg2op6T3hdA7ZXXU6nbLirMaKrjuHCbswxT/R+F29/osCi8K/sam4L5zNdu71eh/FYvFKsWNhR+AL0MQ9HMZccqvVes1ms9eKXwhHQlrgcR2ZA7G/6DdwY7FGo/GQy+XK/X6/o7tvwRN8wXIjO0IckFCtVu/y+fy9bEhdoTe2iQ8F97vah+cRmCKZyWTeCoXCo+wvAeIsmSauO0tTgFfkG/K92Yk7OvwIdAfW1ciuG1VsZLqxF0UhQ2BXNDkTomyXxMgGRsdGSKSA6clDEUToMA2I+JY4qxUKhUTECgReeEJGTAfe+PwDGAvlzBgrbskAAAAASUVORK5CYII="; var iconPause = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAY9JREFUOBGVk0tOBDEMRCfNd/hIXIEV1+O2XACxGrVYoO4e6A/13K4oYoclj51yueJOMuWwW2mi84QOW1MzRgR3bbvUgkZ7pxy3WEs2R+UQWBXxEKMJg3Qhv16W5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ziZTBBuqInqZDjGqvuBA84bVFdXV2xvb++ZkJDgsX///mC40wfd3d2PuQjs3r07CffOJap+fn6RXDgEu3v3bg5O+XmqFMlqw9MHjuc/z/bG4fJSX7tr1654tl92dvYqmgNuf2NjY3l4eHgw3vJbe3h4rEUQ86P6On36Oi2OhIYLVoMxbRtoE7A2fC447oo2XNpV+/bt27Jo0aK1eXl5X8O9buHCxc9R3xYVFf1Kc3v27AldvHgxpws/ceJEGtzyS8JraGh4iZ+wRhAoWdCYiq2t7VxqEURwR1Y0OanAnR/HPamiefTo0QT1aUSUcrjnOoKVl5d3wsocqX/u3DkF1mVAmVF4A9JeWlpau3r16ndpTt+i0+LKysp4nwrgct5v+jKFgETh4+MTTO4lPj5e5Za5aCCy6zh9+nQTVRware9b4ZrnwCWJqDo6OlJE2IhozgX3Xejhw4c9o6Oj34EylUhNWrn24YLJ5fJmtvd4UDSBhit8Yj8ceimbQErSgMj4d19f38jbt28rKDBhc/q2Oi0uKiqqGFbgr54OHDly5IvJG7W3t9cS7mS4IWO6X3bu3PkH3FEZTqYq3DeEDluDqDGD9XHiP4OiFMXFxTYBAQERISEhryHPq8vNzT0JN93P8P5NixQkFlVFAmmBHJbZxejhp5lC5JYOuApKcCh9GFzfln5IHUPkFj7VQkqup8rlSGnbt2//Cq5L66mfiv50zuElgEw9J5tOXvjuDZ39oNPiiBgphJLrgoKCIIr4WKQJ7/SI3CNZGiXOs7HMNqUxGfNSHCGTYhDCkis0ijtkDAitYRLQGZwYRlZYZWoJCIoztYRNRF+M0HWQPgEzEX2BrJElgPiCrjelGPnLn/TdnpHpC+RMJAFvb29bpH9dZHHV9LGlifYRyBpZAqQr0hndcZn0hSx9bGnkPQRyRpYA6Yh0RToTPkE3snCNTU7rJ+hsI2Tjgeir/umDvrWEH514x8ZwhPa/lwAFjxSHkHvE7hP/9PE3oA0Hf9TwZEsAAAAASUVORK5CYII="; var muted = obj.muted === false ? false : true; var autoplay = obj.autoplay === false ? false : true; var played = true; canvas.video = this; var bounds = box.nominalBounds; var pt = box.localToGlobal(bounds.x, bounds.y); var tPer = pt.y / canvas.height; var lPer = pt.x / canvas.width; var newT = tPer * canvas.scrollHeight; var newL = lPer * canvas.scrollWidth; var newW = canvas.scrollWidth / canvas.width * bounds.width; var newH = canvas.scrollHeight / canvas.height * bounds.height; var muteDiv; var m_Icon = 10; var w_Icon = 30; muteDiv = document.createElement('div'); muteDiv.id = "mute"; muteDiv.style.width = w_Icon + "px"; muteDiv.style.height = w_Icon + "px"; muteDiv.style.position = "absolute"; muteDiv.style.top = newT + newH - (w_Icon + m_Icon) + "px"; muteDiv.style.left = newL + m_Icon + "px"; muteDiv.style['object-fit'] = "cover"; muteDiv.style['background-image'] = "url(" + (muted ? offMute : onMute) + ")"; muteDiv.style['cursor'] = "pointer"; muteDiv.style['z-index'] = "49"; canvas.parentNode.appendChild(muteDiv); muteDiv.addEventListener("click", function(){ muted = !muted; fnMuteVideo(muted); } ); muteDiv.addEventListener("mouseover", player_over); var playDiv; var m_Play_Icon = 10; var w_Play_Icon = 18; playDiv = document.createElement('div'); playDiv.id = "play_pause_button"; playDiv.style.width = w_Play_Icon + "px"; playDiv.style.height = w_Play_Icon + "px"; playDiv.style.position = "absolute"; playDiv.style.top = newT + newH - (w_Play_Icon + m_Play_Icon) + "px"; playDiv.style.left = newL + newW - (w_Play_Icon + m_Play_Icon) + "px"; playDiv.style['object-fit'] = "cover"; playDiv.style['background-image'] = "url(" + (played ? iconPause : iconPlay) + ")"; playDiv.style['cursor'] = "pointer"; playDiv.style['z-index'] = "49"; canvas.parentNode.appendChild(playDiv); playDiv.addEventListener("click", toogle_video); function toogle_video(){ played = !played; if(played) { fnPlayVideo(); } else { fnPauseVideo(); } } playDiv.addEventListener("mouseover", player_over); var videoContainer = document.getElementById('video-container'); var video = document.getElementById('video'); if(!video) { video = document.createElement('video'); video.src = videoURL; video.style.width = newW + "px"; video.style.height = newH + "px"; video.style['object-fit'] = "cover"; video.style.cursor = "pointer"; video.muted = muted; if(autoplay) video.autoplay = true; if(is_mobile) { video.setAttribute('playsinline',true); enableInlineVideo(video); setTimeout(function(){ video.removeAttribute('controls'); }, 500); } } if(!videoContainer) { videoContainer = document.createElement('div'); videoContainer.id = 'video-container'; videoContainer.style.position = "absolute"; videoContainer.style.top = newT + "px"; videoContainer.style.left = newL + "px"; canvas.parentNode.appendChild(videoContainer); videoContainer.appendChild(video); } if('EB' in window) { initVideo(); } function initVideo() { var sdkData = EB.getSDKData(); var useSDKVideoPlayer = false; var sdkPlayerVideoFormat = "mp4"; // or use "webm" for the webm format if (sdkData !== null) { if (sdkData.SDKType === "MRAID" && sdkData.version > 1) { document.body.classList.add("sdk"); // set sdk to use custom close button EB.setExpandProperties({ useCustomClose: true }); var sourceTags = video.getElementsByTagName("source"); var videoSource = ""; for (var i = 0; i < sourceTags.length; i++) { if (sourceTags[i].getAttribute("type")) { if (sourceTags[i].getAttribute("type").toLowerCase() === "video/" + sdkPlayerVideoFormat) { videoSource = sourceTags[i].getAttribute("src"); } } } videoContainer.removeChild(video); video = null; sdkVideoPlayButton.addEventListener("click", function() { if (videoSource !== "") { EB.playVideoOnNativePlayer(videoSource); } }); useSDKVideoPlayer = true; } } if (!useSDKVideoPlayer) { //videoContainer.removeChild(sdkVideoPlayer); var videoTrackingModule = new EBG.VideoModule(video); } videoContainer.style.visibility = "visible"; } video.addEventListener("click", function(){ if(autoplay || video.isPlay) { click_through(); } else { video.play(); video.isPlay = true; } } ); ///////////////////////////////////////////////////////////////// // config video tracking ///////////////////////////////////////////////////////////////// // tracking percent var trackerObj = {}; var ebVideoStarted = ('getCreativeViewUrl' in window)? getCreativeViewUrl() : ["#"]; var eb25Per_Played = ('getFirstQuatileUrl' in window) ? getFirstQuatileUrl() : ["#"]; var eb50Per_Played = ('getMidpointUrl' in window) ? getMidpointUrl() : ["#"]; var eb75Per_Played = ('getThirdQuatileUrl' in window) ? getThirdQuatileUrl() : ["#"]; var ebVideoFullPlay = ('getCompleteUrl' in window) ? getCompleteUrl() : ["#"]; // tracking second var timeTrackingArr = [ {time:3, link: ''}, {time:10, link: ''}, {time:30, link: ''}, {time:30, link: ('getProgressUrl' in window) ? getProgressUrl() : ["#"]} // pls don't change it :) ]; // sort on time //timeTrackingArr.sortOn('time', Array.DESCENDING); ///////////////////////////////////////////////////////////////// video.addEventListener('timeupdate', function () { var del = Math.round((video.currentTime / video.duration) * 100); var currentTime = video.currentTime; // tracking time (10s, 15s ...) for(var i = 0; i < timeTrackingArr.length; i++) { var trackVO = timeTrackingArr[i]; if(currentTime >= trackVO.time && trackVO.link && !trackVO.isTrack) { console.log("TRACKING: " + trackVO.time + '_Played'); loadTracker(trackVO.link); trackVO.isTrack = true; } } // tracing start, 25%, 50%, 75%, complete if(del == 100 && !trackerObj["ebVideoFullPlay"] && ebVideoFullPlay) // 100% { console.log("TRACKING: ebVideoFullPlay"); trackerObj["ebVideoFullPlay"] = true; loadTracker(ebVideoFullPlay); } else if (del >= 75 && !trackerObj["eb75Per_Played"] && eb75Per_Played) // 75% { console.log("TRACKING: eb75Per_Played"); trackerObj["eb75Per_Played"] = true; loadTracker(eb75Per_Played); } else if (del >= 50 && !trackerObj["eb50Per_Played"] && eb50Per_Played) // 50% { console.log("TRACKING: eb50Per_Played"); trackerObj["eb50Per_Played"] = true; loadTracker(eb50Per_Played); } else if (del >= 25 && !trackerObj["eb25Per_Played"] && eb25Per_Played) // 25% { console.log("TRACKING: eb25Per_Played"); trackerObj["eb25Per_Played"] = true; loadTracker(eb25Per_Played); } else if (del >= 0 && !trackerObj["ebVideoStarted"] && ebVideoStarted) // 0% { console.log("TRACKING: ebVideoStarted"); trackerObj["ebVideoStarted"] = true; loadTracker(ebVideoStarted); } }, 0); function loadTracker(param) { if(Array.isArray(param)) { for(var i = 0; i < param.length; i++) { iTracker(param[i]); } } else { iTracker(param); } } function iTracker(val) { if (val.length > 0) { var rnd = Math.floor(Math.random() * 10000000000); val = val.replace('[timestamp]', rnd); var img_tracking = document.createElement('img'); img_tracking.src = '' + val; img_tracking.style.height = '0px'; img_tracking.style.width = '0px'; img_tracking.style.display = 'none'; document.body.appendChild(img_tracking); console.log("iTracker: " + val); } } function clearTrackTag() { trackerObj["ebVideoStarted"] = false; trackerObj["eb25Per_Played"] = false; trackerObj["eb50Per_Played"] = false; trackerObj["eb75Per_Played"] = false; trackerObj["ebVideoFullPlay"] = false; for(var i = 0; i < timeTrackingArr.length; i++) { var trackVO = timeTrackingArr[i]; trackVO.isTrack = false; } } video.addEventListener('ended', function () { clearTrackTag(); muteDiv.style['display'] = "none"; playDiv.style['display'] = "none"; createEndFrame(); // off - Mashead if('fnCloseMasHead' in window) { window.fnCloseMasHead(); } else { try{ window.parent.fnCloseMasHead(); } catch(err) { console.log("Pls add fnCloseMasHead method!"); } } }, 0); var poster; function createPoster(posterURL) { if(!poster) { poster = document.createElement('div'); poster.id = "poster"; poster.style.width = newW + "px"; poster.style.height = newH + "px"; poster.style.position = "absolute"; poster.style.top = newT + "px"; poster.style.left = newL + "px"; poster.style['object-fit'] = "cover"; poster.style['background-size'] = "cover"; poster.style['cursor'] = "pointer"; poster.style['z-index'] = 999; if(posterURL) { poster.style['background-image'] = "url(" + posterURL + ")"; } else { poster.style['background-color'] = "rgba(0,0,0,0)"; } canvas.parentNode.appendChild(poster); var poster_icon = document.createElement('div'); poster_icon.id = "poster_icon"; poster_icon.style.width = "37px"; poster_icon.style.height = "48px"; poster_icon.style.position = "absolute"; poster_icon.style.top = "50%"; poster_icon.style.left = "50%"; poster_icon.style['margin-left'] = "-24px"; poster_icon.style['margin-top'] = "-18px"; poster_icon.style['object-fit'] = "cover"; poster_icon.style['background-size'] = "cover"; poster_icon.style['cursor'] = "pointer"; poster_icon.style['z-index'] = 222; poster_icon.style['background-image'] = "url(" + playOver + ")"; poster.appendChild(poster_icon); if(autoplay) { hide_all_controls(); } else { hide_controls(); } poster.onclick = function () { canvas.video.fnPlayVideo(); }; } } function hide_all_controls() { poster.style['display'] = "none"; if(is_mobile) { muteDiv.style['display'] = "block"; playDiv.style['display'] = "block"; } else { muteDiv.style['display'] = "none"; playDiv.style['display'] = "none"; } } function show_controls() { poster.style['display'] = "none"; muteDiv.style['display'] = "block"; playDiv.style['display'] = "block"; } function hide_controls() { poster.style['display'] = "block"; muteDiv.style['display'] = "none"; playDiv.style['display'] = "none"; } createPoster(posterURL); poster.addEventListener("mouseover", player_over); poster.addEventListener("mouseout", player_out); video.addEventListener("mouseover", player_over); video.addEventListener("mouseout", player_out); function player_over(){ if(poster.style['display'] === "none") { muteDiv.style['display'] = "block"; playDiv.style['display'] = "block"; } } function player_out(){ if(is_mobile) { //playDiv.style['display'] = "block"; //muteDiv.style['display'] = "block"; } else { muteDiv.style['display'] = "none"; playDiv.style['display'] = "none"; } } var end_frame; function createEndFrame() { var newT = tPer * canvas.scrollHeight; var newL = lPer * canvas.scrollWidth; var newW = canvas.scrollWidth / canvas.width * bounds.width; var newH = canvas.scrollHeight / canvas.height * bounds.height; end_frame = document.createElement('div'); end_frame.id = "end_frame"; end_frame.style.width = newW + "px"; end_frame.style.height = newH + "px"; end_frame.style.position = "absolute"; end_frame.style.top = newT + "px"; end_frame.style.left = newL + "px"; end_frame.style['object-fit'] = "cover"; end_frame.style['background-size'] = "cover"; end_frame.style['cursor'] = "pointer"; end_frame.style['z-index'] = 9999; canvas.parentNode.appendChild(end_frame); var overlay = document.createElement('div'); overlay.id = "overlay"; overlay.style.width = "100%"; overlay.style.height = "100%"; overlay.style.position = "absolute"; overlay.style['object-fit'] = "cover"; overlay.style['background-size'] = "cover"; overlay.style['cursor'] = "pointer"; overlay.style['background-color'] = "rgba(0, 0, 0, 0.7)"; overlay.style['z-index'] = 1; end_frame.appendChild(overlay); var replay = document.createElement('div'); replay.id = "replay"; replay.style.width = "77px"; replay.style.height = "30px"; replay.style['margin-top'] = "-15px"; replay.style['object-fit'] = "cover"; replay.style['background-size'] = "cover"; replay.style['cursor'] = "pointer"; replay.style['background-image'] = "url(" + iconReplay + ")"; replay.style.position = "absolute"; replay.style.left = '0px'; var click_more = document.createElement('div'); click_more.id = "click_more"; click_more.style.width = "110px"; click_more.style.height = "30px"; click_more.style['margin-top'] = "-15px"; click_more.style['object-fit'] = "cover"; click_more.style['background-size'] = "cover"; click_more.style['cursor'] = "pointer"; click_more.style['background-image'] = "url(" + iconReadmore + ")"; click_more.style.position = "absolute"; click_more.style.left = '98px'; // 77 + 10 var bar = document.createElement('div'); bar.appendChild(replay); bar.appendChild(click_more); bar.id = "bar"; bar.style.position = "absolute"; bar.style['margin-left'] = "-104px"; bar.style.top = "50%"; bar.style.left = "50%"; bar.style['z-index'] = 2; end_frame.appendChild(bar); overlay.onclick = user_clickthrough; click_more.onclick = user_clickthrough; replay.onclick = user_click_replay; } function user_click_replay() { canvas.video.fnReplayVideo(); if(unmute_after_replay) canvas.video.fnMuteVideo(false); } function user_clickthrough() { if('getTargetUrl' in window) { var clickTAG = getTargetUrl(); window.open(clickTAG, "_blank"); } else { if('EB' in window) { EB.clickthrough(); console.log("Call EB.clickthrough()"); } else { console.log('Pls check getTargetUrl method!'); } } } ///////////////////////////////////////////////////// // Resize player ///////////////////////////////////////////////////// window.addEventListener("resize", onResizeHDL); function onResizeHDL() { var newT = tPer * canvas.scrollHeight; var newL = lPer * canvas.scrollWidth; var newW = canvas.scrollWidth / canvas.width * bounds.width; var newH = canvas.scrollHeight / canvas.height * bounds.height; videoContainer.style.top = newT + 'px'; videoContainer.style.left = newL + 'px'; video.style.width = newW + "px"; video.style.height = newH + "px"; poster.style.top = newT + 'px'; poster.style.left = newL + 'px'; poster.style.width = newW + "px"; poster.style.height = newH + "px"; muteDiv.style.top = newT + newH - (w_Icon + m_Icon) + "px"; muteDiv.style.left = newL + m_Icon + "px"; playDiv.style.top = newT + newH - (w_Play_Icon + m_Play_Icon) + "px"; playDiv.style.left = newL + newW - (w_Play_Icon + m_Play_Icon) + "px"; if(end_frame) { end_frame.style.top = newT + 'px'; end_frame.style.left = newL + 'px'; end_frame.style.width = newW + "px"; end_frame.style.height = newH + "px"; } } ///////////////////////////////////////////////////// // Define public methods ///////////////////////////////////////////////////// this['fnReplayVideo'] = fnReplayVideo; this['fnMuteVideo'] = fnMuteVideo; this['fnVolume'] = fnVolume; this['fnPauseVideo'] = fnPauseVideo; this['fnPlayVideo'] = fnPlayVideo; function fnReplayVideo() { hide_all_controls(); clearTrackTag(); video.currentTime = 0; video.play(); if(end_frame) { canvas.parentNode.removeChild(end_frame); end_frame = null; } } function fnMuteVideo(val) { muted = val; if(video) video.muted = muted; if(muted) { muteDiv.style['background-image'] = "url(" + offMute + ")"; } else { muteDiv.style['background-image'] = "url(" + onMute + ")"; videoClickSound(); } } function videoClickSound() { if(window.parent.adtimaCallBack) { window.parent.adtimaCallBack.videoClickSound({ "muted": false }); console.log('called videoClickSound'); } else { console.log('can not call videoClickSound'); } } function fnVolume(val) { video.volume = val; } function fnPauseVideo() { played = false; video.pause(); playDiv.style['background-image'] = "url(" + iconPlay + ")"; hide_controls(); } function fnPlayVideo() { played = true; video.play(); playDiv.style['background-image'] = "url(" + iconPause + ")"; show_controls(); } } var player = new aPlayer(playerOptions); } // actions tween: this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(1)); // bg this.shape = new cjs.Shape(); this.shape.graphics.f("rgba(0,0,153,0.498)").s().p("A6QOyIAA9iMA0hAAAIAAdig"); this.shape.setTransform(767.7,101); this.timeline.addTween(cjs.Tween.get(this.shape).wait(1)); }).prototype = getMCSymbolPrototype(lib.mcVideo, rect = new cjs.Rectangle(599.6,6.5,336.2,189.1), [rect]); (lib.mcStop = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // timeline functions: this.frame_0 = function() { // Define stop all animation stopAnimation(this.parent); console.log("Stop All:"); function stopAnimation(mc){ if (!mc) return; if ("stop" in mc) mc.stop(); var i; for (i = 0; i < mc.numChildren; i++){ var child = mc.getChildAt(i); stopAnimation(child); } } } // actions tween: this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(1)); // JS this.shape = new cjs.Shape(); this.shape.graphics.f("#FF0000").s().p("AhFBGQgegcAAgqQAAgpAegcQAcgeApAAQAqAAAcAeQAeAcAAApQAAAqgeAcQgcAegqAAQgpAAgcgeg"); this.shape.setTransform(10,10); this.timeline.addTween(cjs.Tween.get(this.shape).wait(1)); }).prototype = getMCSymbolPrototype(lib.mcStop, rect = new cjs.Rectangle(0,0,20,20), [rect]); (lib.clickTAG = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // timeline functions: this.frame_0 = function() { var self = this; self.addEventListener('click', clickTAG); self.cursor = 'pointer'; function clickTAG(evt) { if(evt.nativeEvent && evt.nativeEvent.button==2){ evt.preventDefault(); } else { if('getTargetUrl' in window) { var clickTAG = getTargetUrl(); window.open(clickTAG, "_blank"); } else { if('EB' in window) { EB.clickthrough(); console.log("Call EB.clickthrough()"); } else { console.log('Pls check getTargetUrl method!'); } } } } } // actions tween: this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(1)); // bg this.shape = new cjs.Shape(); this.shape.graphics.f("#000000").s().p("A3bTiMAAAgnDMAu3AAAMAAAAnDg"); this.shape.setTransform(150,125); this.timeline.addTween(cjs.Tween.get(this.shape).wait(1)); }).prototype = getMCSymbolPrototype(lib.clickTAG, rect = new cjs.Rectangle(0,0,300,250), [rect]); (lib.mcMain = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // timeline functions: this.frame_179 = function() { this.stop(); } // actions tween: this.timeline.addTween(cjs.Tween.get(this).wait(179).call(this.frame_179).wait(1)); // script&mcStop this.instance = new lib.mcStop(); this.instance.parent = this; this.instance.setTransform(994.5,2.5,1,1,0,0,0,2.5,2.5); this.instance._off = true; this.timeline.addTween(cjs.Tween.get(this.instance).wait(179).to({_off:false},0).wait(1)); // mcVideo this.instance_1 = new lib.mcVideo(); this.instance_1.parent = this; this.instance_1.setTransform(201,130.6,1,1,0,0,0,186,104.6); this.instance_1.alpha = 0.012; this.timeline.addTween(cjs.Tween.get(this.instance_1).wait(180)); // clickTAG this.instance_2 = new lib.clickTAG(); this.instance_2.parent = this; this.instance_2.setTransform(485,125,3.233,1,0,0,0,150,125); this.instance_2.alpha = 0.012; this.timeline.addTween(cjs.Tween.get(this.instance_2).wait(180)); // Layer_9 this.instance_3 = new lib.Y_970x250_0000_LOGO(); this.instance_3.parent = this; this.instance_3.setTransform(14,14); this.timeline.addTween(cjs.Tween.get(this.instance_3).wait(180)); // Layer_8 this.instance_4 = new lib.Tween13("synched",0); this.instance_4.parent = this; this.instance_4.setTransform(164.5,192,0.5,0.5); this.instance_4.alpha = 0; this.instance_4._off = true; this.instance_5 = new lib.Tween14("synched",0); this.instance_5.parent = this; this.instance_5.setTransform(164.5,192,1.05,1.05); this.instance_5._off = true; this.instance_6 = new lib.Tween15("synched",0); this.instance_6.parent = this; this.instance_6.setTransform(164.5,192,0.95,0.95); this.instance_6._off = true; this.instance_7 = new lib.Tween16("synched",0); this.instance_7.parent = this; this.instance_7.setTransform(164.5,192); this.instance_7._off = true; this.timeline.addTween(cjs.Tween.get(this.instance_4).wait(60).to({_off:false},0).to({_off:true,scaleX:1.05,scaleY:1.05,alpha:1},11,cjs.Ease.get(1)).wait(109)); this.timeline.addTween(cjs.Tween.get(this.instance_5).wait(60).to({_off:false},11,cjs.Ease.get(1)).to({_off:true,scaleX:0.95,scaleY:0.95},7).wait(102)); this.timeline.addTween(cjs.Tween.get(this.instance_6).wait(71).to({_off:false},7).to({_off:true,scaleX:1,scaleY:1},7).wait(95)); this.timeline.addTween(cjs.Tween.get(this.instance_7).wait(78).to({_off:false},7).wait(16).to({startPosition:0},0).to({scaleX:1.05,scaleY:1.05},8).to({scaleX:0.95,scaleY:0.95},7).to({scaleX:1.05,scaleY:1.05},7).to({scaleX:1,scaleY:1},7).wait(18).to({startPosition:0},0).to({scaleX:1.05,scaleY:1.05},8).to({scaleX:0.95,scaleY:0.95},7).to({scaleX:1.05,scaleY:1.05},7).to({scaleX:1,scaleY:1},7).wait(3)); // Layer_7 this.instance_8 = new lib.Tween9("synched",0); this.instance_8.parent = this; this.instance_8.setTransform(164,145.5,1.2,1.2); this.instance_8.alpha = 0; this.instance_8._off = true; this.instance_9 = new lib.Tween10("synched",0); this.instance_9.parent = this; this.instance_9.setTransform(164,145.5,0.9,0.9); this.instance_9._off = true; this.instance_10 = new lib.Tween11("synched",0); this.instance_10.parent = this; this.instance_10.setTransform(164,145.5,1.05,1.05); this.instance_10._off = true; this.instance_11 = new lib.Tween12("synched",0); this.instance_11.parent = this; this.instance_11.setTransform(164,145.5); this.timeline.addTween(cjs.Tween.get({}).to({state:[]}).to({state:[{t:this.instance_8}]},40).to({state:[{t:this.instance_9}]},10).to({state:[{t:this.instance_10}]},10).to({state:[{t:this.instance_11}]},9).wait(111)); this.timeline.addTween(cjs.Tween.get(this.instance_8).wait(40).to({_off:false},0).to({_off:true,scaleX:0.9,scaleY:0.9,alpha:1},10,cjs.Ease.get(1)).wait(130)); this.timeline.addTween(cjs.Tween.get(this.instance_9).wait(40).to({_off:false},10,cjs.Ease.get(1)).to({_off:true,scaleX:1.05,scaleY:1.05},10).wait(120)); this.timeline.addTween(cjs.Tween.get(this.instance_10).wait(50).to({_off:false},10).to({_off:true,scaleX:1,scaleY:1},9).wait(111)); // Layer_6 this.instance_12 = new lib.Tween7("synched",0); this.instance_12.parent = this; this.instance_12.setTransform(160.5,86,1.2,1.2); this.instance_12.alpha = 0; this.instance_12._off = true; this.instance_13 = new lib.Tween8("synched",0); this.instance_13.parent = this; this.instance_13.setTransform(160.5,86); this.timeline.addTween(cjs.Tween.get({}).to({state:[]}).to({state:[{t:this.instance_12}]},34).to({state:[{t:this.instance_13}]},13).wait(133)); this.timeline.addTween(cjs.Tween.get(this.instance_12).wait(34).to({_off:false},0).to({_off:true,scaleX:1,scaleY:1,alpha:1},13,cjs.Ease.get(1)).wait(133)); // Layer_5 this.instance_14 = new lib.Tween1("synched",0); this.instance_14.parent = this; this.instance_14.setTransform(326,-43); this.instance_14._off = true; this.instance_15 = new lib.Tween2("synched",0); this.instance_15.parent = this; this.instance_15.setTransform(326,201); this.timeline.addTween(cjs.Tween.get({}).to({state:[]}).to({state:[{t:this.instance_14}]},3).to({state:[{t:this.instance_15}]},15).wait(162)); this.timeline.addTween(cjs.Tween.get(this.instance_14).wait(3).to({_off:false},0).to({_off:true,y:201},15,cjs.Ease.get(1)).wait(162)); // Layer_4 this.instance_16 = new lib.Tween3("synched",0); this.instance_16.parent = this; this.instance_16.setTransform(555.5,0,1,1,0,0,0,0,96.5); this.instance_16._off = true; this.instance_17 = new lib.Tween4("synched",0); this.instance_17.parent = this; this.instance_17.setTransform(555.5,230.1,1,0.983,0,0,0,0,96.5); this.instance_17._off = true; this.instance_18 = new lib.Tween5("synched",0); this.instance_18.parent = this; this.instance_18.setTransform(555.5,230.1,1,1.025,0,0,0,0,96.5); this.instance_18._off = true; this.instance_19 = new lib.Tween6("synched",0); this.instance_19.parent = this; this.instance_19.setTransform(555.5,230,1,1,0,0,0,0,96.5); this.timeline.addTween(cjs.Tween.get({}).to({state:[]}).to({state:[{t:this.instance_16}]},7).to({state:[{t:this.instance_17}]},11).to({state:[{t:this.instance_18}]},8).to({state:[{t:this.instance_19}]},8).wait(146)); this.timeline.addTween(cjs.Tween.get(this.instance_16).wait(7).to({_off:false},0).to({_off:true,scaleY:0.98,y:230.1},11,cjs.Ease.get(1)).wait(162)); this.timeline.addTween(cjs.Tween.get(this.instance_17).wait(7).to({_off:false},11,cjs.Ease.get(1)).to({_off:true,scaleY:1.02},8,cjs.Ease.get(1)).wait(154)); this.timeline.addTween(cjs.Tween.get(this.instance_18).wait(18).to({_off:false},8,cjs.Ease.get(1)).to({_off:true,scaleY:1,y:230},8,cjs.Ease.get(1)).wait(146)); // Layer_3 this.instance_20 = new lib.Y_970x250_0006_CLOUD(); this.instance_20.parent = this; this.timeline.addTween(cjs.Tween.get(this.instance_20).wait(180)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = rect = new cjs.Rectangle(0,0,970,250); p.frameBounds = [rect, rect, rect, new cjs.Rectangle(0,-86,970,336), new cjs.Rectangle(0,-54.5,970,304.6), new cjs.Rectangle(0,-25.2,970,275.3), new cjs.Rectangle(0,0,970,250), new cjs.Rectangle(0,-193,970,443), new cjs.Rectangle(0,-152.4,970,402.5), new cjs.Rectangle(0,-115.8,970,365.9), new cjs.Rectangle(0,-83,970,333.1), new cjs.Rectangle(0,-54.1,970,304.2), new cjs.Rectangle(0,-29.1,970,279.1), new cjs.Rectangle(0,-7.9,970,257.9), rect=new cjs.Rectangle(0,0,970,250), rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, rect, new cjs.Rectangle(0,0,1012,250)]; // stage content: (lib.z_JS_ZingNews_970x250 = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // timeline functions: this.frame_0 = function() { //////////////////////////////////////////////////////////// // Create CSS For Banner //////////////////////////////////////////////////////////// // Create the