PageSourceSearch

https://www.idaten.ne.jp/portal/common-dominant/js/addFavoriteList.js

js idaten.ne.jp collected 2026-10-02 06:58:32 UTC 997 bytes, 41 lines download raw bytes

1//‚¨‹C‚É“ü‚è‹LŽ–’ljÁ
2function addFavoriteList() {
3
4	var param = {};
5	
6	var title = $("div.title-holder > h1 > span.entry-title").text();
7
8	while(title == '') {
9//		title = document.title;
10		var result = window.prompt('ƒ^ƒCƒgƒ‹‚ð“ü—Í‚µ‚Ä‚­‚¾‚³‚¢B', title);
11		if (result == null) return;
12		title = result;
13	}
14	
15	param['addFavoriteListExecute-method'] = 'method';
16	param['eOCCOL701E01I03.title[0]'] = title;
17	param['eOCCOL701E01I03.pageUrl[0]'] = window.location.href;
18	
19	var targeturl = '/portalap/ajax/EOCCOL701/EOCCOL701A02.do';
20	
21	$.ajax({
22		url: targeturl,
23		type: 'POST',
24		data: param,
25		dataType: "json",
26		success: function(data) {
27			if (data.resultCd == 3) {
28				alert('ƒGƒ‰[:' + data.msgList[0].text);
29				return;
30			}
31			alert('‚±‚̃y[ƒW‚ð‚¨‹C‚É“ü‚è‚É“o˜^‚µ‚Ü‚µ‚½B');
32		},
33		complete : function(req, textStatus) {
34			return;
35		},
36		error: function(req, textStatus, errorThrown) {
37			alert('ƒGƒ‰[‚ª”­¶‚µ‚Ü‚µ‚½B');
38		}
39	});
40	return false;
41}

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.