| Server IP : 104.21.21.239 / Your IP : 216.73.216.11 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/home2/cgny/public_html/2019/wit/ |
Upload File : |
(function (cjs, an) {
var p; // shortcut to reference prototypes
var lib={};var ss={};var img={};
lib.ssMetadata = [
{name:"GJD160x600_Linked_atlas_1", frames: [[633,207,329,48],[302,251,240,28],[633,144,277,61],[302,144,329,105],[302,0,328,142],[632,0,328,142],[0,0,300,505]]}
];
(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.CachedBmp_12 = function() {
this.initialize(ss["GJD160x600_Linked_atlas_1"]);
this.gotoAndStop(0);
}).prototype = p = new cjs.Sprite();
(lib.CachedBmp_11 = function() {
this.initialize(ss["GJD160x600_Linked_atlas_1"]);
this.gotoAndStop(1);
}).prototype = p = new cjs.Sprite();
(lib.CachedBmp_10 = function() {
this.initialize(ss["GJD160x600_Linked_atlas_1"]);
this.gotoAndStop(2);
}).prototype = p = new cjs.Sprite();
(lib.CachedBmp_9 = function() {
this.initialize(ss["GJD160x600_Linked_atlas_1"]);
this.gotoAndStop(3);
}).prototype = p = new cjs.Sprite();
(lib.CachedBmp_8 = function() {
this.initialize(ss["GJD160x600_Linked_atlas_1"]);
this.gotoAndStop(4);
}).prototype = p = new cjs.Sprite();
(lib.CachedBmp_7 = function() {
this.initialize(ss["GJD160x600_Linked_atlas_1"]);
this.gotoAndStop(5);
}).prototype = p = new cjs.Sprite();
(lib.Image = function() {
this.initialize(ss["GJD160x600_Linked_atlas_1"]);
this.gotoAndStop(6);
}).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.verticalrule = 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().s("#C0AE94").ss(2).p("AAAiuIAAFd");
this.shape.setTransform(0,17.5);
this.timeline.addTween(cjs.Tween.get(this.shape).wait(1));
this._renderFirstFrame();
}).prototype = getMCSymbolPrototype(lib.verticalrule, new cjs.Rectangle(-1,-1,2,37), null);
(lib.top_text = 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.CachedBmp_12();
this.instance.setTransform(0,0,0.5,0.5);
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
this._renderFirstFrame();
}).prototype = getMCSymbolPrototype(lib.top_text, new cjs.Rectangle(0,0,164.5,24), null);
(lib.Symbol1 = 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("rgba(0,153,153,0.498)").s().p("EgMfAvAMAAAhd/IY/AAMAAABd/g");
this.shape.setTransform(80,300.8);
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,160,601.6);
(lib.headline1 = 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.lf(["#DCC28E","#D4B989","#C9AE81","#A58964","#9A7D5A","#8C714D","#886C49","#907450","#A88C64","#D4B989"],[0.055,0.098,0.306,0.392,0.404,0.463,0.494,0.51,0.553,0.816],-34.5,-51.8,32.5,55.4).s().p("AKMFBIg3jOIgBAAIAADOIgoAAIAAkdIA4AAIAtCrIABAAIAAirIAnAAIAAEdgAHzFBIgIg0Ig3AAIgIA0IgoAAIAtkdIBCAAIAtEdgAG6DnIArAAIgViQIgBAAgAE4FBIAAjzIhbAAIAADzIgtAAIAAjzIguAAIAAgqIERAAIAAAqIguAAIAADzgABlFBIgIg0Ig3AAIgIA0IgoAAIAskdIBCAAIAuEdgAArDnIArAAIgUiQIgBAAgAhDFBIAAh6Ig0AAIAAB6IgsAAIAAkdIAsAAIAAB7IA0AAIAAh7IAtAAIAAEdgAjoFBIg4jOIgBAAIAADOIgnAAIAAkdIA3AAIAtCrIABAAIAAirIAoAAIAAEdgAmBFBIgIg0Ig3AAIgHA0IgqAAIAukdIBBAAIAuEdgAm7DnIArAAIgUiQIgBAAgAooFBIAAjMIAAAAIgeDMIgqAAIghjJIgBAAIAADJIgnAAIAAkdIA/AAIAgDKIABAAIAejKIA+AAIAAEdgAjBgvQgQgTgBgiIAAgSIArAAIAAAUQgBAcAYAAQAXAAAAgcQAAgPgIgNQgIgOgWgTQgcgYgLgVQgKgTAAgZQAAgjAQgSQARgSAhgBQAgABAQASQARASAAAjIAAAJIgqAAIAAgMQAAgcgWAAQgXAAAAAcQABAQAHANQAJAOAVATQAcAYALAVQALASAAAaQAAAigRATQgSASggAAQggAAgSgSgAJkghIg3jNIgBAAIAADNIgnAAIAAkbIA3AAIAtCqIABAAIAAiqIAoAAIAAEbgAHAghIAAkbIAsAAIAAEbgAEbghIAAhdIg5i+IAvAAIAiCBIABAAIAhiBIAqAAIg4C+IAABdgABkghIAAkbIB5AAIAAAoIhMAAIAABPIA8AAIAAApIg8AAIAABTIBMAAIAAAogAAqghIgrhwIgNAaIAABWIgtAAIAAkbIAtAAIAAB7IABAAIA4h7IAsAAIg+B/IA+CcgAkQghIAAkbIAtAAIAAEbgAlVghIAAh5IgzAAIAAB5IgsAAIAAkbIAsAAIAAB5IAzAAIAAh5IAuAAIAAEbgAoeghIgPiXIgBAAIgQCXIg9AAIggkbIArAAIAYDgIABAAIAVjgIArAAIAWDiIABAAIAXjiIAmAAIgfEbg");
this.shape.setTransform(69.75,32.05);
this.timeline.addTween(cjs.Tween.get(this.shape).wait(1));
this._renderFirstFrame();
}).prototype = getMCSymbolPrototype(lib.headline1, new cjs.Rectangle(0,0,139.5,64.1), null);
(lib.bottombtn = 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.CachedBmp_11();
this.instance.setTransform(8.5,11.25,0.5,0.5);
this.instance_1 = new lib.CachedBmp_10();
this.instance_1.setTransform(-0.5,-0.5,0.5,0.5);
this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance_1},{t:this.instance}]}).wait(1));
this._renderFirstFrame();
}).prototype = getMCSymbolPrototype(lib.bottombtn, new cjs.Rectangle(-0.5,-0.5,138.5,30.5), null);
(lib.bottomsmalltext = 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.CachedBmp_9();
this.instance.setTransform(0,0,0.5,0.5);
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
this._renderFirstFrame();
}).prototype = getMCSymbolPrototype(lib.bottomsmalltext, new cjs.Rectangle(0,0,164.5,52.5), null);
(lib.bottombigheadline = 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.CachedBmp_8();
this.instance.setTransform(0,0,0.5,0.5);
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
this._renderFirstFrame();
}).prototype = getMCSymbolPrototype(lib.bottombigheadline, new cjs.Rectangle(0,0,164,71), null);
// stage content:
(lib._160x600_Linked = 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];
// timeline functions:
this.frame_0 = function() {
var _this = this;
/*
Mousing over the specified symbol instance executes a function.
'3' is the number of the times event should be triggered.
*/
stage.enableMouseOver(3);
_this.Btn1.on('mouseover', function(){
/*
Loads the URL in a new browser window.
*/
window.open('https://greatjonesdistillingco.com/distillery-experiences/?utm_source=web&utm_medium=display&utm_campaign=city_guide_digital&utm_id=experiences', '_blank');
});
var _this = this;
/*
Clicking on the specified symbol instance executes a function.
*/
_this.button_1.on('click', function(){
/*
Loads the URL in a new browser window.
*/
window.open('https://greatjonesdistillingco.com/distillery-experiences/?utm_source=web&utm_medium=display&utm_campaign=city_guide_digital&utm_id=experiences', '_blank');
});
}
// actions tween:
this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(449));
// BUTTON
this.button_1 = new lib.Symbol1();
this.button_1.name = "button_1";
this.button_1.setTransform(80,300.8,1,0.9973,0,0,0,80,301.6);
new cjs.ButtonHelper(this.button_1, 0, 1, 2, false, new lib.Symbol1(), 3);
this.timeline.addTween(cjs.Tween.get(this.button_1).wait(449));
// mask2 (mask)
var mask = new cjs.Shape();
mask._off = true;
mask.graphics.p("AifDgIAAm/IE/AAIAAG/g");
mask.setTransform(80.8,411.2);
// Verical_rule
this.instance = new lib.verticalrule();
this.instance.setTransform(80,457.5,1,1,0,0,0,0,17.5);
this.instance._off = true;
var maskedShapeInstanceList = [this.instance];
for(var shapedInstanceItr = 0; shapedInstanceItr < maskedShapeInstanceList.length; shapedInstanceItr++) {
maskedShapeInstanceList[shapedInstanceItr].mask = mask;
}
this.timeline.addTween(cjs.Tween.get(this.instance).wait(46).to({_off:false},0).to({y:414.3},12).wait(391));
// LOWER_TEXT
this.instance_1 = new lib.bottomsmalltext();
this.instance_1.setTransform(79.8,528.95,1,1,0,0,0,82.1,26.2);
this.instance_1.alpha = 0;
this.instance_1._off = true;
this.timeline.addTween(cjs.Tween.get(this.instance_1).wait(60).to({_off:false},0).to({alpha:1},16).wait(373));
// BOTTOM_HEADLINE
this.instance_2 = new lib.bottombigheadline();
this.instance_2.setTransform(80,467.35,1,1,0,0,0,82,35.4);
this.instance_2.alpha = 0;
this.instance_2._off = true;
this.timeline.addTween(cjs.Tween.get(this.instance_2).wait(60).to({_off:false},0).to({alpha:1},16).wait(373));
// Top_text
this.instance_3 = new lib.top_text();
this.instance_3.setTransform(79.8,244.95,1,1,0,0,0,82.1,11.9);
this.instance_3.alpha = 0;
this.instance_3._off = true;
this.timeline.addTween(cjs.Tween.get(this.instance_3).wait(24).to({_off:false},0).to({alpha:1},20,cjs.Ease.sineInOut).wait(405));
// BOTTOM_HEADLINE_copy
this.instance_4 = new lib.CachedBmp_7();
this.instance_4.setTransform(-2,431.95,0.5,0.5);
this.timeline.addTween(cjs.Tween.get(this.instance_4).wait(449));
// mask_idn (mask)
var mask_1 = new cjs.Shape();
mask_1._off = true;
mask_1.graphics.p("Ar8GLIAAsVIX5AAIAAMVg");
mask_1.setTransform(80.55,300.5);
// HEADLINE_1
this.instance_5 = new lib.headline1();
this.instance_5.setTransform(79.7,375.5,1,1,0,0,0,69.8,32);
this.instance_5._off = true;
var maskedShapeInstanceList = [this.instance_5];
for(var shapedInstanceItr = 0; shapedInstanceItr < maskedShapeInstanceList.length; shapedInstanceItr++) {
maskedShapeInstanceList[shapedInstanceItr].mask = mask_1;
}
this.timeline.addTween(cjs.Tween.get(this.instance_5).wait(8).to({_off:false},0).to({y:302.5},17,cjs.Ease.sineInOut).wait(424));
// button
this.Btn1 = new lib.bottombtn();
this.Btn1.name = "Btn1";
this.Btn1.setTransform(79.65,574.5,1,1,0,0,0,68.8,14.8);
new cjs.ButtonHelper(this.Btn1, 0, 1, 1);
this.timeline.addTween(cjs.Tween.get(this.Btn1).wait(449));
// logo
this.shape = new cjs.Shape();
this.shape.graphics.lf(["#D6BB8A","#D4B989","#C9AE81","#A58964","#9A7D5A","#8C714D","#886C49","#907450","#A88C64","#D4B989"],[0,0.098,0.145,0.349,0.392,0.463,0.522,0.631,0.8,1],-30.9,43.9,32.2,-19.2).s().p("AA1CtQgKgJgBgOIAAgFIAVAAIABAFQAAAEAEAEQAJAKAKgKQAFgFAAgFIAAhVIAVAAIAABXQAAAOgKAKQgJALgQgBQgQAAgJgLgAIQCuQgMgIgB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AgAgYgHIgDAAIgHgHQgXgZgJghIgEgbQAAgXARgPIAuAnIgbAAIA2AtIgUAAIAwApIgGAFIgDAAQgJAEgEgCQgKgDgJABIgSACIgEABQgEAAgFgDgAAbgqIATAAIgmgpIAWAAIg3hDIAHgBQAOAAAKAHIACAAQAMgGANgBQAVAAAPAQQAQAPAAAVIgEAbQgIAfgWAagAgKidQgIgBgFgDIgFgEQgEgEgBgHIgBgGIAHADIAKABQAHACAFAFQAIAIAAAMQgDgEgKgCgAATirQAFgGAHgCIAJgCQAGgBACgCIgBAHQgBAIgEADQgFAHgNABQgLACgDAFQAAgMAJgIg");
this.shape.setTransform(80.575,368.95);
this.timeline.addTween(cjs.Tween.get(this.shape).wait(449));
// gradient
this.shape_1 = new cjs.Shape();
this.shape_1.graphics.lf(["rgba(18,20,29,0.8)","rgba(27,29,38,0.698)","rgba(51,53,60,0.42)","rgba(88,89,95,0)"],[0.58,0.663,0.788,0.941],0,123,0,-122.9).s().p("AsfTOMAAAgmbIY/AAMAAAAmbg");
this.shape_1.setTransform(80,291.425);
this.timeline.addTween(cjs.Tween.get(this.shape_1).wait(449));
// photo
this.instance_6 = new lib.Image();
this.instance_6.setTransform(-55,-1,0.823,0.823);
this.timeline.addTween(cjs.Tween.get(this.instance_6).wait(449));
// beige_banner
this.shape_2 = new cjs.Shape();
this.shape_2.graphics.f("#FFFDED").s().p("AsfPKIAA+TIY/AAIAAeTg");
this.shape_2.setTransform(80,502.95);
this.timeline.addTween(cjs.Tween.get(this.shape_2).wait(449));
this._renderFirstFrame();
}).prototype = p = new lib.AnMovieClip();
p.nominalBounds = new cjs.Rectangle(25,299,166.9,301);
// library properties:
lib.properties = {
id: '2F098E3B804A4B84AF7923261584D03A',
width: 160,
height: 600,
fps: 30,
color: "#FFFFFF",
opacity: 1.00,
manifest: [
{src:"images/GJD160x600_Linked_atlas_1.png", id:"GJD160x600_Linked_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['2F098E3B804A4B84AF7923261584D03A'] = {
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;