1$(window).load(function() { 2 //MENU JS 3 $(window).resize(function(){ 4 if($('.menu-icon').is(":visible")){ 5 $('.nav .menu').hide(); 6 } 7 else{ 8 $('.nav .menu').show(); 9 } 10 }); 11 12 $('.menu-icon').click(function(){ 13 $(this).next().slideToggle(); 14 }); 15 16 (function() { 17 18 "use strict"; 19 20 var toggles = document.querySelectorAll(".c-hamburger"); 21 22 for (var i = toggles.length - 1; i >= 0; i--) { 23 var toggle = toggles[i]; 24 toggleHandler(toggle); 25 }; 26 27 function toggleHandler(toggle) { 28 toggle.addEventListener( "click", function(e) { 29 e.preventDefault(); 30 (this.classList.contains("is-active") === true) ? this.classList.remove("is-active") : this.classList.add("is-active"); 31 }); 32 } 33 34 })(); 35 36 /*****/ 37 $('.toutes').click(function(){ 38 $(this).toggleClass('arrow_down'); 39 if ($(this).hasClass('arrow_down')) { 40 $(this).find('p').text($(this).data('hide-txt')); 41 } else { 42 $(this).find('p').text($(this).data('show-txt')); 43 } 44 $('.multi').stop(true,true).fadeToggle(); 45 }); 46 /*****/ 47}); 48 49function setupLabel() { 50 51 if ($('.label_check input').length) { 52 $('.label_check').each(function(){ 53 $(this).removeClass('c_on'); 54 }); 55 $('.label_check input:checked').each(function(){ 56 $(this).parent('label').addClass('c_on'); 57 }); 58 }; 59 60 if ($('.label_radio input').length) { 61 $('.label_radio').each(function(){ 62 $(this).removeClass('r_on'); 63 }); 64 $('.label_radio input:checked').each(function(){ 65 $(this).parent('label').addClass('r_on'); 66 }); 67 }; 68 }; 69 70 71 72/* 73 74 $(document).ready(function(){ 75 $('.label_check').click(function(){ 76 setupLabel(); 77 }); 78 setupLabel(); 79 }); 80 */ 81 82$(document).ready(function() { 83 $("#countries").msDropdown(); 84 85 86$(document).on('change', '#countries', function() { 87var country = $(this).val(); 88switch (country) { 89case 'be' : document.location.href="https://www.lws-hosting.be"; break; 90case 'gb' : document.location.href="https://www.lws-hosting.co.uk/"; break; 91case 'fr' : document.location.href="https://www.lws.fr/"; break; 92case 'ch' : document.location.href="https://www.lws-hosting.ch/"; break; 93case 'lu' : document.location.href="https://www.lws.lu/"; break; 94case 'eu' : document.location.href="https://www.lws-hosting.eu/"; break; 95case 'us' : document.location.href="https://www.lws-hosting.us/"; break; 96case 'ca' : document.location.href="https://www.lws-hosting.ca/"; break; 97case 'de' : document.location.href="https://www.lws-hosting.de/"; break; 98case 'es' : document.location.href="https://www.lws-hosting.es/"; break; 99 100/* Ajoutez autant de cas que vous souhaitez */ 101} 102}); 103 104 105 106 $('.label_check,.label_radio').click(function(){ 107 setupLabel(); 108 }); 109 setupLabel(); 110}); 111 112 113$(function () { 114 $('[data-toggle="tooltip"]').each(function(){ 115 var e=$(this); 116 $.get(e.attr('href'),function(d) { 117 e.tooltip({ 118 title: d, 119 html:true, 120 trigger: 'hover focus', 121 }); 122 }); 123 }); 124}); 125 126 127 128 129 130 131// comportement menu tablette 132if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { 133 console.log('pass111'); 134 135$(function(){ 136$(".menu > ul > li > a").bind("click", function(e){ 137console.log('pass2'); 138//si on l'utilisateur a déjà cliqué sur lien pour afficher le sous-menu 139if($(this).parents('.active').length){ 140e.stopPropagation(); 141return true; 142} 143 144//si on a un sous-menu 145if ($(this).next().hasClass("subMenu")) { 146//on arrête l'exécution du lien 147e.preventDefault(); 148e.stopPropagation(); 149 150//on masque le sous-menu du li actif 151/*$('.menu > ul > li.active .subMenu').hide(); 152//on retire la class active du li actuellement actif 153$(".menu > ul > li.active").removeClass('active'); 154 155//on ajoute la classe active au parent du lien cliqué 156$(this).parent().addClass('active'); 157//on affiche le sous-menu 158$(this).next().show();*/ 159 160return false;
161} 162 163}); 164}); 165 166} 167 168 169 170 171 172
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.