1$(function () { 2 var resp = true; 3 function menuResp(resp) { 4 if( $(window).width() <= 750 && resp ) { 5 $('li').each(function () { 6 $(this).prepend('<span class="respArrow"></span>'); 7 if ( $(this).find(' > ul').length > 0 ) $(this).addClass('hasChild'); 8 }); 9 resp = false; 10 } 11 } 12 13 menuResp(true); 14 15 $(window).resize(function () { 16 if($(window).width() <= 750) { 17 menuResp (resp); 18 resp = true 19 } else { 20 $('li').removeClass('hasChild'); 21 resp = false; 22 } 23 }); 24 25 26 $('.hasChild').on('hover',function () { 27 if($(this).hasClass('openResp')) { 28 $(this).removeClass('openResp'); 29 } else { 30 $(this).parents('li.hasChild').addClass('openResp'); 31 $(this).siblings('li').removeClass('openResp'); 32 $(this).addClass('openResp'); 33 } 34 }); 35 36}); 37 38$('.title-left').appendTo($("#blog-left")); 39$('.highlight-left').appendTo($("#blog-left")); 40$('.title-right').appendTo($("#title-informations")); 41$('.highlight-right').appendTo($("#highlight")); 42$('.alerte-meteo').appendTo($("#alerte-meteo")); 43$('.form').appendTo($("#copy-form")); 44$('.form-mail').appendTo($("#copy-form-mail")); 45$('.title-blog').appendTo($(".copy-title-blog")); 46 47$( ".linksearch" ).click(function() { 48 $( "#searchtop" ).toggle( "slow", function() { 49 // Animation complete. 50 }); 51 52}); 53 54 55$(function() { 56 /** 57 * Smooth scrolling to page anchor on click 58 **/ 59 $("a[href*='#']:not([href='#'])").click(function() { 60 if ( 61 location.hostname == this.hostname 62 && this.pathname.replace(/^\//,"") == location.pathname.replace(/^\//,"") 63 ) { 64 var anchor = $(this.hash); 65 anchor = anchor.length ? anchor : $("[name=" + this.hash.slice(1) +"]"); 66 if ( anchor.length ) { 67 $("html, body").animate( { scrollTop: anchor.offset().top }, 800); 68 } 69 } 70 }); 71}); 72 73 74/* 75(function($) { 76 $(document).ready( function(){ 77 if(sessionStorage.getItem('popState') != 'shown'){ 78 jQuery.magnificPopup.open({ 79 items: {src: jQuery('#home-popup')}, 80 type: 'inline', 81 closeMarkup:'<button title="Fermer(esc)" type="button" class="mfp-close">Ã</button>' 82 }); 83 sessionStorage.setItem('popState','shown') 84 } 85 }); 86})(jQuery); 87 88*/ 89
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.