PageSourceSearch

https://cdn.myanimelist.net/js/ss_jscript.js?v=1790238436

js myanimelist.net collected 2026-09-24 08:27:37 UTC 2,079 bytes, 59 lines download raw bytes

1// JavaScript Document
2
3var ss_headerClass = 'normal_header';
4var ss_loaderUrl = '/images/xmlhttp-loader.gif';
5
6
7function ss_selectItem(divContainerName,divAddName,titleName,titleid,formInputName)
8{
9	document.getElementById(divContainerName).style.display = 'block';
10	$("#"+divContainerName).append(_.template('<div id="<%- divAddName %><%- titleid %>" style="margin: 3px 0;"><input type="hidden" name="<%- formInputName %>[]" value="<%- titleid %>"><%- titleName %> <a href="javascript:void(0);" onclick="ss_removeDiv(\'<%- divAddName %><%- titleid %>\',\'<%- divContainerName %>\');">Remove</a></div>')({'divAddName': divAddName,'titleid': titleid,'formInputName': formInputName,'titleName': titleName,'divContainerName': divContainerName}));
11}
12
13function ss_removeDiv(divName,divcontainer)
14{
15	var obj = document.getElementById(divcontainer);
16	var removediv = document.getElementById(divName);
17	obj.removeChild(removediv);
18}
19
20/**
21 * "url" is one of these:
22 * /includes/ajax.inc.php?t=5&z=3&a=
23 * /includes/ajax.inc.php?t=5&z=2&a=
24 * /includes/ajax.inc.php?t=5&z=1&a=
25 * /includes/ajax.inc.php?t=70&z=1&a=
26 * /includes/ajax-no-auth.inc.php?t=2&q=
27 */
28function ss_search(url,searchContainerDivId,searchTextDivId,headerText)
29{
30	document.getElementById(searchContainerDivId).style.display = 'block';
31	document.getElementById(searchContainerDivId).innerHTML = _.template('<div class="<%- ss_headerClass %>"><%- headerText %></div><img src="<%- ss_loaderUrl %>" />')({'ss_headerClass': ss_headerClass,'headerText': headerText,'ss_loaderUrl': ss_loaderUrl});
32	var searchString = document.getElementById(searchTextDivId).value;
33	
34	$.get(url+searchString, function(data__safe)
35			{
36			document.getElementById(searchContainerDivId).innerHTML = data__safe;
37			}
38		);
39}
40
41function ss_checkEnter(e,url,searchContainerDivId,searchTextDivId,headerText)
42{
43	var key;
44	
45	if(window.event)
46		key = window.event.keyCode;     //IE
47	else
48		key = e.which;     //firefox
49	
50	if (key == 13)
51		{
52		ss_search(url,searchContainerDivId,searchTextDivId,headerText);
53		return false;
54		}
55	else
56		return true;
57}
58
59

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.