1jQuery(document).ready(function($){ 2 3 // Stellar -- Parallax 4 $("body").attr("data-stellar-background-ratio","0.3"); 5 $("body").stellar({ 6 horizontalScrolling: false, 7 verticalOffset: 0, 8 horizontalOffset: 0 9 }); 10 // END - Stellar -- Parallax 11 12 $("div#c64585").attr("id","slider-actu").wrapInner("<div class='slider mini'></div>").wrapInner("<div class='slider-wrap'></div>"); 13 14 // Mailform - BS3 - Horizontal form 15 $("form#mailform").addClass("form-horizontal").attr("role","form"); 16 $("form#mailform div.form-group label").addClass("control-label"); 17 $("form#mailform div.form-group > label").addClass("col-sm-2"); 18 $("form#mailform div.form-group input[type=text]").addClass("form-control"); 19 $("form#mailform div.form-group input[type=password]").addClass("form-control"); 20 $("form#mailform div.form-group input[type=submit]").addClass("btn btn-primary"); 21 $("form#mailform div.form-group input[type=submit]").parent().addClass("col-sm-offset-2"); 22 $("form#mailform div.form-group textarea").addClass("form-control"); 23 $("div.radio-group input.csc-mailform-radio").addClass("radio"); 24 $("div.radio-group input.csc-mailform-radio").each(function(){ 25 $(this).prependTo($(this).next("label")); 26 }); 27 $("div.radio-group > label").wrap("<div class='radio'></div>"); 28 $("form#mailform select").addClass("form-control"); 29 30 // unwrap Actus + Agenda 31 $('div#c64386,div#c64384,div#c64383,div#c64382').contents().unwrap(); 32 33 $("[data-toggle='tooltip']").tooltip(); 34 35 // Remplacement des images pour écrans Retina 36 if (window.devicePixelRatio >= 1.5) { 37 $("img.hd").each(function(){ 38 $(this).attr('src',$(this).attr('src').replace(".","-hd.")); 39 }); 40 } 41 42 var t=0; // the height of the highest element (after the function runs) 43 var t_elem; // the highest element (after the function runs) 44 var count_t=0; 45 $("div#slider-event div.slider-wrap div.event").each(function () { 46 $this = $(this); 47 count_t++; 48 if ( $this.outerHeight() > t ) { 49 t_elem=this; 50 t=$this.outerHeight(); 51 } 52 }); 53 if(count_t >= 3) t = t*3; 54 else t = t*count_t; 55 $("div#slider-event div.slider-wrap").css("height", "auto"); 56 $("div#slider-event div.slider-wrap").css("min-height", t+"px"); 57 58 var u=0; // the height of the highest element (after the function runs) 59 var u_elem; // the highest element (after the function runs) 60 $("div#slider-actu div.slider-wrap div.actu").each(function () { 61 $this = $(this); 62 if ( $this.outerHeight() > u ) { 63 u_elem=this; 64 u=$this.outerHeight(); 65 } 66 }); 67 $("div#slider-actu div.slider-wrap").css("height", "auto"); 68 $("div#slider-actu div.slider-wrap").css("min-height", u+"px"); 69 70 $("div#slider div.slider").carouFredSel({ 71 direction: "up", 72 circular: true, 73 infinite: true, 74 responsive: true, 75 prev: { 76 button: "#slider-prev", 77 queue: true 78 }, 79 next: { 80 button: "#slider-next", 81 queue: true 82 }, 83 auto: { 84 play: true, 85 timeoutDuration: 6000 86 }, 87 pagination: { 88 container: "#slider-pagination" 89 }, 90 scroll: { 91 pauseOnHover: true, 92 duration: 1000 93 }, 94 items: { 95 minimum: 1 96 } 97 }); 98 99 $("div#slider-actu div.slider.mini").carouFredSel({ 100 direction: "up", 101 circular: true, 102 infinite: true, 103 responsive: true, 104 prev: { 105 button: "#slider-actu-prev", 106 queue: true 107 }, 108 next: { 109 button: "#slider-actu-next", 110 queue: true 111 }, 112 auto: { 113 play: true, 114 timeoutDuration: 6000 115 }, 116 scroll: { 117 duration: 1000 118 }, 119 items: { 120 minimum: 2, 121 visible: 2 122 } 123 }); 124 125 126 $("div#slider-event div.slider.mini").carouFredSel({ 127 direction: "up", 128 circular: true, 129 infinite: true, 130 responsive: true, 131 prev: { 132 button: "#slider-event-prev", 133 queue: true 134 }, 135 next: { 136 button: "#slider-event-next", 137 queue: true 138 }, 139 auto: { 140 play: false, 141 timeoutDuration: 6000 142 }, 143 scroll: { 144 duration: 1000 145 }, 146 items: { 147 visible: 3, 148 minimum: 3 149 } 150 }); 151 152 $("[data-toggle=dropdown]").on('click', function(e){ return true; }); 153 154 $("nav.menu").clone().appendTo("div#menu-mobile"); 155 $("div#menu-mobile nav.menu").removeClass('hidden-xs'); 156 157 $("div#menu ul.nav.navbar-nav:not(.intranet) > li.inactive, div#menu ul.nav.navbar-nav:not(.intranet) > li.active > a").remove(); 158 $("div#menu ul.nav.navbar-nav:not(.intranet) > li.active > ul.dropdown-menu").contents().unwrap().unwrap(); 159 160 var more = $(".slider .actu:first-child button.more").text().substr(1); 161 more = more.substr(0, more.length-1) 162 $("button.more").text(more); 163 164 165});
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.