PageSourceSearch

https://turismoburgos.org/wp-content/plugins/superstorefinder-wp/js/super-analytics.js?ver=1.0

js turismoburgos.org collected 2026-10-02 08:06:41 UTC 2,765 bytes, 107 lines download raw bytes

1jQuery(document).ready(function() {
2
3var d = new Date();
4var $mobile = jQuery('#storeLocatorInfobox .store-tel a');
5var $ssfemail = jQuery('#storeLocatorInfobox .store-email a');
6
7//console.log("cookie"+getCookie('gdpraccept'));
8if(ssf_gdpr=='true' && ssfGetCookie('gdpraccept')!='yes'){
9jQuery('.ssf-main-content').css('visibility','hidden');
10jQuery('#ssf-gdpr').css('display','block');
11} 
12
13jQuery('#ssf-gdpr #applyFilterOptionsAccept').on('click', function(e) { 
14
15
16	jQuery('.ssf-main-content').css('visibility','visible');
17	jQuery('#ssf-gdpr').css('display','none');
18	ssfSetCookie('gdpraccept','yes',365);
19
20});
21
22jQuery('#storeLocatorInfobox .store-tel,#mobileStoreLocatorInfobox .store-tel').on('click', function(e) { 
23
24
25	var location = jQuery('.store-locator__infobox--main .store-location').html();
26	jQuery.ajax({
27		type: "POST",
28		url: ssf_wp_base + '/tracking.php?t='+d.getTime(),
29		data: {ssf_store_name: location},
30		cache: false,
31		success: function (html){
32		}
33  });
34
35});
36
37jQuery('#storeLocatorInfobox .store-email, #mobileStoreLocatorInfobox .store-email').on('click', function(e) { 
38
39
40	var location = jQuery('.store-locator__infobox--main .store-location').html();
41	jQuery.ajax({
42		type: "POST",
43		url: ssf_wp_base + '/tracking.php?t='+d.getTime(),
44		data: {ssf_email_name: location},
45		cache: false,
46		success: function (html){
47		}
48  });
49
50});
51
52
53
54var typingTimer;               
55var doneTypingInterval = 3000;  
56var $input = jQuery('#storeLocator__searchBar');
57
58//on keyup, start the countdown
59$input.on('keyup', function () {
60  clearTimeout(typingTimer);
61  typingTimer = setTimeout(doneTyping, doneTypingInterval);
62});
63
64//on keydown, clear the countdown 
65$input.on('keydown', function () {
66  clearTimeout(typingTimer);
67});
68
69function doneTyping () {
70  var searchPlace = jQuery('#storeLocator__searchBar').val();
71  if(searchPlace!=''){
72	jQuery.ajax({
73		type: "POST",
74		url: ssf_wp_base + '/tracking.php?t='+d.getTime(),
75		data: {ssf_wp_track_add: searchPlace},
76		cache: false,
77		success: function (html){
78		}
79  });
80  }
81}
82
83function ssfSetCookie(cname, cvalue, exdays) {
84  const d = new Date();
85  d.setTime(d.getTime() + (exdays*24*60*60*1000));
86  let expires = "expires="+ d.toUTCString();
87  document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
88}
89
90function ssfGetCookie(cname) {
91  let name = cname + "=";
92  let decodedCookie = decodeURIComponent(document.cookie);
93  let ca = decodedCookie.split(';');
94  for(let i = 0; i <ca.length; i++) {
95    let c = ca[i];
96    while (c.charAt(0) == ' ') {
97      c = c.substring(1);
98    }
99    if (c.indexOf(name) == 0) {
100      return c.substring(name.length, c.length);
101    }
102  }
103  return "";
104}
105
106
107});

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.