PageSourceSearch

https://www.kodensha.jp/index/wp-content/themes/kodensha/files/js/mysite.js

js kodensha.jp collected 2026-10-02 17:40:21 UTC 2,368 bytes, 79 lines download raw bytes

1function urlloggerSet() {
2	document.write('<img src="https://www.kodensha.jp/trialms/urlloger.cgi" width="0" height="0" border="0" name="logimg" />');
3}
4function drawtrabtn(imgsrc,imgalt,imgwid,imghgt) {
5	document.write('<a href="javascript:void(0);" onclick="submitter();"><img src="'+imgsrc+'" alt="'+imgalt+'" width="'+imgwid+'" height="'+imghgt+'" border="0" /></a>');
6	document.WTRFORM.action = 'https://www15.j-server.com/LUCDEMO/ns/tl_ex.cgi';
7}
8
9function submitter () {
10	if ( submitter_com( document.WTRFORM ) ) {
11		document.WTRFORM.submit();
12	} else {
13		return false;
14	}
15}
16
17function submitter_com( frm ) {
18	if ( cook != 'Y' ) {
19		alert( 'Cookieを有効にしてください' );
20		return false;
21	}
22	// 未入力チェック
23	if ( frm.SURL.value == '' || frm.SURL.value == 'http://' || frm.SURL.value == 'https://' ) {
24		alert( 'URLを入力してください' );
25		return false;
26	}
27	// URLチェック
28	if ( frm.SURL.value.substr(0,7) != 'http://' && frm.SURL.value.substr(0,8) != 'https://' ) {
29		alert( '「http://」または「https://」から始まるURLを入力してください' );
30		return false;
31	}
32
33	var surl = 'SURL='  + escape( frm.SURL.value  ) + '&';
34	var slng = 'SLANG=' + escape( frm.SLANG.value ) + '&';
35	var tlng = 'TLANG=' + escape( frm.TLANG.options[ frm.TLANG.selectedIndex ].value );
36	var path = 'https://www.kodensha.jp/trialms/urlloger.cgi?' + surl + slng + tlng;
37
38	// SSL対応
39	//if ( frm.SURL.value.substr(0,5) == 'https' ) {
40	//	frm.action = frm.action.replace( 'http://', 'https://' );
41	//} else {
42	//	frm.action = frm.action.replace( 'https://', 'http://' );
43	//}
44
45	document.logimg.src = path;
46	return true;
47}
48
49function getCookie(keyname){
50	tmp = document.cookie + ";";
51	index1 = tmp.indexOf(keyname, 0);
52	if(index1 != -1){
53		tmp = tmp.substring(index1, tmp.length);
54		index2 = tmp.indexOf("=", 0) + 1;
55		index3 = tmp.indexOf(";", index2);
56		return(unescape(tmp.substring(index2, index3)));
57	}
58	return("");
59}
60
61function setCookie(keyname,val){
62	var crtpath = (location.pathname).substr(1);
63	if (crtpath.indexOf("/") > 0) {
64		crtpath = crtpath.substr( 0, crtpath.indexOf("/") );
65	}
66	tmp = keyname + "=" + escape(val) + "; path=/" + crtpath + "/;";
67	document.cookie = tmp;
68}
69
70var chk = location.href;
71var rhk = "0";
72var cook = "Y";
73
74setCookie("TRIALMYSITE",chk);
75rhk = getCookie("TRIALMYSITE");
76
77if ( rhk != chk ) {
78	cook="N";
79}

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.