PageSourceSearch

https://www.ocl.ch/wp-content/themes/tm19-ocl/build/tm19-scripts.min.js?ver=1790262094

js ocl.ch collected 2026-09-24 23:08:15 UTC 4,607 bytes, 2 lines download raw bytes

1jQuery(document).ready(function(s){function e(){s('iframe[data-cookieblock-src], iframe[data-cookieconsent="marketing"]').each(function(){var e=s(this),o=e.closest(".wp-block-embed__wrapper, .embed-container, .videowrapper");0===(o=0===o.length?e.parent():o).find(".cookieconsent-placeholder").length&&(e=s('<div class="cookieconsent-placeholder"><p>Pour visionner cette vidéo, veuillez accepter les cookies marketing.</p><a href="javascript:Cookiebot.renew()">Modifier mes préférences de cookies</a></div>'),o.append(e)),a()})}function a(){s('iframe[data-cookieblock-src], iframe[data-cookieconsent="marketing"]').each(function(){var e=s(this),o=e.closest(".wp-block-embed__wrapper, .embed-container, .videowrapper"),o=(o=0===o.length?e.parent():o).find(".cookieconsent-placeholder");"none"!==e.css("display")&&e.attr("src")?o.hide():o.show()})}window.CookiebotCallback_OnAccept=function(){setTimeout(a,100)},window.CookiebotCallback_OnLoad=function(){a()},e(),s(document).on("facetwp-loaded",e);new SmoothScroll('a[href*="#"]',{header:"header.header"});s(".slider--simple").slick({arrows:!1,dots:!0,fade:!1,autoplay:3500,adaptiveHeight:!1,slidesToShow:3,slidesToScroll:1,centerMode:!0,variableWidth:!0}),s(".slider--partners").slick({arrows:!1,dots:!1,fade:!1,autoplay:3500,adaptiveHeight:!1,slidesToShow:6,slidesToScroll:1});var o=s(".masonry-grid--simple"),i=(o.imagesLoaded(function(){o.isotope({itemSelector:".masonry-item",layoutMode:"masonry",percentPosition:!1,masonry:{columnWidth:".masonry-item",horizontalOrder:!0}})}),s(".masonry-grid"));function r(){var e=s(".masonry-grid"),o=(e.data("isotope")&&e.isotope("destroy"),e.imagesLoaded(function(){e.isotope({itemSelector:".masonry-item",layoutMode:"masonry",percentPosition:!0,masonry:{columnWidth:".grid-sizer"}})}),s(".masonry-grid--simple"));o.masonry("destroy"),o.imagesLoaded(function(){o.masonry({itemSelector:".masonry-item",layoutMode:"masonry",percentPosition:!1,masonry:{columnWidth:".masonry-item"}})}),s(".slider--arrow").slick({arrows:!0,fade:!0,prevArrow:'<div class="slick-arrows slick-arrows--prev"></div>',nextArrow:'<div class="slick-arrows slick-arrows--next"></div>',dots:!1,autoplay:3500,adaptiveHeight:!1})}function c(){var e=window.location.search;let o=new URLSearchParams(e).get("_pedagogics_ressource");o&&(s('.ressources-filters .facetwp-checkbox[data-type="'+o+'"]').addClass("checked"),s(".ressources-grid>.cell").each(function(){s(this).data("type")===o?s(this).show():s(this).hide()}))}i.imagesLoaded(function(){i.isotope({itemSelector:".masonry-item",layoutMode:"masonry",percentPosition:!0,masonry:{columnWidth:".grid-sizer",horizontalOrder:!0}})}),s(document).on("keyup",function(e){27==e.keyCode&&s("#off-canvas-search").foundation("close")}),s(".slider--arrow").slick({arrows:!0,fade:!0,prevArrow:'<div class="slick-arrows slick-arrows--prev"></div>',nextArrow:'<div class="slick-arrows slick-arrows--next"></div>',dots:!1,autoplay:3500,adaptiveHeight:!1}),s(document).on("facetwp-loaded",function(){var e,o;setTimeout(r,50),o=window.location.search,((o=new URLSearchParams(o).get("_months"))?s('.facetwp-radio[data-value="'+o+'"]'):(e=["month",(e=(o=new Date).getMonth()+1)<10?"0"+e:e,o.getFullYear()].join("_"),s('.facetwp-radio[data-value="'+e+'"]'))).addClass("checked"),c()}),s(document).on("open.zf.reveal",function(){s("html").css("top","0")}),s("li.blocks-gallery-item").each(function(){s(this).find("a").attr("target","_blank")}),c(),s(".ressources-filters .facetwp-checkbox").on("click",function(){if(s(this).hasClass("checked"))s(this).removeClass("checked"),s(".ressources-grid>.cell").each(function(){s(this).show()});else{s(".facetwp-checkbox").removeClass("checked"),s(this).toggleClass("checked");let o=s(this).data("type");s(".ressources-grid>.cell").each(function(){var e=s(this).data("type");console.log(e,o),e===o?s(this).show():s(this).hide()})}}),s(document).on("click",'a[href*=".ics"]',function(){var o,a;"undefined"!=typeof oclIcsTracking&&(o={action:"ocl_track_ics_click",nonce:oclIcsTracking.nonce,page_name:oclIcsTracking.pageName,page_id:oclIcsTracking.pageId,ics_url:this.href}
1,navigator.sendBeacon?(a=new FormData,Object.keys(o).forEach(function(e){a.append(e,o[e])}),navigator.sendBeacon(oclIcsTracking.ajaxUrl,a)):s.post(oclIcsTracking.ajaxUrl,o))})}),(e=>{e(window).bind("scroll",function(){100<e(window).scrollTop()?(e(".header--sticky").addClass("stuck"),e(".subscribe-link").addClass("subscribe-link--shown")):(e(".header--sticky").removeClass("stuck"),e(".subscribe-link").removeClass("subscribe-link--shown"))})})(jQuery);
2//# sourceMappingURL=tm19-scripts.min.js.map

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.