From 27e60bf8cc13df401a684ef4fa282ab84c087828 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 25 Sep 2024 11:32:37 +0200 Subject: [PATCH] chore(deps): update assets Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- assets/js/scuole.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/scuole.js b/assets/js/scuole.js index 5a567e68f..0ce817eaa 100644 --- a/assets/js/scuole.js +++ b/assets/js/scuole.js @@ -1 +1 @@ -var $usermenu=$(".menu-user-wrapper"),$searchfilters=($usermenu.responsiveDom({appendTo:".menu-user-mobile",mediaQuery:"(max-width: 1200px)"}),$(".search-results-filters"));function isIE(){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),e=e.indexOf("Trident/");return 0{e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1")}),e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1")):(t.forEach(e=>{e.removeAttribute("aria-hidden"),e.removeAttribute("tabindex")}),e.removeAttribute("aria-hidden"),e.removeAttribute("tabindex"))}let t;window.addEventListener("resize",()=>{clearTimeout(t),t=setTimeout(e(),500)}),e()}),document.addEventListener("DOMContentLoaded",function(){var e=document.querySelector(".history-carousel"),t=document.querySelector(".year-carousel");e&&t&&(e=new Splide(e,{pagination:!1,arrows:!1,perPage:3,perMove:1,gap:"1rem",speed:number=800,slideFocus:!1,breakpoints:{800:{pagination:!1,slideFocus:!1,perPage:2},520:{pagination:!1,slideFocus:!1,perPage:1}}}).mount(),t=new Splide(t,{pagination:!1,perPage:3,perMove:1,speed:number=800,cloneStatus:!1,slideFocus:!1,gap:0,breakpoints:{800:{gap:"0rem",pagination:!1,slideFocus:!1,perPage:2},520:{gap:"0rem",pagination:!1,slideFocus:!1,perPage:1}}}).mount(),e.sync(t))}),document.addEventListener("DOMContentLoaded",function(){var e=document.querySelectorAll(".splide-double"),t=document.querySelectorAll(".carousel-cards");e.length&&e.forEach(e=>{new Splide(e,{pagination:!0,arrows:!0,gap:"2rem",perPage:2,perMove:1,speed:number=800,slideFocus:!1,breakpoints:{1300:{arrows:!1,pagination:!0,slideFocus:!1},768:{perPage:1,arrows:!1,pagination:!0,slideFocus:!1}}}).mount()}),t.length&&t.forEach(e=>{new Splide(e,{destroy:!0,breakpoints:{992:{destroy:!1,arrows:!1,pagination:!1,perPage:2,perMove:1,speed:number=800,slideFocus:!1,gap:"2rem"},600:{slideFocus:!1,pagination:!1,arrows:!1,perPage:1}}}).mount()})}),document.addEventListener("DOMContentLoaded",function(){const e=document.querySelectorAll(".carousel-classroom"),t=document.querySelectorAll(".simple-two-carousel"),n=document.querySelectorAll(".inside-carousel");e.length&&setTimeout(()=>{e.forEach(e=>{new Splide(e,{gap:"1.5rem",arrows:!0,pagination:!1,slideFocus:!1,perMove:1,perPage:3,padding:{left:"200px",right:"200px"},breakpoints:{1200:{slideFocus:!1,perPage:2,padding:{left:"120px",right:"120px"}},768:{slideFocus:!1,padding:{left:"120px",right:"120px"}},550:{slideFocus:!1,gap:"0.5rem",perPage:1,padding:{left:"80px",right:"80px"}}}}).mount()})},600),t.length&&setTimeout(()=>{t.forEach(e=>{new Splide(e,{gap:"2rem",arrows:!0,perPage:2,perMove:1,pagination:!1,slideFocus:!1,breakpoints:{1300:{arrows:!1,slideFocus:!1},768:{arrows:!1,slideFocus:!1,perPage:1,perMove:1}}}).mount()})},800),n.length&&setTimeout(()=>{n.forEach(e=>{new Splide(e,{gap:"50px",arrows:!0,perPage:2,slideFocus:!1,perMove:1,padding:{left:"50px",right:"50px"},breakpoints:{1300:{slideFocus:!1,arrows:!1,padding:{left:"0",right:"0"}},768:{arrows:!1,slideFocus:!1,padding:{left:"0",right:"0"},perPage:1,perMove:1}}}).mount()})},800)}),$(".responsive-tabs").responsiveTabs({startCollapsed:"accordion"}),$(document).ready(function(){$(".video-container ").fitVids()}),jQuery(document).ready(function(e){function t(){jQuery(".sticky-sidebar").stick_in_parent({parent:".sticky-sidebar-container",offset_top:100}),jQuery(".sticky-sidebar").on("sticky_kit:bottom",function(e){jQuery(this).parent().css("position","static")}).on("sticky_kit:unbottom",function(e){jQuery(this).parent().css("position","relative")})}e(".sticky-sidebar").length&&(jQuery(window).width()<992?jQuery(".sticky-sidebar").trigger("sticky_kit:detach"):t(),jQuery(window).resize(function(){jQuery(window).width()<992?jQuery(".sticky-sidebar").trigger("sticky_kit:detach"):t()}))}),$(document).ready(function(){$(".dropdown-toggle").length&&($(".dropdown-toggle").click(function(e){}),$(document).click(function(e){$(".dropdown-toggle").removeClass("show")}))}),$(document).ready(function(){(document.querySelector(".skiplink")?.querySelector('[href="#menu-principale"]')).addEventListener("click",()=>{var e=document.querySelector(".sticky-main-nav");setTimeout(()=>{e.querySelector("#menu-principale a").focus()},100)})}),$(document).ready(function(){function e(){var e=$(window).scrollTop(),t=$("#main-wrapper").offset().top,n=document.querySelector(".sticky-main-nav"),o=document.querySelector("#sub-nav .nav-container"),r=document.querySelector("#sub-nav .nav-container .main-nav"),i=document.querySelector(".header-bottom .dl-menu.nav-list-primary"),a=document.querySelector(".header-top .sticky-main-nav .main-nav"),s=document.querySelectorAll(".sticky-main-nav a");window.matchMedia("(min-width: 1200px)").matches&&(s.forEach(e=>{e.removeAttribute("tabindex")}),t{e.removeAttribute("tabindex")}),function(i){document.addEventListener("keydown",e=>{var t=document.querySelector(".toggle-user-menu-mobile"),n=document.querySelector('[data-target="#access-modal"]'),o=document.querySelector(".hamburger.is-active"),r=document.querySelector(".logo-header a");9!=e.which||e.shiftKey||document.activeElement!=i[i.length-1]||(t||n).focus(),9==e.which&&e.shiftKey&&document.activeElement===o&&r.focus()})}(o)):o.forEach(e=>{e.setAttribute("tabindex","-1")}))}).observe(t,{attributes:!0}),window.addEventListener("resize",function(){clearTimeout(n),n=setTimeout(e,200)})}),$(document).ready(function(){$(".match-height").length&&$(function(){$(".match-height").matchHeight()})});const searchModal=document.querySelector("#search-modal");function initCleanInput(){if(searchModal){const e=searchModal.querySelector(".search-form #search-input"),t=searchModal.querySelector(".search-form .clean-input");e?.addEventListener("input",()=>{0{e.value="",t.classList.remove("show")})}}function closeUserMenu(){var e=document.querySelector(".close-user-menu"),t=document.querySelector("body"),n=document.querySelector(".cbp-spmenu-right");e?.addEventListener("click",()=>{t.classList.remove("push-body-toleft"),n.classList.remove("menu-open")})}function tabIndexUser(){var e=document.querySelector(".cbp-spmenu-vertical.cbp-spmenu-right"),o=document.querySelectorAll(".cbp-spmenu-vertical.cbp-spmenu-right a"),r=document.querySelectorAll(".cbp-spmenu-vertical.cbp-spmenu-right button");new MutationObserver(function(e,t){for(const n of e)"attributes"===n.type&&(n.target.classList.contains("menu-open")?(o.forEach(e=>{e.removeAttribute("tabindex")}),r.forEach(e=>{e.removeAttribute("tabindex")}),catchFocusUser(o,r)):(o.forEach(e=>{e.setAttribute("tabindex","-1")}),r.forEach(e=>{e.setAttribute("tabindex","-1")})))}).observe(e,{attributes:!0})}function catchFocusUser(o,r){document.addEventListener("keydown",e=>{var t=document.querySelector(".toggle-user-menu-mobile"),n=document.querySelector(".hamburger");9!=e.which||e.shiftKey||document.activeElement!=o[o.length-1]||t.focus(),9==e.which&&e.shiftKey&&document.activeElement==r[0]&&n.focus()})}initCleanInput(),closeUserMenu(),tabIndexUser(),$(".dsi_more").on("click",function(){"Visualizza altro"==$(this).text()?$(this).text("Visualizza meno"):$(this).text("Visualizza altro")}); \ No newline at end of file +var $usermenu=$(".menu-user-wrapper"),$searchfilters=($usermenu.responsiveDom({appendTo:".menu-user-mobile",mediaQuery:"(max-width: 1200px)"}),$(".search-results-filters"));function isIE(){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),e=e.indexOf("Trident/");return 0{e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1")}),e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1")):(t.forEach(e=>{e.removeAttribute("aria-hidden"),e.removeAttribute("tabindex")}),e.removeAttribute("aria-hidden"),e.removeAttribute("tabindex"))}let t;window.addEventListener("resize",()=>{clearTimeout(t),t=setTimeout(e(),500)}),e()}),document.addEventListener("DOMContentLoaded",function(){var e=document.querySelector(".history-carousel"),t=document.querySelector(".year-carousel");e&&t&&(e=new Splide(e,{pagination:!1,arrows:!1,perPage:3,perMove:1,gap:"1rem",speed:number=800,slideFocus:!1,breakpoints:{800:{pagination:!1,slideFocus:!1,perPage:2},520:{pagination:!1,slideFocus:!1,perPage:1}}}).mount(),t=new Splide(t,{pagination:!1,perPage:3,perMove:1,speed:number=800,cloneStatus:!1,slideFocus:!1,gap:0,breakpoints:{800:{gap:"0rem",pagination:!1,slideFocus:!1,perPage:2},520:{gap:"0rem",pagination:!1,slideFocus:!1,perPage:1}}}).mount(),e.sync(t))}),document.addEventListener("DOMContentLoaded",function(){var e=document.querySelectorAll(".splide-double"),t=document.querySelectorAll(".carousel-cards");e.length&&e.forEach(e=>{new Splide(e,{pagination:!0,arrows:!0,gap:"2rem",perPage:2,perMove:1,speed:number=800,slideFocus:!1,breakpoints:{1300:{arrows:!1,pagination:!0,slideFocus:!1},768:{perPage:1,arrows:!1,pagination:!0,slideFocus:!1}}}).mount()}),t.length&&t.forEach(e=>{new Splide(e,{destroy:!0,breakpoints:{992:{destroy:!1,arrows:!1,pagination:!1,perPage:2,perMove:1,speed:number=800,slideFocus:!1,gap:"2rem"},600:{slideFocus:!1,pagination:!1,arrows:!1,perPage:1}}}).mount()})}),document.addEventListener("DOMContentLoaded",function(){const e=document.querySelectorAll(".carousel-classroom"),t=document.querySelectorAll(".simple-two-carousel"),n=document.querySelectorAll(".inside-carousel");e.length&&setTimeout(()=>{e.forEach(e=>{new Splide(e,{gap:"1.5rem",arrows:!0,pagination:!1,slideFocus:!1,perMove:1,perPage:3,padding:{left:"200px",right:"200px"},breakpoints:{1200:{slideFocus:!1,perPage:2,padding:{left:"120px",right:"120px"}},768:{slideFocus:!1,padding:{left:"120px",right:"120px"}},550:{slideFocus:!1,gap:"0.5rem",perPage:1,padding:{left:"80px",right:"80px"}}}}).mount()})},600),t.length&&setTimeout(()=>{t.forEach(e=>{new Splide(e,{gap:"2rem",arrows:!0,perPage:2,perMove:1,pagination:!1,slideFocus:!1,breakpoints:{1300:{arrows:!1,slideFocus:!1},768:{arrows:!1,slideFocus:!1,perPage:1,perMove:1}}}).mount()})},800),n.length&&setTimeout(()=>{n.forEach(e=>{new Splide(e,{gap:"50px",arrows:!0,perPage:2,slideFocus:!1,perMove:1,padding:{left:"50px",right:"50px"},breakpoints:{1300:{slideFocus:!1,arrows:!1,padding:{left:"0",right:"0"}},768:{arrows:!1,slideFocus:!1,padding:{left:"0",right:"0"},perPage:1,perMove:1}}}).mount()})},800)}),$(".responsive-tabs").responsiveTabs({startCollapsed:"accordion"}),$(document).ready(function(){$(".video-container ").fitVids()}),jQuery(document).ready(function(e){function t(){jQuery(".sticky-sidebar").stick_in_parent({parent:".sticky-sidebar-container",offset_top:100}),jQuery(".sticky-sidebar").on("sticky_kit:bottom",function(e){jQuery(this).parent().css("position","static")}).on("sticky_kit:unbottom",function(e){jQuery(this).parent().css("position","relative")})}e(".sticky-sidebar").length&&(jQuery(window).width()<992?jQuery(".sticky-sidebar").trigger("sticky_kit:detach"):t(),jQuery(window).resize(function(){jQuery(window).width()<992?jQuery(".sticky-sidebar").trigger("sticky_kit:detach"):t()}))}),$(document).ready(function(){$(".dropdown-toggle").length&&($(".dropdown-toggle").click(function(e){}),$(document).click(function(e){$(".dropdown-toggle").removeClass("show")}))}),$(document).ready(function(){(document.querySelector(".skiplink")?.querySelector('[href="#menu-principale"]')).addEventListener("click",()=>{var e=document.querySelector(".sticky-main-nav");setTimeout(()=>{e.querySelector("#menu-principale a").focus()},100)})}),$(document).ready(function(){function e(){var e=$(window).scrollTop(),t=$("#main-wrapper").offset().top,n=document.querySelector(".sticky-main-nav"),o=document.querySelector("#sub-nav .nav-container"),r=document.querySelector("#sub-nav .nav-container .main-nav"),i=document.querySelector(".header-bottom .dl-menu.nav-list-primary"),a=document.querySelector(".header-top .sticky-main-nav .main-nav"),s=document.querySelectorAll(".sticky-main-nav a");window.matchMedia("(min-width: 1200px)").matches&&(s.forEach(e=>{e.removeAttribute("tabindex")}),t{e.removeAttribute("tabindex")}),function(i){document.addEventListener("keydown",e=>{var t=document.querySelector(".toggle-user-menu-mobile"),n=document.querySelector('[data-target="#access-modal"]'),o=document.querySelector(".hamburger.is-active"),r=document.querySelector(".logo-header a");9!=e.which||e.shiftKey||document.activeElement!=i[i.length-1]||(t||n).focus(),9==e.which&&e.shiftKey&&document.activeElement===o&&r.focus()})}(o)):o.forEach(e=>{e.setAttribute("tabindex","-1")}))}).observe(t,{attributes:!0}),window.addEventListener("resize",function(){clearTimeout(n),n=setTimeout(e,200)})}),$(document).ready(function(){$(".match-height").length&&$(function(){$(".match-height").matchHeight()})});const searchModal=document.querySelector("#search-modal");function initCleanInput(){if(searchModal){const e=searchModal.querySelector(".search-form #search-input"),t=searchModal.querySelector(".search-form .clean-input");e?.addEventListener("input",()=>{0{e.value="",t.classList.remove("show")})}}function closeUserMenu(){var e=document.querySelector(".close-user-menu"),t=document.querySelector("body"),n=document.querySelector(".cbp-spmenu-right");e?.addEventListener("click",()=>{t.classList.remove("push-body-toleft"),n.classList.remove("menu-open")})}function tabIndexUser(){var e=document.querySelector(".cbp-spmenu-vertical.cbp-spmenu-right"),o=document.querySelectorAll(".cbp-spmenu-vertical.cbp-spmenu-right a"),r=document.querySelectorAll(".cbp-spmenu-vertical.cbp-spmenu-right button");new MutationObserver(function(e,t){for(const n of e)"attributes"===n.type&&(n.target.classList.contains("menu-open")?(o.forEach(e=>{e.removeAttribute("tabindex")}),r.forEach(e=>{e.removeAttribute("tabindex")}),catchFocusUser(o,r)):(o.forEach(e=>{e.setAttribute("tabindex","-1")}),r.forEach(e=>{e.setAttribute("tabindex","-1")})))}).observe(e,{attributes:!0})}function catchFocusUser(o,r){document.addEventListener("keydown",e=>{var t=document.querySelector(".toggle-user-menu-mobile"),n=document.querySelector(".hamburger");9!=e.which||e.shiftKey||document.activeElement!=o[o.length-1]||t.focus(),9==e.which&&e.shiftKey&&document.activeElement==r[0]&&n.focus()})}initCleanInput(),closeUserMenu(),tabIndexUser(),$(".dsi_more").on("click",function(){"Visualizza altro"==$(this).text()?$(this).text("Visualizza meno"):$(this).text("Visualizza altro")}),document.addEventListener("DOMContentLoaded",function(){const t=document.querySelector(".hamburger");document.addEventListener("keyup",function(e){"Escape"===e.key&&t.classList.contains("is-active")&&t.click()})}); \ No newline at end of file