PageSourceSearch

https://www.atspace.com/wp-content/plugins/rchr-wp-plugin/js/hosting.js?ver=6.8.10

js atspace.com collected 2026-09-24 09:12:58 UTC 3,736 bytes, 119 lines download raw bytes

1// JavaScript Document
2function rchr_setCookie(c_name,value,expiredays)
3{
4    var exdate=new Date();
5    exdate.setDate(exdate.getDate()+expiredays);
6    document.cookie=c_name+ "=" +escape(value)+ ((expiredays==null) ? "" : ";expires="+exdate.toGMTString())+ ";path=/";
7}
8
9function rchr_getCookie(c_name)
10{
11    if (document.cookie.length>0)
12    {
13      c_start=document.cookie.indexOf(c_name + "=");
14      if (c_start!=-1)
15      {
16        c_start=c_start + c_name.length+1;
17        c_end=document.cookie.indexOf(";",c_start);
18        if (c_end==-1) c_end=document.cookie.length;
19        return unescape(document.cookie.substring(c_start,c_end));
20      }
21    }
22    return "";
23}
24
25function rchr_checkReferrerCookie()
26{
27    referrer=rchr_getCookie('rchr_referrer');
28    if (referrer!=null && referrer!="")
29    {
30        //Referrer is set
31    }
32    else
33    {
34        referrer = document.referrer;
35        if(referrer=='') referrer = document.location;
36        rchr_setCookie('rchr_referrer',referrer,30);
37    }
38}
39
40function rchr_checkLandingPageCookie()
41{
42    landing_page=rchr_getCookie('rchr_landing_page');
43    if (landing_page!=null && landing_page!="")
44    {
45        //landing_page is set
46    }
47    else
48    {
49        landing_page = document.location;
50        rchr_setCookie('rchr_landing_page',landing_page,30);
51    }
52}
53
54// Check referrer
55rchr_checkReferrerCookie();
56rchr_checkLandingPageCookie();
57
58// Live chat
59//function rchr_chat()
60//{
61//    // old version
62//    var request_url_6514432 = "http://livechat.supportindeed.com/request.php?l=admin&x=1&deptid=0&pagex="+window.location.href;
63//    var chat_width = "450";
64//    var chat_height = "360";
65//    OpenWin = this.open(request_url_6514432, "", "scrollbars=no,menubar=no,resizable=0,location=no,screenX=50,screenY=100,width="+chat_width+",height="+chat_height+"");
66//    
67//    // new version
68//    var request_url = "http://livechat2.supportindeed.com/phplive.php?d=1&onpage="+window.location.href+"&custom="+window.location.href;
69//    var chat_width = "550";
70//    var chat_height = "460";
71//    OpenWin = this.open(request_url, "", "scrollbars=no,menubar=no,resizable=0,location=no,screenX=50,screenY=100,width="+chat_width+",height="+chat_height+"");
72//}
73
74// Demo panel
75function rchr_demo(module)
76{
77    if(module!="") document.demo_panel.module.value = module;
78    document.demo_panel.submit();
79}
80
81// Toggles
82(function($) {
83    $( document ).ready( function() {
84
85        $('.rchr_toggle_title').on('click', function () {
86            var $this_heading = $(this),
87                $module = $this_heading.closest('.rchr_toggle'),
88                $content = $module.find('.rchr_toggle_content'),
89                is_accordion = $module.closest('.rchr_accordion').length,
90                $accordion_active_toggle;
91
92            if (is_accordion) {
93                if ($module.hasClass('rchr_toggle_open')) {
94                    return false;
95                }
96
97                $accordion_active_toggle = $module.siblings('.rchr_toggle_open');
98            }
99
100            if ($content.is(':animated')) {
101                return;
102            }
103
104            $content.slideToggle(700, function () {
105                if ($module.hasClass('rchr_toggle_close'))
106                    $module.removeClass('rchr_toggle_close').addClass('rchr_toggle_open');
107                else
108                    $module.removeClass('rchr_toggle_open').addClass('rchr_toggle_close');
109            });
110
111            if (is_accordion) {
112                $accordion_active_toggle.find('.rchr_toggle_content').slideToggle(500, function () {
113                    $accordion_active_toggle.removeClass('rchr_toggle_open').addClass('rchr_toggle_close');
114                });
115            }
116        });
117    });
118
119}(jQuery));

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.