PageSourceSearch

https://www.accueil-vendee.com/wp-content/plugins/ba-cookies/Cookies/js/main.js?ver=1790944132

js accueil-vendee.com collected 2026-10-02 12:29:19 UTC 1,607 bytes, 61 lines download raw bytes

1jQuery('document').ready(function($){
2
3  initCookies = function(){
4	  
5
6      var cookieAllowed = jQuery.cookie("cookies_consent");
7
8      if(typeof(cookieAllowed) != "undefined") return;
9
10      jQuery('body').addClass('cookies');
11
12      jQuery('.cookies_notice a.rep-cookies').on('click', function(e){
13
14              e.preventDefault();
15
16			  if($(this).hasClass('yes-cookies')){
17				jQuery.cookie("cookies_consent", "true", { expires: 364, path: '/'  });
18				location.reload();
19			  }
20			  else{
21				jQuery.cookie("cookies_consent", "false", { expires: 364, path: '/'  });
22			  }
23
24              //acceptCookies
25              jQuery('body').removeClass('cookies');
26              jQuery('.cookies_notice').hide();
27
28      });
29	  
30	  //SI l'utilisateur utilise le site on valide son accord de cookie pour une durée minime de 1 jour
31	  jQuery('body a, body button').click(function(e){
32		  
33		  if(!$(this).hasClass('legals') && !$(this).hasClass('legals2') && !$(this).hasClass('no-cookies')){
34			  jQuery.cookie("cookies_consent", "true", { expires: 1, path: '/'  });
35			  
36			  jQuery('body').removeClass('cookies');
37			  jQuery('.cookies_notice').hide();
38			  
39			  jQuery('body a, body button').unbind('click');
40		  }
41	  });
42	  
43	  
44	  $('#cookies_notice .legals').click(function(e) {
45		e.preventDefault();
46		$('#cookies_notice #overlay').fadeIn(300);  
47	  });
48	  $('#cookies_notice #close').click(function() {
49		$('#cookies_notice #overlay').fadeOut(300);
50	  });
51	 
52
53
54  };
55
56  initMain = function(){
57      initCookies();
58  }
59
60  initMain();
61});

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.