1var tailleEcran = $(window).width(); 2//console.log('taille de l\'ecran : '+tailleEcran+'px'); 3 4if(tailleEcran<767){ 5 6 // MENU DEROULANT MOBILE 7 var listsNodes = $('.liste_deroulante_moncompte'); 8 listsNodes.hide(); 9 10 11 $(".moncompte .title").on("click", function (event) { 12 var 13 element = $(this), 14 fleche = element.find('.fa'), 15 list = element.parent().find('.liste_deroulante_moncompte'), // la liste en cours que j'appuie 16 longueur = list.length; 17 18 $(listsNodes).parent().find('.fa').removeClass('fa-caret-down'); 19 $(listsNodes).parent().find('.fa').addClass('fa-caret-right'); 20 // $(listsNodes).slideUp(); 21 22 if (longueur > 0 && !list.is(":visible")) { 23 event.preventDefault(); 24 fleche.removeClass('fa-caret-right'); 25 fleche.addClass('fa-caret-down'); 26 list.slideDown(); 27 28 29 } 30 else { 31 fleche.removeClass('fa-caret-down'); 32 fleche.addClass('fa-caret-right'); 33 list.slideUp(); 34 } 35 }); 36 37 // RESERVATIONS - DETAILS 38 var details = $('.info_reservation'); 39 details.hide(); 40 41 $(".details_btn").on("click", function (event) { 42 var 43 element = $(this), 44 fleche = element.find('.fa'), 45 list = element.parent().find('.info_reservation'), // la liste en cours que j'appuie 46 longueur = list.length; 47 // console.log(list); 48 49 details.slideUp(); 50 $('.content_reservation').parent().find('.fa').removeClass('fa-caret-up') 51 $('.content_reservation').parent().find('.fa').addClass('fa-caret-right') 52 53 if (longueur > 0 && !list.is(":visible")) { 54 list.slideDown(); 55 fleche.removeClass('fa-caret-right'); 56 fleche.addClass('fa-caret-up'); 57 58 event.preventDefault(); 59 60 } else { 61 list.slideUp(); 62 fleche.removeClass('fa-caret-up'); 63 fleche.addClass('fa-caret-right'); 64 } 65 }); 66} 67 68 69$('.label_societe').on('click', function(){ 70 if($('#slider_societe').slider('getValue') == 0){ 71 $('#slider_societe').slider('setValue', 1); 72 } 73 else { 74 $('#slider_societe').slider('setValue', 0); 75 76 } 77}); 78 79$('.text_newsletter').on('click', function(){ 80 if($('#slider_newsletter').slider('getValue') == 0){ 81 $('#slider_newsletter').slider('setValue', 1); 82 } 83 else { 84 $('#slider_newsletter').slider('setValue', 0); 85 86 } 87});
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.