PageSourceSearch

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

js foundationforwomenscancer.org collected 2026-10-02 05:56:44 UTC 3,093 bytes, 114 lines download raw bytes

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

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.