PageSourceSearch

https://grief.com/wp-content/plugins/indeed-smart-popup/assets/js/front-end_functions.js

js grief.com collected 2026-09-24 09:01:55 UTC 2,102 bytes, 75 lines download raw bytes

1function setCookie(name,value,days){
2	if (days) {
3		var date = new Date();
4		date.setTime(date.getTime()+(days*24*60*60*1000));
5		var expires = '; expires='+date.toGMTString();
6	}else var expires = '';
7	document.cookie = name+'='+value+expires+'; path=/';
8}
9function getCookie(cname){
10	var name = cname + '=';
11	var ca = document.cookie.split(';');
12	for(var i=0; i<ca.length; i++) {
13		var c = ca[i];
14		while (c.charAt(0)==' ') c = c.substring(1);
15		if (c.indexOf(name) != -1) return c.substring(name.length, c.length);
16	}
17	
18	return '';
19}
20
21function ips_update_form_id(ips_id){
22	jQuery('#ips_main_'+ips_id+' form').attr('id', 'isp_form_'+ips_id);
23}
24function ips_subscribe_check(type, subscribe, ips_id){
25	if(type=='opt_in'){
26		jQuery('#ips_main_'+ips_id+' form').append('<input type="hidden" value="'+subscribe+'" name="ips_subscribe_type" />');
27	}
28}
29
30function ips_return_json_values(str){
31    try{
32        obj = JSON.parse(str);
33		if(obj && typeof obj==="object" && obj!==null){
34            return obj;
35        }
36    }catch(e){
37        return false;
38    }
39	return false;
40}
41
42function ips_return_error_msg(type, isp_id, err_msg){
43	if(type=='opt_in'){
44		var submit = jQuery('#isp_form_'+isp_id).find(':submit');
45		submit.after('<span class="ips_error_addr_mail" style="margin-left: 10px;">'+err_msg+'</span>');
46	}return '';
47}
48
49/////////////////////
50function ips_load_facebook(){
51    (function(d, s, id) {
52    var js, fjs = d.getElementsByTagName(s)[0];
53    if (d.getElementById(id)) return;
54    js = d.createElement(s);
55    js.id = id;
56    js.src = "//connect.facebook.net/en_EN/sdk.js#xfbml=1&version=v2.0&status=0";
57    fjs.parentNode.insertBefore(js, fjs);
58    }
59    (document, 'script', 'facebook-jssdk'));
60}
61
62function isp_save_statistic_data_js(the_id){
63	ips_user = getCookie('ips_visitor');
64    jQuery.ajax({
65        type : "post",
66        url : window.isp_base_url+'/wp-admin/admin-ajax.php',
67        data : {
68                action: "SaveStatisticsData",
69                ips_id: the_id,
70                ips_user_cookie: ips_user,
71            },
72        success: function (data) {
73        }
74    });
75}

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.