1$(document).ready(function ($) { 2 3 "use strict"; 4 5 $.WebSite = { 6 ready: function () { 7 8 $("main >section >.center >.block-breadcrumb >.container").removeClass("container"); 9 10 $('.dropdown-menu a.dropdown-toggle').on('click', function (e) { 11 if (!$(this).next().hasClass('show')) { 12 $(this).parents('.dropdown-menu').first().find('.show').removeClass('show'); 13 } 14 var $subMenu = $(this).next('.dropdown-menu'); 15 $subMenu.toggleClass('show'); 16 17 18 $(this).parents('li.nav-item.dropdown.show').on('hidden.bs.dropdown', function (e) { 19 $('.dropdown-submenu .show').removeClass('show'); 20 }); 21 22 23 return false; 24 }); 25 26 this.resizeMainSection(); 27 //this.temporyUpdate(); 28 }, 29 resizeMainSection: function () { 30 var mainWidth = $("main >section").width(); 31 var containerWidth = $("main >header >section >section >.container").width(); 32 var width = (mainWidth - containerWidth) / 2; 33 if (width > 0) { 34 $("main >section >.left").width(width); 35 $("main >section >.right").width(width); 36 } 37 }, 38 temporyUpdate: function () { 39 $.Site.Dialog._open('{host}/public/dialog/alert.php', "Une mise à jour est en cours, il se peut que le site rencontre quelques dysfonctionnement.<br><br>Si vous avez des remarques, une question ou avez un problème - N'hésitez pas à nous contacter pour que nous puissions répondre à votre besoin.<br><br>Bien cordialement, le service commercial."); 40 } 41 }; 42 43 $('ul.dropdown-menu [data-toggle=dropdown]').on('click', function (event) { 44 event.preventDefault(); 45 event.stopPropagation(); 46 $(this).parent().siblings().removeClass('open'); 47 $(this).parent().toggleClass('open'); 48 }); 49 50 $(window).resize(function () { 51 $.WebSite.resizeMainSection(); 52 }); 53 54 $.WebSite.ready(); 55 56});
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.