PageSourceSearch

https://member.gungho.jp/front/scripts/ajax.js

js gungho.jp collected 2026-09-24 09:03:32 UTC 2,138 bytes, 74 lines download raw bytes

1Ajax.Responders.register({
2    onCreate: function(request) {
3        request['timeoutId'] = window.setTimeout(
4            function() {
5                switch (request.transport.readyState) {
6                    case 1: case 2: case 3:
7                        request.transport.abort();
8                        request.options['onFailure'](request.transport, request.json);
9                    break;
10                }
11            },
12            60000
13        );
14    },
15    onComplete: function(request) {
16        window.clearTimeout(request['timeoutId']);
17    }
18});
19
20function cmsGetContent(id, url, pars, otheroptions){
21    var options = {
22        method:     'get',
23        parameters: pars,
24        onFailure: function(request) {
25            $(id).innerHTML = '<!-- content-block request failed. [js] -->';
26        }
27    }
28    Object.extend(options, otheroptions || {});
29    var myAjax = new Ajax.Updater({success: id}, url, options);
30}
31
32
33var trackLabel = location.pathname; 
34
35function gaTrack(link,category,action) {
36	
37	if(link != ""){
38		/*try {
39		_gaq.push(['_trackEvent', category, action, trackLabel]);
40		setTimeout('document.location = "' + link.href + '"', 200);
41		}
42		catch(err){}*/
43		document.location = link.href;
44	}
45	else {
46		/*_gaq.push(['_trackEvent', category, action, trackLabel]);*/
47	}
48}
49
50function inputIdAndPass(_id) {
51	if(document.getElementById(_id).value == "") {
52		document.getElementById(_id).style.backgroundPosition = "0px";
53	}
54}
55
56
57function setReturnURL() {
58	var thisURL = location.href;
59	var baseURL = "https://member.gungho.jp/front/guest/oauthrequest.aspx?aptid=BFF1DDA6-35B9-40A4-8E75-B30DDD58ABEE&.goeReturnUrl=";
60	var matchPattern = /selfytown\/nologin.+/i;
61	var selfyFlag = matchPattern.test(thisURL);
62
63	if(selfyFlag){
64		document.location = baseURL + "http%3a%2f%2fwww%2egungho%2ejp%2fselfytown%2f";
65		//window.alert("this is Selfy!");
66	}
67	else if(thisURL!=undefined && thisURL!=""){
68		document.location = baseURL + encodeURIComponent(thisURL);
69	}
70	else {
71		document.location = baseURL + "http%3a%2f%2fwww%2egungho%2ejp%2f";
72	}
73
74}

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.