PageSourceSearch

https://www.maurepas.fr/js/script.js?1790970193

js maurepas.fr collected 2026-10-02 19:43:55 UTC 3,460 bytes, 98 lines download raw bytes

1$(document).ready(function() {
2  
3  /*fonction redimension bloc (redimensionner('.selecteur');)*/
4  function redimensionner(e){var h=0;jQuery(e).each(function(){jQuery(this).height()>h&&(h=jQuery(this).height())}),jQuery(e).each(function(){jQuery(this).height(h)})}
5
6  /******************* NAVIGATION ************************
7  **************************************************/
8   var bodySize = $( window ).width(); 
9 
10   $(".navbar-default .navbar-nav> li").click(function(event) {
11     $(this).siblings('li').children("a").css('background-color', 'transparent');
12   });
13 
14 $('#navigation_principale').on('hide.bs.collapse', function () {
15    $('body').removeClass('MLopacity');
16     $('.navbar-default').removeClass('open');
17     $('.navbar-toggle').removeClass('open');
18 
19   });
20 $('#navigation_principale').on('show.bs.collapse', function () {
21      $('body').addClass('MLopacity');    
22      $('.navbar-default').addClass('open');    
23       $('.navbar-toggle').addClass('open');
24   });
25 
26
27/* Modal de recherche */
28$('#search-fullscreen').on('show.bs.modal', function (e) {
29  $("#wrapp_search").toggleClass('show_search');
30  $(this).toggleClass('open');
31})
32$('#search-fullscreen').on('hidden.bs.modal', function (e) {
33  $( this ).removeClass('open');
34  $("#wrapp_search").removeClass('show_search');    
35})
36
37
38  /******************* FLASH INFOS ************************
39  **************************************************/
40 setTimeout(function(){
41  
42 $( "#flash_section" ).slideDown( "slow" );
43}, 1000);
44
45  $('#bg_flash-info .close_modal').click(function() { 
46      $( "#flash_section" ).slideUp();
47  });
48  if ($('#carousel_texte').length){
49  	$('#carousel_texte').carousel('pause');
50  }
51
52
53
54    /******************* B1 **********************
55  **************************************************/
56  $('.b1_section .titre, .b1_section .resume').wrapAll("<div class='col-sm-6'></div>");
57 $('.b1_section .redac .resume').removeClass('col-sm-8');
58 $('.b1_section .redac > .col-sm-4').removeClass('col-sm-4').addClass('col-sm-6 wrapper_vign');
59
60
61   /******************* Lien INX ************************
62  **************************************************/
63  let inx = $('.menu-util_footer a[href="https://www.inexine.com"]').attr('title','Site façonné par inexine');
64
65
66///////////TOOLTIP//////////////
67   $(function () {
68    $('[data-toggle="tooltip"]').tooltip()
69  })
70
71  
72
73///////////SCROLL//////////////
74$(window).scroll(function(){
75  posScroll = $(document).scrollTop();
76  if(posScroll >=550)
77    $('.scrollToTop').fadeIn(600);
78  else
79    $('.scrollToTop').fadeOut(600);
80});
81
82  /*Traduction des placeholders par Gtranslate*/
83  // Find all placeholders
84  function isTranslated(){var e=$($("#placeholders > div")[0]).text();return!(originalPH==e)}function updatePlaceholders(){$("#placeholders > div").each(function(e,l){placeholders[e].placeholder=$(l).text()})}var placeholders=document.querySelectorAll("input[placeholder]");if(placeholders.length){placeholders=Array.prototype.slice.call(placeholders);var div=$('<div id="placeholders" style="color: transparent;"></div>');placeholders.forEach(function(e){var l=e.placeholder;div.append("<div>"+l+"</div>")}),$("body").append(div);var originalPH=placeholders[0].placeholder;setInterval(function(){isTranslated()&&(updatePlaceholders(),originalPH=placeholders[0].placeholder)},500)}
85    
86
87   
88
89     
90   
91
92
93     $(window).on("orientationchange",function(){
94        location.reload();
95      }); 
96
97});
98

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.