Welcome to my blog. I document my adventures in travel, style, and food. Hope you have a nice stay!
(function (cjs, an) {
var p; // shortcut to reference prototypes
var lib={};var ss={};var img={};
lib.ssMetadata = [
{name:"index_atlas_1", frames: [[0,0,972,252],[974,253,970,250],[974,0,970,251],[0,254,970,250],[972,505,970,250],[0,506,970,250],[972,757,970,250],[0,758,970,250]]}
];
(lib.AnMovieClip = function(){
this.actionFrames = [];
this.ignorePause = false;
this.gotoAndPlay = function(positionOrLabel){
cjs.MovieClip.prototype.gotoAndPlay.call(this,positionOrLabel);
}
this.play = function(){
cjs.MovieClip.prototype.play.call(this);
}
this.gotoAndStop = function(positionOrLabel){
cjs.MovieClip.prototype.gotoAndStop.call(this,positionOrLabel);
}
this.stop = function(){
cjs.MovieClip.prototype.stop.call(this);
}
}).prototype = p = new cjs.MovieClip();
// symbols:
(lib.back = function() {
this.initialize(ss["index_atlas_1"]);
this.gotoAndStop(0);
}).prototype = p = new cjs.Sprite();
(lib.btn = function() {
this.initialize(ss["index_atlas_1"]);
this.gotoAndStop(1);
}).prototype = p = new cjs.Sprite();
(lib.card = function() {
this.initialize(ss["index_atlas_1"]);
this.gotoAndStop(2);
}).prototype = p = new cjs.Sprite();
(lib.cta = function() {
this.initialize(ss["index_atlas_1"]);
this.gotoAndStop(3);
}).prototype = p = new cjs.Sprite();
(lib.hl = function() {
this.initialize(ss["index_atlas_1"]);
this.gotoAndStop(4);
}).prototype = p = new cjs.Sprite();
(lib.line1 = function() {
this.initialize(ss["index_atlas_1"]);
this.gotoAndStop(5);
}).prototype = p = new cjs.Sprite();
(lib.line2 = function() {
this.initialize(ss["index_atlas_1"]);
this.gotoAndStop(6);
}).prototype = p = new cjs.Sprite();
(lib.today = function() {
this.initialize(ss["index_atlas_1"]);
this.gotoAndStop(7);
}).prototype = p = new cjs.Sprite();
// helper functions:
function mc_symbol_clone() {
var clone = this._cloneProps(new this.constructor(this.mode, this.startPosition, this.loop, this.reversed));
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.today_1 = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
var props = new Object();
props.mode = mode;
props.startPosition = startPosition;
props.labels = {};
props.loop = loop;
props.reversed = reversed;
cjs.MovieClip.apply(this,[props]);
// Layer_1
this.instance = new lib.today();
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
this._renderFirstFrame();
}).prototype = getMCSymbolPrototype(lib.today_1, new cjs.Rectangle(0,0,970,250), null);
(lib.line2_1 = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
var props = new Object();
props.mode = mode;
props.startPosition = startPosition;
props.labels = {};
props.loop = loop;
props.reversed = reversed;
cjs.MovieClip.apply(this,[props]);
// Layer_1
this.instance = new lib.line2();
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
this._renderFirstFrame();
}).prototype = getMCSymbolPrototype(lib.line2_1, new cjs.Rectangle(0,0,970,250), null);
(lib.line1_1 = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
var props = new Object();
props.mode = mode;
props.startPosition = startPosition;
props.labels = {};
props.loop = loop;
props.reversed = reversed;
cjs.MovieClip.apply(this,[props]);
// Layer_1
this.instance = new lib.line1();
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
this._renderFirstFrame();
}).prototype = getMCSymbolPrototype(lib.line1_1, new cjs.Rectangle(0,0,970,250), null);
(lib.hl_1 = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
var props = new Object();
props.mode = mode;
props.startPosition = startPosition;
props.labels = {};
props.loop = loop;
props.reversed = reversed;
cjs.MovieClip.apply(this,[props]);
// Layer_1
this.instance = new lib.hl();
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
this._renderFirstFrame();
}).prototype = getMCSymbolPrototype(lib.hl_1, new cjs.Rectangle(0,0,970,250), null);
(lib.cta_1 = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
var props = new Object();
props.mode = mode;
props.startPosition = startPosition;
props.labels = {};
props.loop = loop;
props.reversed = reversed;
cjs.MovieClip.apply(this,[props]);
// Layer_1
this.instance = new lib.cta();
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
this._renderFirstFrame();
}).prototype = getMCSymbolPrototype(lib.cta_1, new cjs.Rectangle(0,0,970,250), null);
(lib.card_1 = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
var props = new Object();
props.mode = mode;
props.startPosition = startPosition;
props.labels = {};
props.loop = loop;
props.reversed = reversed;
cjs.MovieClip.apply(this,[props]);
// Layer_1
this.instance = new lib.card();
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
this._renderFirstFrame();
}).prototype = getMCSymbolPrototype(lib.card_1, new cjs.Rectangle(0,0,970,251), null);
(lib.btnCatchAll = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
var props = new Object();
props.mode = mode;
props.startPosition = startPosition;
props.labels = {};
props.loop = loop;
props.reversed = reversed;
cjs.MovieClip.apply(this,[props]);
// Layer_1
this.shape = new cjs.Shape();
this.shape.graphics.f("#003399").s().p("A55UeMAAAgo7MAzyAAAMAAAAo7g");
this.shape.setTransform(165.75,131.025);
this.shape._off = true;
this.timeline.addTween(cjs.Tween.get(this.shape).wait(3).to({_off:false},0).wait(1));
this._renderFirstFrame();
}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(0,0,331.5,262.1);
(lib.btn_1 = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
var props = new Object();
props.mode = mode;
props.startPosition = startPosition;
props.labels = {};
props.loop = loop;
props.reversed = reversed;
cjs.MovieClip.apply(this,[props]);
// Layer_1
this.instance = new lib.btn();
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
this._renderFirstFrame();
}).prototype = getMCSymbolPrototype(lib.btn_1, new cjs.Rectangle(0,0,970,250), null);
// stage content:
(lib._23INTSmallBIz970x250v1 = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
var props = new Object();
props.mode = mode;
props.startPosition = startPosition;
props.labels = {};
props.loop = loop;
props.reversed = reversed;
cjs.MovieClip.apply(this,[props]);
this.actionFrames = [0,141];
// timeline functions:
this.frame_0 = function() {
this.btnCatchAll.cursor = "pointer";
}
this.frame_141 = function() {
/* Stop at This Frame
The timeline will stop/pause at the frame where you insert this code.
Can also be used to stop/pause the timeline of movieclips.
*/
this.stop();
}
// actions tween:
this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(141).call(this.frame_141).wait(1));
// CatchAll
this.btnCatchAll = new lib.btnCatchAll();
this.btnCatchAll.name = "btnCatchAll";
this.btnCatchAll.setTransform(165.8,131,1,1,0,0,0,165.8,131);
new cjs.ButtonHelper(this.btnCatchAll, 0, 1, 2, false, new lib.btnCatchAll(), 3);
this.timeline.addTween(cjs.Tween.get(this.btnCatchAll).wait(141).to({scaleX:2.9864,x:488.15,y:127},0).wait(1));
// frame
this.shape = new cjs.Shape();
this.shape.graphics.f().s("#000000").ss(1,1,1).p("EhLxgThMCXjAAAMAAAAnDMiXjAAAg");
this.shape.setTransform(485,125);
this.timeline.addTween(cjs.Tween.get(this.shape).wait(142));
// btn
this.instance = new lib.btn_1();
this.instance.setTransform(150,250,1,1,0,0,0,150,125);
this.instance._off = true;
this.timeline.addTween(cjs.Tween.get(this.instance).wait(99).to({_off:false},0).to({y:125},17,cjs.Ease.circOut).wait(26));
// cta
this.instance_1 = new lib.cta_1();
this.instance_1.setTransform(-299.05,125,1,1,0,0,0,150,125);
this.instance_1._off = true;
this.timeline.addTween(cjs.Tween.get(this.instance_1).wait(90).to({_off:false},0).to({x:150},26,cjs.Ease.circOut).wait(26));
// line2
this.instance_2 = new lib.line2_1();
this.instance_2.setTransform(-255.05,125,1,1,0,0,0,150,125);
this.instance_2._off = true;
this.timeline.addTween(cjs.Tween.get(this.instance_2).wait(90).to({_off:false},0).to({x:150},26,cjs.Ease.circOut).wait(26));
// hl
this.instance_3 = new lib.hl_1();
this.instance_3.setTransform(150.5,244,1,1,0,0,0,150.5,125);
this.timeline.addTween(cjs.Tween.get(this.instance_3).to({y:125},29,cjs.Ease.circOut).wait(46).to({y:274},14,cjs.Ease.circInOut).to({_off:true},1).wait(52));
// today
this.instance_4 = new lib.today_1();
this.instance_4.setTransform(-185.5,125,1,1,0,0,0,150.5,125);
this.timeline.addTween(cjs.Tween.get(this.instance_4).to({x:150.5},29,cjs.Ease.circOut).wait(46).to({y:0},14,cjs.Ease.circInOut).to({_off:true},1).wait(52));
// line1
this.instance_5 = new lib.line1_1();
this.instance_5.setTransform(-203.45,125,1,1,0,0,0,150.5,125);
this.timeline.addTween(cjs.Tween.get(this.instance_5).to({x:150.5},29,cjs.Ease.circOut).wait(46).to({y:-12},14,cjs.Ease.circInOut).to({_off:true},1).wait(52));
// card
this.instance_6 = new lib.card_1();
this.instance_6.setTransform(150,225,1,1,0,0,0,150,125);
this.timeline.addTween(cjs.Tween.get(this.instance_6).to({y:125},29,cjs.Ease.circOut).wait(113));
// back
this.instance_7 = new lib.back();
this.timeline.addTween(cjs.Tween.get(this.instance_7).wait(142));
this._renderFirstFrame();
}).prototype = p = new lib.AnMovieClip();
p.nominalBounds = new cjs.Rectangle(35.9,-12,947.1,411);
// library properties:
lib.properties = {
id: 'D5C934ECE9664B18A5F43A963FAA3A20',
width: 970,
height: 250,
fps: 30,
color: "#FFFFFF",
opacity: 1.00,
manifest: [
{src:"images/index_atlas_1.png", id:"index_atlas_1"}
],
preloads: []
};
// bootstrap callback support:
(lib.Stage = function(canvas) {
createjs.Stage.call(this, canvas);
}).prototype = p = new createjs.Stage();
p.setAutoPlay = function(autoPlay) {
this.tickEnabled = autoPlay;
}
p.play = function() { this.tickEnabled = true; this.getChildAt(0).gotoAndPlay(this.getTimelinePosition()) }
p.stop = function(ms) { if(ms) this.seek(ms); this.tickEnabled = false; }
p.seek = function(ms) { this.tickEnabled = true; this.getChildAt(0).gotoAndStop(lib.properties.fps * ms / 1000); }
p.getDuration = function() { return this.getChildAt(0).totalFrames / lib.properties.fps * 1000; }
p.getTimelinePosition = function() { return this.getChildAt(0).currentFrame / lib.properties.fps * 1000; }
an.bootcompsLoaded = an.bootcompsLoaded || [];
if(!an.bootstrapListeners) {
an.bootstrapListeners=[];
}
an.bootstrapCallback=function(fnCallback) {
an.bootstrapListeners.push(fnCallback);
if(an.bootcompsLoaded.length > 0) {
for(var i=0; i<an.bootcompsLoaded.length; ++i) {
fnCallback(an.bootcompsLoaded[i]);
}
}
};
an.compositions = an.compositions || {};
an.compositions['D5C934ECE9664B18A5F43A963FAA3A20'] = {
getStage: function() { return exportRoot.stage; },
getLibrary: function() { return lib; },
getSpriteSheet: function() { return ss; },
getImages: function() { return img; }
};
an.compositionLoaded = function(id) {
an.bootcompsLoaded.push(id);
for(var j=0; j<an.bootstrapListeners.length; j++) {
an.bootstrapListeners[j](id);
}
}
an.getComposition = function(id) {
return an.compositions[id];
}
an.makeResponsive = function(isResp, respDim, isScale, scaleType, domContainers) {
var lastW, lastH, lastS=1;
window.addEventListener('resize', resizeCanvas);
resizeCanvas();
function resizeCanvas() {
var w = lib.properties.width, h = lib.properties.height;
var iw = window.innerWidth, ih=window.innerHeight;
var pRatio = window.devicePixelRatio || 1, xRatio=iw/w, yRatio=ih/h, sRatio=1;
if(isResp) {
if((respDim=='width'&&lastW==iw) || (respDim=='height'&&lastH==ih)) {
sRatio = lastS;
}
else if(!isScale) {
if(iw<w || ih<h)
sRatio = Math.min(xRatio, yRatio);
}
else if(scaleType==1) {
sRatio = Math.min(xRatio, yRatio);
}
else if(scaleType==2) {
sRatio = Math.max(xRatio, yRatio);
}
}
domContainers[0].width = w * pRatio * sRatio;
domContainers[0].height = h * pRatio * sRatio;
domContainers.forEach(function(container) {
container.style.width = w * sRatio + 'px';
container.style.height = h * sRatio + 'px';
});
stage.scaleX = pRatio*sRatio;
stage.scaleY = pRatio*sRatio;
lastW = iw; lastH = ih; lastS = sRatio;
stage.tickOnUpdate = false;
stage.update();
stage.tickOnUpdate = true;
}
}
an.handleSoundStreamOnTick = function(event) {
if(!event.paused){
var stageChild = stage.getChildAt(0);
if(!stageChild.paused || stageChild.ignorePause){
stageChild.syncStreamSounds();
}
}
}
an.handleFilterCache = function(event) {
if(!event.paused){
var target = event.target;
if(target){
if(target.filterCacheList){
for(var index = 0; index < target.filterCacheList.length ; index++){
var cacheInst = target.filterCacheList[index];
if((cacheInst.startFrame <= target.currentFrame) && (target.currentFrame <= cacheInst.endFrame)){
cacheInst.instance.cache(cacheInst.x, cacheInst.y, cacheInst.w, cacheInst.h);
}
}
}
}
}
}
})(createjs = createjs||{}, AdobeAn = AdobeAn||{});
var createjs, AdobeAn;
Vivamus sit amet semper lacus, in mollis libero. Donec eget risus diam. Sed a ligula quis sapien lacinia egestas. Nulla lectus ante, consequat et ex eget, feugiat tincidunt metus.