PageSourceSearch

https://jaaar.com/betakiosk/dist/assets/js/pages/kiosk-1601103097.js

js jaaar.com collected 2026-10-02 12:11:05 UTC 6,139 bytes, 1 lines download raw bytes

1"use strict";function _defineProperty(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var Kiosk=function(){var t,a=$(window),n=$("#cover"),e=$(".cards"),o=$(".issue"),s=$(".issues"),i=$(".category"),r=$("#back_to_top"),l="jaaar_user_layout",u=$("#sticky_footer"),c=getCookie(l)||"rows",d=$(".advertisements.top"),f=$(".advertisements.bottom"),g=new MobileDetect(window.navigator.userAgent),v=null!==g.tablet()||null!==g.mobile(),h={layout:{values:["table","column","rows"],default:c},category:{values:[],default:""},issue:{values:[],default:""}},y={},m=!1,b=0,p=null,C=s,k=a.innerWidth()<768,w=function(){var e=0;a.on("resize",function(t){clearTimeout(e),k=a.innerWidth()<768,e=setTimeout(T,250)})},T=function(){k&&"rows"!==c&&$('button[data-layout="rows"').trigger("click")},I=function(a,t){y[a]=t;var e=Object.keys(y).reduce(function(t,e){return null!==a&&t.push(y[e]),t},[]).join("/");window.location.hash=e},_=function(t){c=t;var e=$('button[data-layout="'.concat(c,'"]'));"rows"===c&&L(),0<e.length&&!e.hasClass("disabled")&&q(e)},O=function(){var o=window.location.hash.replace(/[!,#]/g,"");$.each($(".category-dropdown .category"),function(t,e){var a=$(e).data("category-slug");h.category.values.push(a),0===t&&(h.category.default=a)}),o.startsWith("/")&&(o=o.substring(1)),o=o.replace("//","/").split("/"),$.each(["layout","category","issue"],function(t,e){if(h.hasOwnProperty(e)){var a=h[e].values;"issue"===e&&o[t]?y[e]=o[t]:o[t]&&-1<a.indexOf(o[t])?y[e]=o[t]:y[e]=h[e].default}else o[t]&&(y[e]=o[t])}),P()},L=function(){var t=y.issue,e=$('.issues .issue[data-slug="'.concat(t,'"]'));M(),U(),0<e.length&&e.hasClass("visible")&&(p=e,$("html, body").scrollTop(e.offset().top))},P=function(){for(var t in y){var e=t.charAt(0).toUpperCase()+t.slice(1);Kiosk["setDefault".concat(e)](y[t])}if(!y.hasOwnProperty("layout")){var a=getCookie(l);c=0<a.length?a:"rows",_(c)}},A=function(){$("#loader").removeClass("active")},D=function(){$(".category-dropdown").dropdown({onChange:K,action:"hide"})},z=function(){i.click(function(t){var e=$(t.currentTarget);t.preventDefault(),K("","",e)})},K=function(t,e,a){var o=".category-".concat(a.data("category-id"));return a.hasClass("users-only")&&$("body").hasClass("guest")?$("#guest_modal").modal("show"):(C=$(".issue".concat(o)),p=C.eq(0),$(".issue").removeClass("visible"),C.addClass("visible"),i.removeClass("active"),a.addClass("active"),I("category",a.data("category-slug")),"column"!==c?U():(0<p.length?p.trigger("click"):n.empty(),void U()))},j=function(){$("#toggle_grid button").click(function(t){var e=$(t.currentTarget);q(e),c=e.data("layout"),I("layout",c),setCookie(l,c)})},q=function(t){e.fadeOut(200,function(){F(),$("#kiosk").removeAttr("class").addClass("".concat(c," group")),t.addClass("disabled").siblings().removeClass("disabled"),Kiosk["".concat(c,"Layout")](),M()}),setTimeout(x,220)},x=function(){e.fadeIn(function(){U(),null!==p&&0<p.length&&"rows"===c&&$("html, body").scrollTop(p.offset().top)})},B=function(){$(".card").visibility({onOnScreen:function(t){renderActionButton($(this),"grey",!v)}}).on("mouseenter touchstart",function(t){renderActionButton($(this),"grey",!v),U()})},W=function(){o.removeClass("zoomable"),u.removeClass("auto-height"),d.addClass("hidden"),f.removeClass("hidden"),"table"===c&&0<p.length&&p.addClass("current")},M=function(){$.each(e.find(".image"),function(t,e){var a=$(e),o=a.find("img"),n=o.attr("src");"rows"===c?n!==o.data("full-image")?(o.data("src",o.data("full-image")),a.addClass("unloaded")):a.removeClass("unloaded"):n!==o.data("mobile-image")&&n!==o.data("full-image")?o.data("src",o.data("mobile-image")):a.removeClass("unloaded")})},R=function(){o.click(function(t){p=$(t.currentTarget);var e=$(p.prop("outerHTML"));p.hasClass("zoomable")||(I("issue",p.data("slug")),Kiosk["handleClickOnIssuesIn".concat(jsUcfirst(c),"Layout")](e))})},U=function(){var t="rows"===c?window:".cards";lazyLoadImages($(".visible .unloaded img:visible"),t)},H=function(){$(".navigations .nav").click(function(t){var e=$(t.currentTarget).data("action");Kiosk[e]()})},N=function(){if(null!==p){var t=p.next(":visible");0===t.length&&(C.length<=1&&m&&F(),t=C.eq(0)),t.trigger("click")}},S=function(){if(null!==p){var t=p.prev(":visible");0===t.length&&(t=C.eq(C.length-1)),t.trigger("click")}}
1,E=function(){$("#controls .button").click(function(t){var e=$(t.currentTarget),a=e.data("action");e.hide().siblings().show(),"play"===a?(m=!0,b=setInterval(N,1e4)):(m=!1,clearInterval(b))})},F=function(){$('#controls button[data-action="pause"]').trigger("click")},G=function(){$("html, body").stop().animate({scrollTop:0},"300")},J=function(){r.click(G)},Q=function(){a.scroll(function(){if(a.scrollTop()<300)return r.fadeOut();r.fadeIn()})};return _defineProperty(t={init:function(){if($("#digital_kiosk").removeClass("hidden"),"scrollRestoration"in history&&(history.scrollRestoration="manual"),initDatepicker(),Q(),B(),z(),D(),J(),v)return A(),U();E(),H(),w(),R(),j(),O(),A()},rowsLayout:function(){o.addClass("zoomable"),u.addClass("auto-height"),d.removeClass("hidden"),f.addClass("hidden")},tableLayout:W,columnLayout:function(){W(),null!==p&&0!==p.length||(p=$(".issue.visible").eq(0)),p.trigger("click")},goToNextIssue:N,setDefaultIssue:function(t){var e=$('.issues .issue[data-slug="'.concat(t,'"]'));0<e.length&&e.hasClass("visible")&&(p=e)},setDefaultLayout:_,goToPreviousIssue:S},"goToPreviousIssue",S),_defineProperty(t,"setDefaultCategory",function(t){var e=$('a.category[data-category-slug="'.concat(t,'"]'));0<e.length&&K("","",e)}),_defineProperty(t,"handleClickOnIssuesInTableLayout",function(t){$('[data-layout="column"]').trigger("click")}),_defineProperty(t,"handleClickOnIssuesInColumnLayout",function(t){var e=n.find(".issue"),a=t.find("img");a.removeAttr("src"),a.attr("data-src",a.data("full-image")),a.attr("src",a.data("full-image")),p.addClass("current").siblings().removeClass("current"),e&&e.data("slug")===p.data("slug")||(n.empty(),t.addClass("zoomable"),t.appendTo(n),renderActionButton(t,"grey",!v),n.find(".dropdown.general").dropdown())}),t}();Kiosk.init();

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.