PageSourceSearch

https://noticias.autocosmos.com.mx/js/pages/noticia.min.js?v=ZYn1hwA2u2nAnuJT2YRiB1X6y6IdANKegMditLUyXNA

js autocosmos.com.mx collected 2026-09-24 19:01:29 UTC 10,242 bytes, 1 lines download raw bytes

1(n=>{function r(e,t){var i=this;this.$subject=n(e),this.options=n.extend({},r.DEFAULTS,t),this.$target=n(this.options.targetSelector),this.context={sequence:[],currentIdx:-1,count:0,set:function(e){e&&(this.sequence=e,this.count=e.length,this.currentIdx=-1)},start:function(){-1===this.currentIdx&&(this.currentIdx=0)}},this.swipeAction={x:null,y:null,reset:function(){this.x=this.y=null},set:function(e,t){this.x=e,this.y=t},isEmpty:function(){return!this.x||!this.y}},this.swipeStart=function(e){e=e.touches[0];i.swipeAction.set(e.clientX,e.clientY)},this.swipeEnd=function(e){var t,s=i.swipeAction;s.x&&(e=e.touches[0],t=s.x-e.clientX,e=s.y-e.clientY,Math.abs(t)>Math.abs(e)&&(0<t?i.moveRelative(-1):i.moveRelative(1)),s.reset())},this.getSequence=function(){return i.$target[0]?i.$target[0].querySelectorAll('[data-gallery-slider="slide"]'):[]},this.preloadPhotos=function(){n("source[data-gallery-slider-src]",i.$target).each(function(){var e=n(this);e.attr("srcset",e.attr("data-gallery-slider-src"))}),n('[data-gallery-slider-slide="img"]',i.$target).each(function(){i.setImgSource(n(this))})},this.setImgSource=function(e){var t=e.prop("src");t&&0<t.length||((t=e.data()).gallerySliderSrc&&e.prop("src",t.gallerySliderSrc),!i.isMobile()&&t.gallerySliderDesk&&e.prop("src",t.gallerySliderDesk),i.isMobile()&&t.gallerySliderMobile&&e.prop("src",t.gallerySliderMobile))},this.slideKeyPress=function(e){37!==e.keyCode&&38!==e.keyCode||i.moveRelative(-1),39!==e.keyCode&&40!==e.keyCode||i.moveRelative(1),27===e.keyCode&&i.hideFullScreen()},this.showFullScreen=function(){n("html").addClass("m-overflow-hidden"),i.$target.attr("aria-hidden","false"),0===i.options.showFullScreenClass.length?i.$target.css("display","block"):i.$target.addClass(i.options.showFullScreenClass),i.options.hideFullScreenClass&&0<i.options.hideFullScreenClass.length&&i.$target.removeClass(i.options.hideFullScreenClass),n(document).on("keydown",i.slideKeyPress)},this.hideFullScreen=function(){n("html").removeClass("m-overflow-hidden"),i.$target.attr("aria-hidden","true"),0===i.options.hideFullScreenClass.length?i.$target.css("display","none"):i.$target.addClass(i.options.hideFullScreenClass),i.options.showFullScreenClass&&0<i.options.showFullScreenClass.length&&i.$target.removeClass(i.options.showFullScreenClass),n(document).off("keydown",i.slideKeyPress)},this.showSlide=function(e){e&&(e=n(e),0===i.options.showSlideClass.length?e.css("display","block"):e.addClass(i.options.showSlideClass),i.options.hideSlideClass)&&0<i.options.hideSlideClass.length&&e.removeClass(i.options.hideSlideClass)},this.hideSlide=function(e){e&&(e=n(e),0===i.options.hideSlideClass.length?e.css("display","none"):e.addClass(i.options.hideSlideClass),i.options.showSlideClass)&&0<i.options.showSlideClass.length&&e.removeClass(i.options.showSlideClass)}}function e(o){return this.each(function(){var e=n(this),t=e.data("autocosmos.photosSlider");if(!t){var s=n.extend({},(i={},(s=(s=e).data()).gallerySliderTarget&&(i.targetSelector=s.gallerySliderTarget),s.gallerySliderShowFullScreenClass&&(i.showFullScreenClass=s.gallerySliderShowFullScreenClass),s.gallerySliderHideFullScreenClass&&(i.hideFullScreenClass=s.gallerySliderHideFullScreenClass),s.gallerySliderShowSlideClass&&(i.showSlideClass=s.gallerySliderShowSlideClass),s.gallerySliderHideSlideClass&&(i.hideSlideClass=s.gallerySliderHideSlideClass),i),"object"==typeof o&&o),i=s;if(!(i=i.targetSelector)||0===i.length)throw new Error("Error Target selector 'data-gallery-slider-target' no especificado.");var l=n(i);l[0]?n('[data-gallery-slider="slides-background"]',l)[0]||console.warn("Warning en el target '"+i+" no encuentro un una data-gallery-slider='slides-background'"):console.warn("Warning no existe el target '"+i+"' para 'data-gallery-slider-target'."),"undefined"!=typeof googletag&&null!==googletag||console.warn("'googletag' (DFP) not loaded."),e.data("autocosmos.photosSlider",t=new r(this,s)),t.bind()}})}r.DEFAULTS={targetSelector:"",closeSelector:'[data-gallery-slider="close"]',goLeftSelector:'[data-gallery-slider="goLeft"]',goRightSelector:'[data-gallery-slider="goRight"]',fixedAdvSelector:'[data-gallery-slider="adv-fixed"]',showFullScreenClass:"",hideFullScreenClass:"",showSlideClass:"",hideSlideClass:""},r.prototype.bind=function(){var t=this;n(t.options.closeSelector,t.$target).on("click",function(e){e.preventDefault(),t.hideFullScreen()}),n(t.options.goLeftSelector).on("click",function(){t.moveRelative(-1)}),n(t.options.goRightSelector).on("click",function(){t.moveRelative(1)}),document.addEventListener("touchstart",t.swipeStart,!1),document.addEventListener("touchmove",t.swipeEnd,!1),t.$subject.on("click",function(e){e.preventDefault(),t.swipeAction.reset(),t.context.start(),0===t.context.sequence.length&&t.context.set(t.getSequence()),t.moveAbsolute(t.context.currentIdx),t.onShow(),t.showFullScreen(),t.preloadPhotos()}),n('[data-gallery-slider="slides-background"]',t.$target).on("click",function(e){e.target===this&&t.hideFullScreen()})},r.prototype.moveRelative=function(e){e+=this.context.currentIdx;e<0&&(e=this.context.count-1),this.moveAbsolute(e)},r.prototype.moveAbsolute=function(e){(e<0||e>=this.context.count)&&(e=0),this.context.currentIdx=e;e=this.context.sequence[e];
1if(e){"img"===e.dataset.gallerySliderSlide&&this.onImg(e),"adv"===e.dataset.gallerySliderSlide&&this.onAdv(e);for(var t=0;t<this.context.sequence.length;t++)this.hideSlide(this.context.sequence[t]);this.showSlide(e)}},r.prototype.onShow=function(){var e=n(this.options.fixedAdvSelector,this.$target)[0];this.onAdv(e)},r.prototype.onAdv=function(e){e&&!n.trim(e.innerHTML)&&e&&e.dataset&&e.dataset.gallerySliderAdvid&&"undefined"!=typeof googletag&&googletag.display&&(e.id=e.dataset.gallerySliderAdvid,googletag.display(e.id))},r.prototype.onImg=function(e){e&&((e=(e=n(e)).is("img")?e:n("img",e))&&e[0]?this.setImgSource(e):console.warn("No 'img' element found."))},r.prototype.isMobile=function(){return n(window).width()<=768},r.prototype.setSequence=function(e){if(Array.isArray,!Array.isArray(e))throw new Error("Expected array of photos sequence.");this.context.set(e)};var t=n.fn.photosSlider;n.fn.photosSlider=e,n.fn.photosSlider.Constructor=r,n.fn.photosSlider.noConflict=function(){return n.fn.photosSlider=t,this},e.call(n('[data-gallery-slider="trigger"]'),null)})(window.jQuery),(o=>{function n(e,t){var i=this;this.$subject=o(e),this.options=o.extend({},n.DEFAULTS,t),this.$placeholders=o(this.options.placeholderSelector,this.$subject);for(var s=0;s<this.$placeholders.length;s++)o(this.$placeholders[s]).data("contentSliderPosition",s);this.context={sequence:[],currentIdx:-1,count:0,set:function(e){e&&(this.sequence=e,this.count=e.length,this.currentIdx=-1)},start:function(){-1===this.currentIdx&&(this.currentIdx=0)}},this.swipeAction={x:null,y:null,reset:function(){this.x=this.y=null},set:function(e,t){this.x=e,this.y=t},isEmpty:function(){return!this.x||!this.y}},this.swipeStart=function(e){e=e.touches[0];i.swipeAction.set(e.clientX,e.clientY)},this.swipeEnd=function(e){var t,s=i.swipeAction;s.x&&(e=e.touches[0],t=s.x-e.clientX,e=s.y-e.clientY,Math.abs(t)>Math.abs(e)&&(0<t?i.moveRelative(-1):i.moveRelative(1)),s.reset())},this.getSequence=function(){return i.$subject[0]?i.$subject[0].querySelectorAll('[data-content-slider="slide"]'):[]},this.slideKeyPress=function(e){37!==e.keyCode&&38!==e.keyCode||i.moveRelative(-1),39!==e.keyCode&&40!==e.keyCode||i.moveRelative(1),27===e.keyCode&&i.hideFullScreen()},this.showSlide=function(e){e&&(e=o(e),0===i.options.visibleSlideClass.length?e.css("display","block"):e.addClass(i.options.visibleSlideClass),i.options.invisibleSlideClass)&&0<i.options.invisibleSlideClass.length&&e.removeClass(i.options.invisibleSlideClass)},this.hideSlide=function(e){e&&(e=o(e),0===i.options.invisibleSlideClass.length?e.css("display","none"):e.addClass(i.options.invisibleSlideClass),i.options.visibleSlideClass)&&0<i.options.visibleSlideClass.length&&e.removeClass(i.options.visibleSlideClass)}}function e(l){return this.each(function(){var e,t,s=o(this),i=s.data("autocosmos.contentSlider");i||(e=o.extend({},(t={},(e=(e=s).data()).contentSliderPlaceholderActiveClass&&(t.placeholderActiveSlideClass=e.contentSliderPlaceholderActiveClass),e.contentSliderVisibleSlideClass&&(t.visibleSlideClass=e.contentSliderVisibleSlideClass),e.contentSliderInvisibleSlideClass&&(t.invisibleSlideClass=e.contentSliderInvisibleSlideClass),t),"object"==typeof l&&l),s.data("autocosmos.contentSlider",i=new n(this,e)),i.bind())})}n.DEFAULTS={placeholderActiveSlideClass:"cs-active",placeholderSelector:'[data-content-slider="placeholder"]',visibleSlideClass:"",invisibleSlideClass:"",goLeftSelector:'[data-content-slider="goLeft"]',goRightSelector:'[data-content-slider="goRight"]'},n.prototype.bind=function(){var e=this;o(e.options.goLeftSelector,e.$subject).on("click",function(){e.moveRelative(-1)}),o(e.options.goRightSelector,e.$subject).on("click",function(){e.moveRelative(1)}),e.$placeholders.on("click",function(){e.moveAbsolute(o(this).data("contentSliderPosition"))}),document.addEventListener("touchstart",this.swipeStart,!1),document.addEventListener("touchmove",this.swipeEnd,!1),this.swipeAction.reset(),this.context.start(),0===this.context.sequence.length&&this.context.set(this.getSequence()),this.moveAbsolute(this.context.currentIdx)},n.prototype.moveRelative=function(e){e+=this.context.currentIdx;e<0&&(e=this.context.count-1),this.moveAbsolute(e)},n.prototype.moveAbsolute=function(e){(e<0||e>=this.context.count)&&(e=0),this.context.currentIdx=e;var t=this.context.sequence[e];
1if(t){for(var s=0;s<this.context.sequence.length;s++)this.hideSlide(this.context.sequence[s]);this.showSlide(t),this.$placeholders.removeClass(this.options.placeholderActiveSlideClass);t=o(this.$placeholders[e]);t&&0<t.length&&t.addClass(this.options.placeholderActiveSlideClass)}},n.prototype.setSequence=function(e){if(Array.isArray,!Array.isArray(e))throw new Error("Expected array of content sequence.");this.context.set(e)};var t=o.fn.contentSlider;o.fn.contentSlider=e,o.fn.contentSlider.Constructor=n,o.fn.contentSlider.noConflict=function(){return o.fn.contentSlider=t,this},e.call(o('[data-role="content-slider"]'),null)})(window.jQuery);

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.