PageSourceSearch

https://www.cegeptr.qc.ca/wp-content/themes/acolyte-2_1_5/assets/js/min/acolyte.min.js?v=739582

js cegeptr.qc.ca collected 2026-10-02 06:41:52 UTC 14,228 bytes, 1 lines download raw bytes

1if($("#is-mobile").is(":visible"))var isMobile=!0;if($("#is-tablet").is(":visible"))var isTablet=!0;if($("#is-desktop").is(":visible"))var isDesktop=!0;function locate_using_coords(e,t,o){var a={lat:e,lng:t};o.setCenter(a);new google.maps.Marker({map:o,position:a})}function locate_using_address(e,t,o,a,s,i){(new google.maps.Geocoder).geocode({address:e},(function(n,r){if(r===google.maps.GeocoderStatus.OK){if(t.setCenter(n[0].geometry.location),1==i)new google.maps.Marker({map:t,position:n[0].geometry.location})}else console.log(s.attr("class")+" -> Geocoding unsuccessful ("+e+"); "+r),""!=o&&""!=a?locate_using_coords(o,a,t):s.hide()}))}function initMap(){var e=0,t=[{featureType:"water",elementType:"geometry",stylers:[{color:"#e9e9e9"},{lightness:17}]},{featureType:"landscape",elementType:"geometry",stylers:[{color:"#f5f5f5"},{lightness:20}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#ffffff"},{lightness:17}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#ffffff"},{lightness:29},{weight:.2}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#ffffff"},{lightness:18}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#ffffff"},{lightness:16}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#f5f5f5"},{lightness:21}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#dedede"},{lightness:21}]},{elementType:"labels.text.stroke",stylers:[{visibility:"on"},{color:"#ffffff"},{lightness:16}]},{elementType:"labels.text.fill",stylers:[{saturation:36},{color:"#333333"},{lightness:40}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#f2f2f2"},{lightness:19}]},{featureType:"administrative",elementType:"geometry.fill",stylers:[{color:"#fefefe"},{lightness:20}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#fefefe"},{lightness:17},{weight:1.2}]}];$(".js-map").length&&$(".js-map").each((function(){var o=$(this).data("zoom");null!=o&&""!=o||(o=10);var a=$(this).data("colored");a=null==a||""==a||0==a?0:t;var s=$(this).data("marker");null!=s&&""!=s||(s=0);var i=$(this).data("ui");i=null==i||""==i||0==i;var n=new google.maps.Map($(".js-map")[e],{zoom:o,center:{lat:0,lng:0},scrollwheel:!1,styles:a,disableDefaultUI:i}),r=$(this).data("addr"),l="",c="";""!=$(this).data("lat")&&$(this).data("lng")&&(l=$(this).data("lat"),c=$(this).data("lng")),""!=r?locate_using_address(r,n,l,c,$(this),s):""!=l&&""!=c?locate_using_coords(l,c,n):(console.log($(this).attr("class")+" -> "+$(this).index()+" -> No data involved."),$(this).hide()),e++}))}(document.documentMode||/Edge/.test(navigator.userAgent))&&document.querySelector("html").classList.add("is-ie"),$(".match-height").each((function(){var e=$
1(this).parents(".row").last().height();$(this).height(e)}));var currScr,accordion=$(".accordion"),accordion_length=accordion.length;if(accordion_length>0){var elem=$(".element"),title=$(".title"),content=$(".content");elem.click((function(){$(this).toggleClass("active"),$(this).find(content).slideToggle(200)}))}function scrollContent(){$(document).height(),$(window).height();newScroll=$(window).scrollTop(),currentScroll=newScroll,$(".to-load").each((function(){var e=$(this);$(this).parents(".full-menu").length?(e.removeClass("no-anim"),e.addClass("loaded")):(console.log($(this).offset().top,$(window).height()),newScroll+.9*$(window).height()>$(this).offset().top?(e.removeClass("no-anim"),e.addClass("loaded")):newScroll+$(window).height()<$(this).offset().top&&(e.addClass("no-anim"),e.removeClass("loaded")))}))}function fullMenuSwitch(){$(".mobile-actions [data-toggle='menu']").hasClass("icon-cross-r")?($(".full-menu .loaded").removeClass("loaded"),$("body").removeClass("menu-opened"),$("menu form input").trigger("blur"),$("html, body").animate({scrollTop:currScr},0),$(".full-menu").removeClass("is-open"),setTimeout((function(){$(".full-menu").animate({scrollTop:0},0),$("menu").toggleClass("open"),$(".mobile-actions [data-toggle='menu']").toggleClass("icon-menu-r").toggleClass("icon-cross-r")}),300)):(currScr=currentScroll,$("menu").toggleClass("open"),$(".mobile-actions [data-toggle='menu']").toggleClass("icon-menu-r").toggleClass("icon-cross-r"),$(".full-menu .loaded").removeClass("loaded").addClass("no-anim"),$(".full-menu").addClass("is-open"),setTimeout((()=>{$("body").addClass("menu-opened"),console.log("Menu opened."),scrollContent(),$("menu form input").trigger("focus")}),200))}$("[data-toggle]").click((function(){$(this).toggleClass("is-active");var e=$(this).data("toggle");$("[data-elem='"+e+"']").slideToggle().toggleClass("is-hidden")})),window.innerWidth<1200&&($("[data-toggle^='link-block']").removeClass("is-active"),$("[data-elem^='link-block']").slideUp().removeClass("is-active")),$(window).load((function(){initSliders(),initNewsSection()})).scroll((function(){scrollContent()})),setTimeout((function(){scrollContent()}),1e3),$(".mobile-actions [data-toggle='menu'], menu li.search").click((function(){fullMenuSwitch()})),$("menu nav .mobile-actions [data-toggle='menu'], menu li.search").click((function(e){$(this).parents("menu").toggleClass("active"),e.preventDefault()})),$("a:not([target='_blank']):not([href='#'])").click((function(e){var t=$(this).attr("href");$(".full-menu").is(":visible")&&(e.preventDefault(),$(".full-menu .loaded").removeClass("loaded"),setTimeout((function(){window.location.href=t}),400))}));var vidwrap=$(".video-banner");if(isDesktop){function getYoutubeID(e){var t=e.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);if(t&&11==t[2].length)return t[2]}var player,videos=[];if(!window.YT)var YT={loading:0,loaded:0};if(!window.YTConfig)var YTConfig={host:"https://www.youtube.com"};function onYouTubeIframeAPIReady(){$(".video-container").length&&(player=new YT.Player($(".video-container").find(".player").get(0),{videoId:getYoutubeID($(".video-container").data("vid")),playerVars:{autoplay:0,controls:0,showinfo:0,rel:0},events:{onReady:onPlayerReady,onStateChange:onPlayerStateChange}}))}function onPlayerReady(e){console.log("VIDEO READY"),setTimeout((function(){vidwrap.removeClass("loading")}),700);var t=e.target;t.mute(),t.playVideo(),$(".fireVideo, .firstPlay").click((function(e){vidwrap.addClass("theater"),t.unMute(),t.seekTo(.001,!0),t.playVideo(),e.preventDefault()})),$("body").hasClass("home")&&setTimeout((function(){vidwrap.addClass("theater"),t.seekTo(.001,!0),t.playVideo()})),$(".vidAction").click((function(e){$(this).hasClass("stop")&&(t.mute(),vidwrap.hasClass("paused")&&vidwrap.removeClass("paused"),vidwrap.removeClass("theater"),t.seekTo(0,!0),t.pauseVideo()),$(this).hasClass("pause")&&(t.pauseVideo(),vidwrap.addClass("paused")),$(this).hasClass("play")&&(vidwrap.hasClass("paused")&&vidwrap.removeClass("paused"),t.playVideo()),e.preventDefault()}))}function onPlayerStateChange(e){var t=e.target;if(0===e.data)$("body").hasClass("home")?vidwrap.removeClass("theater"):(vidwrap.removeClass("theater"),t.seekTo(0,!0),t.pauseVideo())}YT.loading||(YT.loading=1,function(){var e=[];YT.ready=function(t){YT.loaded?t():e.push(t)},window.onYTReady=function(){YT.loaded=1;for(var t=0;t<e.length;t++)try{e[t]()}catch(e){}},YT.setConfig=function(e){for(var t in e)e.hasOwnProperty(t)&&(YTConfig[t]=e[t])};var t=document.createElement("script");t.type="text/javascript",t.id="www-widgetapi-script",t.src="https://s.ytimg.com/yts/jsbin/www-widgetapi-vflO1YZr2/www-widgetapi.js",t.async=!0;var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(t,o)}())}var currentScroll,progChoiceWrap=$(".prog-choice .form-element");
1if(progChoiceWrap.find("p").click((function(){$(this).parents(".form-element").addClass("open"),$(".choices").height($(".choices").find("ul").height())})),progChoiceWrap.find(".fermer").click((function(){$(this).parents(".form-element").removeClass("open"),$(".choices").innerHeight(0)})),$(".to-send").find(".btn").click((function(e){console.log("0000"),$(this).parents(".to-send").next("form").slideToggle(200),e.preventDefault()})),$("form.send-doc").length&&$("form.send-doc").submit((function(e){var t=$(this),o=t.next(),a=t.find("button[type=submit]");a.attr("disabled","disabled").html("Envoi en cours"),o.addClass("hidden"),e.preventDefault();var s=t.serializeArray();return s.push({name:"action",value:"envoi_pdf_programme"}),$.post(ajaxurl,s,(function(e){var s="";e.error?(s="error",a.removeAttr("disabled").html("Envoyer le document")):(s="valid",t.addClass("hidden")),o.removeClass("hidden"),t.next().find("."+s).html(e.message)})),!1})),isDesktop&&$(".to-fix").length){var parentWidth=$("#featureList").width();$(".to-fix").width(parentWidth),$(".to-fix").css("left",$("#featureList").offset().left),$(".to-fix").affix({offset:{top:$(".to-fix").offset().top-200,bottom:$("#footer").outerHeight(!0)+$("#featuredProgramsContainer").outerHeight(!0)}})}$(".wysiwyg-content .readmore").click((function(e){$(this).parents(".wysiwyg-content").find(".longContent").is(":hidden")?($(this).text("Lire moins"),$(this).next(".longContent").slideDown()):($(this).text("Lire plus"),$(this).next(".longContent").slideUp()),e.preventDefault()}));const headerSearchToggler=document.querySelector("#header-search-toggler"),headerSearchbarEl=document.querySelector("menu#header-menu .searchbar"),headerSearchbarContainerEl=headerSearchbarEl.querySelector("div.container");function documentClickHandler(e){!e.srcElement.closest(".searchbar")&&headerSearchbarEl.classList.contains("is-visible")&&hideSearchbar()}function searchClickHandler(e){e.stopPropagation(),headerSearchbarEl.classList.contains("is-visible")?(document.body.removeEventListener("click",documentClickHandler),hideSearchbar()):(document.body.addEventListener("click",documentClickHandler),headerSearchbarEl.classList.add("is-visible"),headerSearchbarEl.style.height=`${headerSearchbarContainerEl.offsetHeight}px`,headerSearchbarEl.querySelector("#header-search").focus())}function hideSearchbar(){headerSearchbarEl.style.transitionDuration="0s",headerSearchbarEl.style.height=`${headerSearchbarContainerEl.offsetHeight}px`,headerSearchbarEl.classList.remove("is-visible"),setTimeout((()=>{headerSearchbarEl.style.transitionDuration="",headerSearchbarEl.style.height="0px"}),10)}function clearSearchbarHeight(){headerSearchbarEl.offsetHeight>0&&(headerSearchbarEl.style.height="")}function headerSpacing(){const e=document.getElementById("header-menu"),t=document.getElementById("main-wrap");if(!e||!t)return!1;const o=e.getBoundingClientRect().height;t.style.paddingTop=o+"px"}headerSearchToggler.addEventListener("click",(e=>searchClickHandler(e))),headerSearchbarEl.addEventListener("transitionend",clearSearchbarHeight);let homeSlider=null;function initSliders(){if(document.querySelector(".js-swiper")&&(homeSlider=new Swiper(".js-swiper",{watchOverflow:!0,allowTouchMove:!1,noSwiping:!1,pagination:{el:".js-swiper-pagination",type:"bullets",clickable:!0},autoplay:{delay:1e4},autoHeight:!0,breakpoints:{320:{autoHeight:!0},768:{autoHeight:!1,loop:!0}}}),homeSlider.on("resize",(()=>{homeSlider.destroy(!0),initSliders()}))),document.querySelector(".js-swiper-prog-imgs")){new Swiper(".js-swiper-prog-imgs",{breakpoints:{320:{slidesPerView:1.25,spaceBetween:20},768:{slidesPerView:2.25,spaceBetween:30},1200:{slidesPerView:2.25,spaceBetween:40},1600:{slidesPerView:2.25,spaceBetween:60}}})}}function initNewsSection(){if(!document.querySelector(".js-news"))return!1;const e=document.querySelector(".js-news");return e.querySelectorAll(".js-news-btn").forEach((t=>{t.addEventListener("click",(t=>{const o=t.target.getAttribute("data-news-value"),a=document.querySelector(`.js-news-cards-${o}`).querySelectorAll(".to-load");e.classList.toggle("has-cards-news","news"===o),e.classList.toggle("has-cards-events","events"===o),e.querySelectorAll(".to-load").forEach((e=>e.classList.remove("loaded"))),a.forEach((e=>{e.classList.add("loaded")}))}))})),!0}function matchHeight(){document.querySelectorAll(".js-matchheight").forEach((e=>{const t=e.querySelectorAll(".js-matchheight-el");let o=0;t.forEach((e=>{e.style.height="auto";const t=e.scrollHeight;o<t&&(o=t)})),t.forEach((e=>{e.style.height=o+"px"}))}))}function setSubnavVars(){const e=document.documentElement;let t=0;const o=document.querySelector(".full-menu"),a=o.getBoundingClientRect(),s=o.querySelector(".container"),i=s.getBoundingClientRect(),n=getComputedStyle(s);console.log(getComputedStyle(s).getPropertyValue("padding-top")),t=-1*parseInt(n.getPropertyValue("padding-top")),e.style.setProperty("--subnav-top",`${t}px`),t=-1*((i.width+30)/3*2+i.x),e.style.setProperty("--subnav-right",`${t}px`),t=Math.floor(a.height),e.style.setProperty("--subnav-height",`${t}
1px`),t=(a.width-i.width)/2,e.style.setProperty("--subnav-padding-right",`${t}px`),t=parseInt(n.getPropertyValue("padding-top")),e.style.setProperty("--subnav-padding-top",`${t}px`)}function initSubnav(){if($(".secondary > ul > .menu-item-has-children > ul").each((function(){const e=$("<button>");e.addClass("js-subnav-toggle"),e.html('<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"/></svg>'),e.appendTo($(this).parent()),$(this).wrap("<div class='js-scrollwrapper'></div>"),window.innerWidth<1200&&$(this).parent().slideUp()})),window.innerWidth<1200){$(".secondary .js-scrollwrapper > .sub-menu > li").each(((e,t)=>{$('<button class="js-subnav-toggle" title="Ouvrir la navigation">sub</button>').html('<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"/></svg>').appendTo($(t)),$(t).children(".sub-menu").each((function(){$(this).slideUp()}))}))}$(".js-subnav-toggle").on("click",(function(){$(this).prev().slideToggle(),$(this).parent().toggleClass("is-active"),$(".full-menu").animate({scrollTop:$(this).parent().offset().top-50},700)})),setSubnavVars()}headerSpacing(),matchHeight(),$(window).load((()=>{headerSearchbarEl.style.height="0px"})),$(window).resize((()=>{matchHeight(),headerSpacing(),setSubnavVars()})),initSubnav();

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.