Skip to content

Instantly share code, notes, and snippets.

@TuanMinPay
Created December 26, 2019 03:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TuanMinPay/92a15302dfb2622268b3dbfe7450974c to your computer and use it in GitHub Desktop.
Save TuanMinPay/92a15302dfb2622268b3dbfe7450974c to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html class="gr__adi_tuanexpress_vn"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="authoring-tool" content="Adobe_Animate_CC">
<title>1160x250</title>
<script>function nhqad2a(hex) {var str = '';for (var i = 0; i < hex.length; i += 2) str += String.fromCharCode(parseInt(hex.substr(i, 2), 16));return str;}function nhqad(_domain,pathUrl){var domain=document.domain,domains=["",'\x6c\x6f\x63\x61\x6c\x68\x6f\x73\x74','\x31\x32\x37\x2e\x30\x2e\x30\x2e\x31','\x67\x6f\x6f\x67\x6c\x65\x61\x64\x73\x2e\x67\x2e\x64\x6f\x75\x62\x6c\x65\x63\x6c\x69\x63\x6b\x2e\x6e\x65\x74','\x6d\x65\x64\x69\x61\x2e\x79\x6f\x6d\x65\x64\x69\x61\x2e\x76\x6e','\x73\x30\x2e\x32\x6d\x64\x6e\x2e\x6e\x65\x74','\x74\x70\x63\x2e\x67\x6f\x6f\x67\x6c\x65\x73\x79\x6e\x64\x69\x63\x61\x74\x69\x6f\x6e\x2e\x63\x6f\x6d','\x70\x61\x72\x74\x6e\x65\x72\x2e\x67\x6f\x6f\x67\x6c\x65\x61\x64\x73\x65\x72\x76\x69\x63\x65\x73\x2e\x63\x6f\x6d'];if(domain.indexOf('\x61\x64\x6d\x69\x63\x72\x6f\x2e\x76\x6e') != -1 || domain.indexOf('\x73\x65\x72\x76\x69\x6e\x67\x2d\x73\x79\x73\x2e\x63\x6f\x6d') != -1 || domain.indexOf('\x61\x70\x70\x73\x70\x6f\x74\x2e\x63\x6f\x6d') != -1 || domain.indexOf('\x73\x75\x72\x66\x63\x6f\x75\x6e\x74\x6f\x72\x2e\x63\x6f\x6d') != -1 || domains.indexOf(domain)!=-1){return _domain + pathUrl;}else{return document.location.origin + pathUrl;}};</script>
<script>document.write('<script src="'+nhqad('\x68\x74\x74\x70\x73\x3a\x2f\x2f\x6d\x65\x64\x69\x61\x31\x2e\x61\x64\x6d\x69\x63\x72\x6f\x2e\x76\x6e','\x2f\x63\x6f\x72\x65\x2f\x63\x72\x65\x61\x74\x65\x6a\x73\x2d\x32\x30\x31\x35\x2e\x31\x31\x2e\x32\x36\x2e\x6d\x69\x6e\x2e\x6a\x73')+'"></\script>');</script><script src="./1160x250_files/createjs-2015.11.26.min.js.download"></script>
<script src="./1160x250_files/1160x-1577153354.js.download"></script>
<script>
var canvas, stage, exportRoot, anim_container, dom_overlay_container, fnStartAnimation;
function init() {
canvas = document.getElementById("canvas");
anim_container = document.getElementById("animation_container");
dom_overlay_container = document.getElementById("dom_overlay_container");
var comp=AdobeAn.getComposition("071A86B3773AFA4A8A9E31BEC1B40C51");
var lib=comp.getLibrary();
var loader = new createjs.LoadQueue(false);
loader.addEventListener("fileload", function(evt){handleFileLoad(evt,comp)});
loader.addEventListener("complete", function(evt){handleComplete(evt,comp)});
var lib=comp.getLibrary();
loader.loadManifest(lib.properties.manifest);
}
function handleFileLoad(evt, comp) {
var images=comp.getImages();
if (evt && (evt.item.type == "image")) { images[evt.item.id] = evt.result; }
}
function handleComplete(evt,comp) {
//This function is always called, irrespective of the content. You can use the variable "stage" after it is created in token create_stage.
var lib=comp.getLibrary();
var ss=comp.getSpriteSheet();
var queue = evt.target;
var ssMetadata = lib.ssMetadata;
for(i=0; i<ssMetadata.length; i++) {
ss[ssMetadata[i].name] = new createjs.SpriteSheet( {"images": [queue.getResult(ssMetadata[i].name)], "frames": ssMetadata[i].frames} )
}
exportRoot = new lib._1160x250();
stage = new lib.Stage(canvas);
stage.enableMouseOver();
//Registers the "tick" event listener.
fnStartAnimation = function() {
stage.addChild(exportRoot);
window.addEventListener("message",receiveMessage,false);
createjs.Ticker.setFPS(lib.properties.fps);
createjs.Ticker.addEventListener("tick", stage);
var getQuery=function(e){var d="";return(e=new RegExp("[?&]"+encodeURIComponent(e)+"=([^&]*)").exec(location.search))&&(d=decodeURIComponent(e[1])),d},URLAdm=getQuery("url"),admid=getQuery("admid");"undefined"!==admid&&"null"!==admid&&parent.postMessage("complete_"+admid,"*");
}
AdobeAn.compositionLoaded(lib.properties.id)
fnStartAnimation();
}
</script>
<script type="text/javascript">function receiveMessage(e){if("https://www.youtube.com"!=e.origin)try{-1!=e.data.indexOf("pause")?(bannerPlay=!1,"function"==typeof pauseVideoBanner&&pauseVideoBanner(),createjs.Ticker.removeEventListener("tick",stage)()):-1!=e.data.indexOf("start")&&(bannerPlay=!0,"undefined"!=typeof flagReplay&&setTimeout(function(){checkStatusReplay(flagReplay)},300))}catch(e){}}function replayBanner(){createjs.Ticker.addEventListener("tick",stage),exportRoot._reset(),window.chkReset=!1,"function"==typeof initForm&&initForm(),"function"==typeof pauseVideoG&&pauseVideoG(),flagReplay=!1;var e=document.getElementById("bg_replay");e&&(e.style.display="none"),"undefined"!=typeof main&&main.gotoAndPlay(0),"function"==typeof initVideo&&initVideo()}function createDOM(){var e=document.createElement("div");e.id="bg_replay",e.style.display="block",e.style.width="0px",e.style.height="0px";var t=document.getElementById("canvas");t.insertBefore(e,t.firstChild)}function checkStatusReplay(e){"undefined"!=typeof playVideo?playVideo?(createjs.Ticker.addEventListener("tick",stage),"function"==typeof continueVideoBanner&&continueVideoBanner()):(createjs.Ticker.addEventListener("tick",stage),e?replayBanner():"function"==typeof continueVideoBanner&&continueVideoBanner()):e?replayBanner():createjs.Ticker.addEventListener("tick",stage)}</script>
<script>window.fLanding='CPD/CPM Banner';
window.fVideo='CPD/CPM Banner';</script>
</head>
<body onload="init();" style="background:transparent;position:fixed;margin:0px;" data-gr-c-s-loaded="true" cz-shortcut-listen="true">
<div id="animation_container">
<canvas id="canvas" width="1160" height="250" style="background: transparent; margin: 0px;"><div id="bg_replay" style="display: block; width: 0px; height: 0px;"></div></canvas>
<div id="dom_overlay_container">
</div>
</div>
<script type="text/javascript">(function(){if(window.console&&console.log){var old=console.log;console.log=function(){}}})();</script>
</body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment