File manager - Edit - /home/missmand/public_html/js/app.js
Back
/************/ /* Fonction */ /************/ function MoveMenu(elem){ if($('.headerMenu a.current').length == 0)return; var current = (elem == undefined) ? $('.headerMenu a.current') : elem; var span = $('.headerMenu span'); var left = current.position().left; var width = current.width(); span.css({ 'left': left, 'width': width }); } /**********/ /* Jquery */ /**********/ $(function(){ $(document).on('mouseover','.headerMenu a',function(){ MoveMenu($(this)); }); $(document).on('mouseout','.headerMenu',function(){ MoveMenu(); }); /* Height JS */ if($('.projetListe').length){ $('.projetListe').matchHeight(); } if($('.actualiteListe').length){ $('.actualiteListe').matchHeight(); } /* Navigation via JS */ $(document).on('click','.navFull',function(e){ var elem = $(this); var lien = (elem.attr('href') != undefined) ? elem.attr('href') : elem.attr('data-url'); window.location.href = lien; }); if($('.lightboxLien').length != 0) { lightbox.option({ 'resizeDuration': 400, 'showImageNumberLabel': false }); } if($('.section20Slider').length != 0){ $('.section20Slider').owlCarousel({ items:1, responsiveRefreshRate:10, loop:true, nav:true, dots:true, navText:['<i class="fa fa-chevron-left"></i>','<i class="fa fa-chevron-right"></i>'], dotsEach:true }); } if($('.section24Slider').length != 0){ $('.section24Slider').owlCarousel({ items:3, responsiveRefreshRate:10, loop:true, nav:true, dots:true, dotsEach:true, margin:30, responsiveClass:true, navText:['<i class="fa fa-chevron-left"></i>','<i class="fa fa-chevron-right"></i>'], responsive:{ 0:{ items:1 }, 640:{ items:1 }, 960:{ items:2 }, 1200:{ items:3 } } }); } if($(".dateDropper").length != 0) $(".dateDropper").dateDropper(); /* Compléter les champs de la page ajout de projet */ $(document).on('keyup','.addProjet .contenuTop form',function(e){ var elem = $(e.target); $('.section28 input[name="'+elem.attr('name')+'"]').val(elem.val()); }); /* Navigation menu mobile */ $(document).on('click','.headerMenuMobileBtn',function(){ var menu = $(this); var menuContenu = $('.headerMenuMobile'); if(menu.hasClass('current')){ menu.removeClass('current'); menuContenu.slideUp(); }else{ menu.addClass('current'); menuContenu.slideDown(); } }); }); /**************/ /* Chargement */ /**************/ $(window).on('load', function() { MoveMenu(); });
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings