PageSourceSearch

https://www.hagerstownmd.org/-823076099.js

js hagerstownmd.org collected 2026-09-25 09:39:34 UTC 16,184 bytes, 32 lines download raw bytes

1(function(b,c){b.ObjectRegistry=b.ObjectRegistry||{};b.ObjectRegistry.Slideshow=b.ObjectRegistry.Slideshow||{};b.ObjectRegistry.Slideshow.Register=function(a,e){b.ObjectRegistry.Slideshow.hasOwnProperty(a)&&g("WARNING \x3e Slideshow object is already registered. Rebinding new slideshow "+a+". Old one will fade into darkness.");return b.ObjectRegistry.Slideshow[a]=e};b.Slideshow=function(){this.slideCount=0;this.transitionType;this.slider=null;this.slideViewTime=this.transitionTime=1E3;this.currentSlideIndex=
20;this.uniqueID=this.autoTransition=null;this.liveEditEnabled=!1;return this};b.Slideshow.prototype.DIAGNOSTIC_MODE=!1;var g=function(a){b.Slideshow.prototype.DIAGNOSTIC_MODE&&console.log("Slideshow diagnostic[SlideshowGenerator.js] "+a)},r="inert"in document.createElement("div"),q=function(a,e){if(a&&a.length)if(r){try{a[0].inert=!!e}catch(c){}e?(a.attr("inert",""),a.attr("aria-hidden","true")):(a.removeAttr("inert"),a.attr("aria-hidden","false"))}else e?a.attr("aria-hidden","true"):a.attr("aria-hidden",
3"false")},n=function(a){a&&a.length&&(q(a,!1),a.find("a[href], button:not([disabled])").each(function(){var a=c(this),b=a.data("cp-original-tabindex");void 0!==b?(a.attr("tabindex",b),a.removeData("cp-original-tabindex")):"-1"===a.attr("tabindex")&&a.removeAttr("tabindex")}))},k=function(a){a&&a.length&&(q(a,!0),a.find("a[href], button:not([disabled])").each(function(){var a=c(this);if(void 0===a.data("cp-original-tabindex")){var b=a.attr("tabindex");void 0!==b&&a.data("cp-original-tabindex",b)}a.attr("tabindex",
4"-1")}))};b.Slideshow.prototype.initSlides=function(a){c("img[data-delay-load]",a).each(function(){var a=c(this),b=attrOrProps(a,"data-delay-load");attrOrProps(a,"src",b)})};b.Slideshow.prototype.initSlidePlusAndMinusOneIndex=function(a,e,b){if(0<c("img[data-delay-load]",e).length){e=c("img[data-delayed-image]",e);var d=e.length,g=function(a,b){var d=c(a),e=attrOrProps(d,"dataset"),e=void 0==e?d.attr("data-delay-load"):e.delayLoad,h=attrOrProps(d,"src");"undefined"!==typeof b&&0!==b?d.css("height",
5b+"px"):d.css("height","auto");e!==h&&(void 0!==e&&""!==e&&null!==e)&&(attrOrProps(d,"src",e),d.removeAttr("data-delay-load"))};g(e[a],b);a+1>=d?g(e[0],b):g(e[a+1],b);0>a-1?g(e[d-1],b):g(e[a-1],b)}else a=c("img",e),0!==b?a.css("height",b+"px"):a.css("height","auto")};b.Slideshow.prototype.generate=function(a,e,h,d,p,l){g("Generating Slideshow for "+a);b.ObjectRegistry.Slideshow.Register(a,this);var f=this.mapUi(a);this.slider=this.createSlider(f);this.slider.$slider.removeClass("slide");this.initSlidePlusAndMinusOneIndex(0,
6f.$slider,l);null===e?(this.transitionTime=1E3*f.values.transitionTiming,this.slideViewTime=1E3*f.values.slideTiming):(this.transitionTime=1E3*e,this.slideViewTime=1E3*h);this.transitionType=f.transitionType;this.slideCount=f.$slides.length;f.$slides.each(function(){k(c(this));c(this).attr("aria-hidden","true")});this.currentSlideIndex=this.transitionType===this.TransitionType.Slide?1:0;this.uniqueID=a;this.liveEditEnabled=d;a=100/this.slideCount;if(this.transitionType===this.TransitionType.Slide)this.slider.createOverlapImagesForFirstAndLastSlides(),
7this.slideCount=f.$slides.length,a=100/this.slideCount,f.$slides.removeClass("hidden"),f.$slider.css("left","-100%");else if(this.transitionType===this.TransitionType.Fade)for(f.$slides.slice(1).animate({opacity:0}
7,0),f.$slides.removeClass("hidden"),e=0;e<this.slideCount;e++){h=a*e;if(/(?:\b(MS)?IE\s+|\bTrident\/7\.0;.*\s+rv:)(\d+)/.test(navigator.userAgent)||-1<navigator.userAgent.indexOf("Edge"))h=(Math.floor(100*a)/100).toFixed(2)*e;c(f.$slides[e]).css("left","-"+h+"%")}1<this.slideCount&&(e=c(f.$slides[this.transitionType===
8this.TransitionType.Slide?1:0]),e.addClass("showing").attr("aria-hidden","false"),n(e));f.$slider.css("width",this.slideCount+"00%");f.$slides.css("width",a+"%");f.$pages.first().addClass("active").children("a").append("\x3cspan class\x3d'visuallyhidden currentDot'\x3e(Current Item)\x3c/span\x3e");this.autoTransition=function(){var a=this;this.isDisposed()||f.$slider.animate({delay:1},this.slideViewTime,function(){g("Begin Slide Transition Cycle ( Slide View Time: "+a.slideViewTime+" ms, Transition Time: "+
9a.transitionTime+" ms  )");a.next(a.autoTransition)})};p||this.autoTransition();this.bindUx()};b.Slideshow.prototype.isDisposed=function(){return this!==b.ObjectRegistry.Slideshow[this.uniqueID]};b.Slideshow.prototype.pause=function(){this.slider.$slider.stop(!0);this.slider.$slides.stop(!0);this.autoTransition=null};b.Slideshow.prototype.paused=!1;b.Slideshow.prototype.pausedSlideIndex=0;b.Slideshow.prototype.onPause=function(){this.paused||(this.paused=!0,this.pausedSlideIndex=this.currentSlideIndex,
10this.pause())};b.Slideshow.prototype.onResume=function(){if(this.paused){this.paused=!1;var a=this;this.autoTransition=function(){a.isDisposed()||a.slider.$slider.animate({delay:1},a.slideViewTime,function(){g("Begin Slide Transition Cycle ( Slide View Time: "+a.slideViewTime+" ms, Transition Time: "+a.transitionTime+" ms  )");a.next(a.autoTransition)})};this.transitionToSlide(this.pausedSlideIndex,null,function(){a.autoTransition()})}};b.Slideshow.prototype.transitionToSlide=function(a,b,h){g("Transition to "+
11a);var d=this,p=function(){if(!d.isDisposed()){g("Fade Animation Complete for slide "+d.currentSlideIndex+" to "+a+" - Update Indexes and Classes. Invoke Next Transition");var b=d.slider.$slider.find(".showing"),e=c(d.slider.$slides[a]);k(b);b.removeClass("showing").attr("aria-hidden","true");n(e);e.addClass("showing").attr("aria-hidden","false");d.slider.$pager.find(".active").removeClass("active").find(".currentDot").remove();c(d.slider.$pages[a]).addClass("active").children("a").append("\x3cspan class\x3d'visuallyhidden currentDot'\x3e(Current Item)\x3c/span\x3e");
12d.currentSlideIndex=a;for(b=0;b<d.slider.$slides.length;b++)b!=a&&c(d.slider.$slides[b]).stop(!0).animate({opacity:0}
12,0);"function"===typeof h&&h.call(d)}},l=function(){if(!d.isDisposed()){var b=c(d.slider.$slides[a]);g("Dot Update Invoked for "+a+" corresponding to id "+attrOrProps(b,"id")+".");c("#dot"+attrOrProps(b,"id")).parent("ol").children("li").removeClass("active").find(".currentDot").remove();c("#dot"+attrOrProps(b,"id")).addClass("active").children("a").append("\x3cspan class\x3d'visuallyhidden currentDot'\x3e(Current Item)\x3c/span\x3e")}};
13if(this.transitionType===this.TransitionType.Slide){a>this.slideCount-2?a=1:1>a&&(a=this.slideCount-2);g("(Slide) Current Slide: "+this.currentSlideIndex+"; Target Slide: "+a);b=this.GetSlideDirectionTransitionType(a,b);l();var f=0,m=0;switch(b){case this.SlideTransitionDirectionType.FirstToLast:f=0;g("First Slide to Last Slide Transition");this.slider.$slider.animate({left:"0%"},this.transitionTime,function(){var a=d.slider.$slides.length-2;/(?:\b(MS)?IE\s+|\bTrident\/7\.0;.*\s+rv:)(\d+)/.test(navigator.userAgent)&&
14(f=100/d.slider.$slides.length%d.slider.$slides[a].style.width.replace("%","")*a*a);m=100*a-f;d.slider.$slider.css("left","-"+m+"%");var b=d.slider.$slider.find(".showing"),e=c(d.slider.$slides[a]);k(b);b.removeClass("showing").attr("aria-hidden","true");n(e);e.addClass("showing").attr("aria-hidden","false");d.slider.$pager.find(".active").removeClass("active");d.slider.$pager.find(".currentDot").remove();c(d.slider.$pages[a]).addClass("active").children("a").append("\x3cspan class\x3d'visuallyhidden currentDot'\x3e(Current Item)\x3c/span\x3e");
15d.currentSlideIndex=a;"function"===typeof h&&h.call(d)});break;case this.SlideTransitionDirectionType.LastToFirst:f=0;/(?:\b(MS)?IE\s+|\bTrident\/7\.0;.*\s+rv:)(\d+)/.test(navigator.userAgent)&&(f=100/d.slider.$slides.length%d.slider.$slides[d.currentSlideIndex].style.width.replace("%","")*a*a);m=100*(d.currentSlideIndex+1)-f;this.slider.$slider.animate({left:"-"+m+"%"},this.transitionTime,function(){g("Last Slide to First Slide Transition");d.slider.$slider.css("left","-100%");var a=d.slider.$slider.find(".showing"),
16b=c(d.slider.$slides[1]);k(a);a.removeClass("showing").attr("aria-hidden","true");n(b);b.addClass("showing").attr("aria-hidden","false");d.slider.$pager.find(".active").removeClass("active");d.slider.$pager.find(".currentDot").remove();c(d.slider.$pages[1]).addClass("active").children("a").append("\x3cspan class\x3d'visuallyhidden currentDot'\x3e(Current Item)\x3c/span\x3e");d.currentSlideIndex=1;"function"===typeof h&&h.call(d)});break;default:f=0,/(?:\b(MS)?IE\s+|\bTrident\/7\.0;.*\s+rv:)(\d+)/.test(navigator.userAgent)&&
17(f=100/d.slider.$slides.length%d.slider.$slides[d.currentSlideIndex].style.width.replace("%","")*a*a),m=100*a-f,this.slider.$slider.animate({left:"-"+m+"%"},this.transitionTime,function(){g("Inner Slide Transition");var b=d.slider.$slider.find(".showing"),e=c(d.slider.$slides[a]);k(b);b.removeClass("showing").attr("aria-hidden","true");n(e);e.addClass("showing").attr("aria-hidden","false");d.slider.$pager.find(".active").removeClass("active");d.slider.$pager.find(".currentDot").remove();c(d.slider.$pages[a]).addClass("active").children("a").append("\x3cspan class\x3d'visuallyhidden currentDot'\x3e(Current Item)\x3c/span\x3e");
18d.currentSlideIndex=a;"function"===typeof h&&h.call(d)})}}else this.transitionType===this.TransitionType.Fade&&(g("(Fade) Current Slide: "+this.currentSlideIndex+"; Target Slide: "+a),a>this.slideCount-1?a=0:0>a&&(a=this.slideCount-1),c(this.slider.$slides).css("zindex",1),c(this.slider.$slides).animate({opacity:0}
18,this.transitionTime,l),c(this.slider.$slides[a]).stop(!0).css("zindex",2).animate({opacity:1},this.transitionTime,p));d.initSlidePlusAndMinusOneIndex(a,d.slider.$slider)};b.Slideshow.prototype.next=
19function(a){this.transitionToSlide(this.currentSlideIndex+1,this.DirectionType.Forward,a)};b.Slideshow.prototype.previous=function(a){this.transitionToSlide(this.currentSlideIndex-1,this.DirectionType.Backward,a)};b.Slideshow.prototype.dotClick=function(a){a=this.mapDotClickUi(a);this.transitionToSlide(a.selectedSlideIndex,this.DirectionType.Omni);this.pausedSlideIndex=a.selectedSlideIndex;c(".liveRegionJS"+this.uniqueID).text("Item "+(a.selectedSlideIndex+1)+" of "+this.slider.$slides.length)};b.Slideshow.prototype.TransitionType=
20{Fade:0,Slide:1};b.Slideshow.prototype.DirectionType={Forward:0,Backward:1,Omni:2};b.Slideshow.prototype.SlideTransitionDirectionType={Inside:0,FirstToLast:1,LastToFirst:2};b.Slideshow.prototype.GetSlideDirectionTransitionType=function(a,b){return 1>=this.currentSlideIndex&&a===this.slideCount-2&&b===this.DirectionType.Backward?this.SlideTransitionDirectionType.FirstToLast:1===a&&this.currentSlideIndex>=this.slideCount-2&&b===this.DirectionType.Forward?this.SlideTransitionDirectionType.LastToFirst:
21this.SlideTransitionDirectionType.Inside};b.Slideshow.prototype.mapUi=function(a){var b={$slideshow:c(".cpSliderJS"+a).closest(".widget.slideShow"),$slider:c(".cpSliderJS"+a),$slides:c(".cpSliderJS"+a).find("li"),$pager:c(".pagerJS"+a),$pages:c(".pagerJS"+a).find("li"),transitionType:c(".cpSliderJS"+a).hasClass("slide")?this.TransitionType.Slide:this.TransitionType.Fade,NotifySlidesAdded:function(){b.$slides=c(".cpSliderJS"+a).find("li")},values:{}};b.values.transitionTiming=b.$slideshow.children("input.transitionTiming").val();
22b.values.slideTiming=b.$slideshow.children("input.slideTiming").val();return b};b.Slideshow.prototype.createSlider=function(a){var b={$slider:a.$slider,$slides:a.$slides,$pager:a.$pager,$pages:a.$pages,setSlide:function(b){a.$slider.hasClass("slide")&&a.$slider.css("left","-"+b.toString()+"00%")},getCurrentlyShownSlide:function(){return a.$slider.find(".showing")},createOverlapImagesForFirstAndLastSlides:function(){var c=a.$slider.find("li"),d=c.first().clone(),c=c.last().clone();d.attr("aria-hidden",
23"true");c.attr("aria-hidden","true");k(d);k(c);d.insertAfter(a.$slider.find("li").last());c.insertBefore(a.$slider.find("li").first());a.NotifySlidesAdded();b.$slides=a.$slides}};return b};b.Slideshow.prototype.mapDotClickUi=function(a){return{$dots:a.parents(".pager").children("li"),$selectedDot:a.parent("li"),$selectedImage:c("#"+a.attr("data-targetImageli")),$images:c("#"+a.attr("data-targetImageli")).parent("ol").children("li"),selectedSlideIndex:this.transitionType===this.TransitionType.Slide?
24parseInt(a.attr("data-dotNumber")):parseInt(a.attr("data-dotNumber")-1)}};b.Slideshow.prototype.bindUx=function(){var a=this;c(".prevJS"+this.uniqueID).unbind("click").click(function(){a.onPause();a.previous();a.pausedSlideIndex--;c("#ssPlay-btn-"+a.uniqueID).removeClass("isHidden");c("#ssPause-btn-"+a.uniqueID).addClass("isHidden");a.pausedSlideIndex=-1==a.pausedSlideIndex?a.slider.$slides.length-1:a.pausedSlideIndex;c(".liveRegionJS"+a.uniqueID).text("Item "+(a.pausedSlideIndex+1)+" of "+a.slider.$slides.length)});
25c(".dotJS"+this.uniqueID).unbind("click").click(function(){a.pause();a.dotClick(c(this))});c(".nextJS"+this.uniqueID).unbind("click").click(function(){a.onPause();a.next();a.pausedSlideIndex++;c("#ssPlay-btn-"+a.uniqueID).removeClass("isHidden");c("#ssPause-btn-"+a.uniqueID).addClass("isHidden");a.pausedSlideIndex=a.pausedSlideIndex==a.slider.$slides.length?0:a.pausedSlideIndex;c(".liveRegionJS"+a.uniqueID).text("Item "+(a.pausedSlideIndex+1)+" of "+a.slider.$slides.length)});c("#ssPause-btn-"+this.uniqueID).unbind("click").click(function(){a.onPause();
26c("#ssPlay-btn-"+a.uniqueID).removeClass("isHidden");c("#ssPause-btn-"+a.uniqueID).addClass("isHidden")});c("#ssPlay-btn-"+this.uniqueID).unbind("click").click(function(){a.onResume();c("#ssPause-btn-"+a.uniqueID).removeClass("isHidden");c("#ssPlay-btn-"+a.uniqueID).addClass("isHidden")});a.liveEditEnabled&&(a.slider.$slides.add("p.slideshowOptions.empty.placeholder").unbind("click").click(function(a){a=c(this).closest(".widget.slideShow");var b=ContentCollectionInstance.PageID,d=ContentCollectionInstance.ModuleID,
27g=a.data("widgetid"),l=a.find(".hdnSlideshowUniqueID").val();callbackfnSlideshowSave=null;parentID_Slideshow=attrOrProps(a,"id");ContentCollectionInstance.SlideshowWidgetID=g;$popUp_Slideshow=openCpModal({title:"Slideshow",className:"newCP adminWrap cpPopOver admin modalSlideshow",isFrontEnd:!1,useIframe:!1,draggable:!0,url:"/Slideshow/SlideshowConfiguration/"+l+("?pageID\x3d"
27+b+"\x26moduleID\x3d"+d)})}),c(".widget.slideShow").siblings("a.handle.options").each(function(){var a=c(this);a.data("cpPopover")&&
28a.data("cpPopover").destroy();var b=attrOrProps(a.parents('[data-cprole$\x3d"ontentContainer"]'),"id"),d=a.parents(".pageContent").filter(":first").data("containerid"),b="/ContentWidgets/SlideshowOptions?widgetID\x3d"+a.data("widgetid")+"\x26pageID\x3d"+ContentCollectionInstance.PageID+"\x26contentContainerExternalID\x3d"+b+"\x26moduleID\x3d"+ContentCollectionInstance.ModuleID+"\x26contentContainerID\x3d"+d;a.cpPopover({url:b,className:"options adminWrap",onClose:function(a,b){a.preventDefault();
29window.CommonPopoverInstance.hide(b);c(document.activeElement).change()}})}))}})(this,"undefined"==typeof $?window.parent.$:$);function SlideshowColorPicker(b,c,g){this.$spectrumInput=$(b);this.$colorInput=$(c);this.defaultColor=g;this.startingColor=this.$colorInput&&this.$colorInput.val()?this.$colorInput.val():this.defaultColor}
30SlideshowColorPicker.prototype.init=function(){var b=this;b.$spectrumInput.spectrum("destroy").spectrum({color:b.startingColor,showInput:!0,showPalette:!0,showPaletteOnly:!1,showSelectionPalette:!0,preferredFormat:"hex",change:function(c){c=c.toHexString();b.setValueSpectrum(c)}});b.setValueSpectrum(b.startingColor);b.$spectrumInput.parent().delegate(".clearValue","click",function(c){c&&(c.stopPropagation?c.stopPropagation():c.cancelBubble=!0);b.clearValueSpectrum()})};
31SlideshowColorPicker.prototype.setValueSpectrum=function(b){this.$colorInput.val(b);this.$spectrumInput.spectrum("set",b);this.$spectrumInput.siblings("a.clearValue").remove();b&&b!==this.defaultColor&&this.$spectrumInput.next().after('\x3ca class\x3d"clearValue" title\x3d"Clear Color" href\x3d"#" onclick\x3d"return false;" style\x3d""\x3eClear\x3c/a\x3e')};
32SlideshowColorPicker.prototype.clearValueSpectrum=function(){this.$spectrumInput.siblings("a.clearValue").fadeOut(300);this.$colorInput.val("");this.setValueSpectrum(this.defaultColor)};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.