1 2$(document).ready(function() { 3 4$('.time').live('click', function() 5{ 6 $(this).timePicker({startTime:new Date(0, 0, 0, 8, 0, 0), endTime:new Date(0, 0, 0, 22, 0, 0)}); 7 8 $(this).click(); 9 10}); 11// 12 13//========= page=========== 14 15 16$(document).on('click', '.menu-trigger', function () { 17 $(this).toggleClass('active'); 18 $('.menu-trigger .nav-icon').toggleClass('open'); 19 $('nav.nav-primary.mobile').slideToggle('fast'); 20 $('nav.nav-primary.mobile').toggleClass('active'); 21 $('body').toggleClass('menu_actif'); 22}); 23 24$(document).on('click', 'body.menu_actif', function (e) { 25 if ($(e.target).hasClass('menu_actif')) { 26 $('nav.nav-primary.mobile').slideToggle('fast'); 27 $('nav.nav-primary.mobile').toggleClass('active'); 28 $('body').toggleClass('menu_actif'); 29 $('.menu-trigger').toggleClass('active'); 30 $('.menu-trigger .nav-icon').toggleClass('open'); 31 } 32}); 33 34$('#header .btn').click(function(){ 35 $('#nav').slideToggle('fast'); 36}); 37 38$('#header .doctolib_btn').click(function(){ 39 $('.doctolib_iframe').slideToggle('fast'); 40}); 41 42 43$(window).resize(function(){ 44 if ($(window).width() > 925) 45 $('#nav').css('display', ''); 46}); 47 48 49$(document).on('click', 'body.search_active', function (e) { 50 if (!(e.target.closest('.form_search') || e.target.closest('.form_search--js'))) { 51 $('body').removeClass('search_active'); 52 $('.form_search').removeClass('active'); 53 } 54}); 55 56$(document).on('click', 'body', function (e) { 57 if (!(e.target.closest('.acces'))) { 58 $('#acces_direct').prop('checked', false); 59 } 60 if (!e.target.closest('.services')) { 61 $('#services_en_ligne').prop('checked', false); 62 } 63}); 64 65$(() => { 66 var used = function (elem) { 67 if (elem.val()) elem.addClass('used'); 68 else elem.removeClass('used'); 69 }; 70 71 $('.form_search .form__control').blur(function () { 72 used($(this)); 73 }); 74 75 $('.form_search .form__control').each(function () { 76 used($(this)); 77 }); 78 79 $('.form_search--js').click(function () { 80 $('.form_search').toggleClass('active'); 81 $('body').toggleClass('search_active'); 82 }); 83 84 $(document).on('keypress', function (e) { 85 e.target.tagName.toLowerCase(); 86 if (e.keyCode === 27) { 87 $('body').removeClass('search_active'); 88 $('.form_search').removeClass('active'); 89 } 90 }); 91}); 92 93 94 95 96 97/************************************************************************** 98 * jquery.rslidecycle.js - jQuery Plugin 99 * @version 2.0.0 (12.06.2014) 100 * @requires jQuery 101 * @author SADY Romain 102 * @url SecretInformatique.com 103**************************************************************************/ 104 105(function($) { 106 107 if (jQuery.fn.RSlideCycle) 108 return; 109 110 /////////////////// 111 // RSLIDE PLUGIN // 112 /////////////////// 113 jQuery.fn.RSlideCycle = function(options) { 114 115 var defaults = { 116 autoPlay : true, 117 pauseOnHover : false, 118 delay : 8000, 119 sDelay : 500, 120 controls : false, 121 nextSelector : false, 122 prevSelector : false, 123 _box : false, 124 _box_liaison : false 125 }; 126 127 options = $.extend( defaults, options ); 128 129 var opt = options, 130 /*i = 0,*/ 131 w = $(this), 132 s = w.children('.slide'), 133 sT = s.length, 134 sW = s.outerWidth(true), 135 sWT = sW * sT, 136 c, 137 interval, 138 timeout; 139 140 if ( sT > 1 ) { 141 142 var init = function() { 143 144 var clone = $('#slide').children().clone(); 145 146 if (!$('#'+ w.attr('id') +' .wrapper-cycle').length) { 147 s.wrapAll('<div class="wrapper-cycle"/>'); 148 c = $('#'+ w.attr('id') +' .wrapper-cycle'); 149 c.css({ 150 'position' : 'absolute', 151 'top' : 0, 152 'left' : '-' + sW + 'px', 153 'width' : (sWT + sW), 154 'height' : s.outerHeight(true), 155 }); 156 s.eq(sT-1).clone().prependTo(c); 157 158 _init(); 159 } 160 161 setup(); 162 163 } 164 165 var setup = function(){ 166 167 /* LOOP */ 168 if (opt.controls) { 169 170 if (opt.prevSelector) 171 opt.prevSelector = $(opt.prevSelector); 172 else { 173 w.append('<span class="prev"></span>'); 174 opt.prevSelector = w.children('.prev'); 175 } 176 177 opt.prevSelector.click(function() { 178 if (!queue()) { 179 stop(); 180 loop('prev'); 181 if (opt.autoPlay) initAuto(); 182 } 183 });
184 185 if (opt.nextSelector) 186 opt.nextSelector = $(opt.nextSelector); 187 else { 188 w.append('<span class="next"></span>'); 189 opt.nextSelector = w.children('.next'); 190 } 191 192 opt.nextSelector.click(function() { 193 if (!queue()) { 194 stop(); 195 loop('next'); 196 if (opt.autoPlay) initAuto(); 197 } 198 }); 199 } 200 201 if (opt.pauseOnHover && opt.autoPlay) 202 w.mouseover(function() { 203 stop(); 204 }).mouseout(function() { 205 initAuto(); 206 }); 207 208 if (opt.autoPlay) initAuto(); 209 } 210 211 var initAuto = function() { 212 stop(); 213 timeout = setTimeout(function(){ start(); }, 500); 214 } 215 216 var start = function(){ 217 interval = setInterval(function(){ loop('next'); }, opt.delay); 218 } 219 220 var stop = function() { 221 clearTimeout(timeout); 222 clearInterval(interval); 223 } 224 225 var loop = function(direction) { 226 227 if (direction == 'next') { 228 $('#'+ w.attr('id') + ' .slide').eq(0).animate({'margin-left': '-' + sW + 'px'}, opt.sDelay, function(){ 229 $(this).remove(); 230 $('#'+ w.attr('id') + ' .slide').eq(0).clone().appendTo(c); 231 232 _loop();
233 }); 234 } 235 if (direction == 'prev') { 236 $('#'+ w.attr('id') + ' .slide').eq(0).animate({ marginLeft: sW + parseInt(s.css('marginLeft')) }, opt.sDelay, function(){ 237 $('#'+ w.attr('id') + ' .slide').eq(sT).remove(); 238 $('#'+ w.attr('id') + ' .slide').eq(sT-1).clone().prependTo(c); 239 $(this).css('margin',''); 240 241 _loop(); 242 }); 243 } 244 245 } 246 247 var _init = function() { 248 $('#'+ w.attr('id') + ' .slide').eq(1).addClass('actif'); 249 250 if ($( opt._box ).length && opt._box_liaison) { 251 $( opt._box + ' .slide' ).hide(); 252 $( opt._box + ' .slide['+ opt._box_liaison +'="'+ $('#'+ w.attr('id') + ' .slide').eq(1).attr(opt._box_liaison) +'"]' ).fadeIn(); 253 } 254 } 255 var _loop = function() { 256 257 $('#'+ w.attr('id') + ' .slide').removeClass('actif'); 258 var _s = $('#'+ w.attr('id') + ' .slide').eq(1); 259 _s.addClass('actif'); 260 261 if ($( opt._box ).length && opt._box_liaison) { 262 $( opt._box + ' .slide' ).hide(); 263 $( opt._box + ' .slide['+ opt._box_liaison +'="'+ _s.attr(opt._box_liaison) +'"]' ).show(); 264 } 265 } 266 267 var queue = function() { 268 var n = $('#'+ w.attr('id') + ' .slide').eq(0).queue(); 269 return n.length; 270 } 271 init(); 272 } 273 274 return; 275 }; 276})(jQuery); 277 278jQuery(function($){ 279 if ($('#slide_aside').length) 280 $('#slide_aside').RSlideCycle({ 281 controls : true, 282 pauseOnHover : true, 283 nextSelector : '#slide_aside-box .next', 284 prevSelector : '#slide_aside-box .prev', 285 _box : '#slide_aside-box', 286 _box_liaison : 'data-id' 287 }); 288 289 if ($('#slide_aside2').length) 290 $('#slide_aside2').RSlideCycle({ 291 controls : true, 292 pauseOnHover : true, 293 nextSelector : '#slide_aside-box2 .next', 294 prevSelector : '#slide_aside-box2 .prev', 295 _box : '#slide_aside-box2', 296 _box_liaison : 'data-id' 297 }); 298}); 299}); 300 301// 302 303//========= annexe_images=========== 304 305$('.owl-annexe_image').owlCarousel({ 306 loop: true, 307 margin: 50, 308 center: true, 309 nav: true, 310 dots: true, 311 items: 3, 312 autoWidth: true, 313 lazyLoad: true, 314 autoplay: true, 315 autoplayHoverPause: true, 316 navText: [ 317 "<i class='fas fa-arrow-left'></i>", 318 "<i class='fas fa-arrow-right'></i>", 319 ], 320}); 321 322// 323 324//========= annexe_commentaires=========== 325 326// onload 327 328$('#commentaire input[type="button"]').click(function(){ 329 330 if (!$('#commentaire input[name="email"]').attr('value')) { 331 alert('Le champ email ne peut être vide !') 332 return false; 333 } 334 if (!$('#commentaire textarea[name="texte"]').attr('value')) { 335 alert('Le champ text ne peut être vide !') 336 return false; 337 } 338 if (!$('#commentaire input[name="nom"]').attr('value')) { 339 alert('Le champ nom ne peut être vide !') 340 return false; 341 } 342 343 344 $.ajax({ 345 url:"/page_commentaire_enregistrer", 346 dataType:"json", 347 type:"post", 348 data: { 349 'page' : $('#commentaire input[name="page"]').attr('value'), 350 'nom' : $('#commentaire input[name="nom"]').attr('value'), 351 'email' : $('#commentaire input[name="email"]').attr('value'), 352 'texte' : $('#commentaire textarea[name="texte"]').attr('value'), 353 'mode' : 'addPost' 354 }, 355 success:function(retour){ 356 if (retour.valid) 357 window.location.href = '/page-'+ $('#commentaire input[name="page"]').attr('value') +'#commentaire'; 358 } 359 }); 360}); 361 362$('#commentaire .box .delete').click(function(){ 363 364 var obj = $(this).parent().parent(); 365 $.ajax({ 366 url:"/page_commentaire_enregistrer", 367 dataType:"json", 368 type:"post", 369 data: { 370 'id' : $(this).attr('rel'), 371 'mode' : 'deletePost' 372 }, 373 success:function(retour){ 374 if (retour.valid) 375 obj.hide('fast'); 376 else 377 alert('Erreur : Impossible de supprimer le post'); 378 } 379 }); 380}); 381 382// 383 384//========= page===========
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.