1(function ($) { 2$(document).ready(function() { 3 4 var windowheight = window.innerHeight ? window.innerHeight : $(window).height(); 5 var windowwidth = $(window).width(); 6 7//ACCUEIL 8 9if( $('body').hasClass('front')){ 10 11 //slider 12 13 $('.slideshow').cycle({ 14 fx: 'fade', 15 timeout: 3000, 16 next: '.right-arrow', 17 prev: '.left-arrow' 18 }); 19 20 21 22 $('.arrows').css({ 23 top : windowheight-200}); 24 25 // FIN SLIDER 26 27 $('#navigation').css({ 28 top: windowheight-44 29 }); 30 $('#footer').css({ 31 top: windowheight 32 }); 33 34} 35// FIN ACCUEIL 36 37 if(windowheight > windowwidth){ 38 39 $('#block-views-slider-accueil-block img').css({ 40 height : windowheight, 41 width : 'auto' 42 }); 43 44 $('#block-views-slider-accueil-block-1 img').css({ 45 height : $('#container-wrapper').height(), 46 width : 'auto' 47 }); 48 49 }else{ 50 $('#block-views-slider-accueil-block img').css({ 51 width : '100%', 52 height : 'auto' 53 }); 54 55 $('#block-views-slider-accueil-block-1 img').css({ 56 width : '100%', 57 height : 'auto' 58 }); 59 60 } 61 62 63 $('#block-block-5').click(function(){ 64 $("html, body").animate({ scrollTop: $(document).height() }, 1000); 65 }); 66 67 68 $('#block-block-7').hover(function(){ 69 $(this).animate({width : '300px'},400); 70 },function(){ 71 $(this).animate({width : '45px'},400); 72 }); 73 74//Sous-menu anim 75 $('#block-views-urbanisme-block .views-row .views-field-body').slideToggle('slow'); 76 $('#block-views-urbanisme-block .views-row ').click(function(){ 77 $(this).find('.views-field-body').slideToggle('slow'); 78 79 }) 80 81 82//RESIZE 83 84$(window).resize(function(){ 85 windowheight = window.innerHeight ? window.innerHeight : $(window).height(); 86 windowwidth = $(window).width(); 87 88 if( $('body').hasClass('front')){ 89 $('#navigation').css({ 90 top: windowheight-44 91 }); 92 93 $('#footer').css({ 94 top: windowheight 95 }); 96 97 $('.arrows').css({ 98 top : windowheight-200}); 99 } 100 101 if(windowheight > windowwidth){ 102 103 $('#block-views-slider-accueil-block img').css({ 104 height : windowheight, 105 width : 'auto' 106 }); 107 108 $('#block-views-slider-accueil-block-1 img').css({ 109 height : $('#container-wrapper').height(), 110 width : 'auto' 111 }); 112 113 }else{ 114 $('#block-views-slider-accueil-block img').css({ 115 width : '100%', 116 height : 'auto' 117 }); 118 119 $('#block-views-slider-accueil-block-1 img').css({ 120 width : '100%', 121 height : 'auto' 122 }); 123 124 } 125 126 127 128}); 129 130 $('.view-actus .view-content').slick({ 131 slidesToShow: 1, 132 slidesToScroll: 1, 133 autoplay: true, 134 autoplaySpeed: 3000 135}); 136 137 138 139 }); 140}(jQuery));// JavaScript Document 141 142
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.