PageSourceSearch

https://www.city.wakayama.wakayama.jp/_template_/_site_/_default_/_res/js/id.js

js city.wakayama.wakayama.jp collected 2026-10-02 05:04:41 UTC 1,186 bytes, 46 lines download raw bytes

1(function(){
2	var $ = FI.jQuery;
3
4	$( function() {
5		$( '#idform' ).submit(
6			function() {
7			var errFlag=0;            
8			var pageurl="";
9			var findText = document.idform.idtxt.value; // 検索する文字
10			if(findText.length != 7){
11				errFlag=1; 
12			}else if(findText.match(/[^0-9]+/)){ 
13				errFlag=1; 
14			}
15
16			if(errFlag == 1){
17				$( '#idresult' ).remove();
18				$( '.navidetail' ).append( '<div id="idresult"><p>ID番号は半角数字7桁で入力してください。</p></div>' );
19			}else{
20				/*検索ワード取得*/
21				$.ajax({
22					type: "GET",
23					scriptCharset: 'utf-8',
24					url: "./allpages.json",
25					dataType : 'json',
26					success: function(data) {
27					pageurl=data[findText];
28						if(pageurl != null){
29							window.open(pageurl,"_self");
30							}else{
31							$( '#idresult' ).remove();
32								 $( '.navidetail' ).append( '<div id="idresult"><p>該当のページはありません。</p></div>' );
33							}
34						},
35						error: function(){
36							$( '#idresult' ).remove();
37							$( '.navidetail' ).append( '<div id="idresult"><p>ID検索マスタファイル取得エラー</p></div>' );
38						}
39				});
40			}
41
42			return false;
43			}
44		);
45	});
46})();

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.