PageSourceSearch

https://gaoyang.gov.cn/column.js

js gaoyang.gov.cn collected 2026-10-02 22:03:06 UTC 5,452 bytes, 159 lines download raw bytes

1var weburl = getWeburl();
2
3//Ò³ÃæÌø×ª
4function getCurrentPage(colid) {	
5	var current = 1;
6	if (document.all.pageto)	{
7		current = document.all.pageto.value*1;
8		current = current > document.all.maxPage.value*1? document.all.maxPage.value*1 : current;
9	}
10	var artname = document.all.artname.value;
11	artname = encodeURIComponent(artname);
12	var namecon = artname?("&artname="+artname):"";
13	// window.location = weburl+"column.jsp?id="+colid+"&current="+current+namecon;
14	// var url = "/col/" + colid + "/index" + (current == 1 ? "" : "_" + current) + ".html";
15	var url = "./index" + (current == 1 ? "" : "_" + current) + ".html";
16	var url2 = weburl + "/column.jsp?id=" + colid + "&current=" + current + namecon;
17	gotoColumnPageUrl(url, url2);
18}
19
20//Ìø×ªÖ¸¶¨Ò³
21function getNumPage(colid, n) {
22	var current = n > 1 ? n : 1;
23	var artname = document.all.artname.value;
24	artname = encodeURIComponent(artname);
25	var namecon = artname?("&artname="+artname):"";
26	// window.location = weburl+"column.jsp?id="+colid+"&current="+current+namecon;
27	// var url = "/col/" + colid + "/index" + (current == 1 ? "" : "_" + current) + ".html";
28	var url = "./index" + (current == 1 ? "" : "_" + current) + ".html";
29	var url2 = weburl + "/column.jsp?id=" + colid + "&current=" + current + namecon;
30	gotoColumnPageUrl(url, url2);
31}
32
33//Ê×Ò³
34function funFirst(colid) {
35	if (document.all.pageindex)	{
36		//document.all.pageindex.options[0].selected=true;
37	}
38	var artname = document.all.artname.value;
39	artname = encodeURIComponent(artname);
40	var namecon = artname?("&artname="+artname):"";
41	// window.location = weburl+"column.jsp?id="+colid+"&current=1"+namecon;
42	// var url = "/col/" + colid + "/index.html";
43	var url = "./index.html";
44	var url2 = weburl + "/column.jsp?id=" + colid + "&current=1" + namecon;
45	gotoColumnPageUrl(url, url2);
46}
47
48//ĩҳ
49function funEnd(end,colid) {
50	if (document.all.pageindex)	{
51		//document.all.pageindex.options[end].selected=true;
52	}
53	var artname = document.all.artname.value;
54	artname = encodeURIComponent(artname);
55	var namecon = artname?("&artname="+artname):"";
56	// window.location = weburl+"column.jsp?id="+colid+"&current="+end+namecon;
57	// var url = "/col/" + colid + "/index_" + end + ".html";
58	var url = "./index_" + end + ".html";
59	var url2 = weburl + "/column.jsp?id=" + colid + "&current=" + end + namecon;
60	gotoColumnPageUrl(url, url2);
61}
62
63//ÉÏÒ»Ò³
64function funPre(colid) {
65	var current = 1;
66	if (document.all.pageindex)	{
67		current = document.all.pageindex.value*1-1;	
68	}
69	var artname = document.all.artname.value;
70	artname = encodeURIComponent(artname);
71	var namecon = artname?("&artname="+artname):"";
72	current = current<1?1:current;
73	// window.location = weburl+"column.jsp?id="+colid+"&current="+current+namecon;
74	// var url = "/col/" + colid + "/index" + (current == 1 ? "" : "_" + current) + ".html";
75	var url = "./index" + (current == 1 ? "" : "_" + current) + ".html";
76	var url2 = weburl + "/column.jsp?id=" + colid + "&current=" + current + namecon;
77	gotoColumnPageUrl(url, url2);
78}
79
80//ÏÂÒ»Ò³
81function funNext(colid) {
82	var current = 1;
83	if (document.all.pageindex)	{
84		current = document.all.pageindex.value*1+1;
85		current = current > document.all.maxPage.value*1? document.all.maxPage.value*1 : current;
86	}
87	var artname = document.all.artname.value;
88	artname = encodeURIComponent(artname);
89	var namecon = artname?("&artname="+artname):"";
90	// window.location = weburl+"column.jsp?id="+colid+"&current="+current+namecon;
91	// var url = "/col/" + colid + "/index" + (current == 1 ? "" : "_" + current) + ".html";
92	var url = "./index" + (current == 1 ? "" : "_" + current) + ".html";
93	var url2 = weburl + "/column.jsp?id=" + colid + "&current=" + current + namecon;
94	gotoColumnPageUrl(url, url2);
95}
96
97function changeSearchKey(obj) {
98	var artnametopobj = document.all.artnametop;
99	if (artnametopobj) {
100		artnametopobj.value = obj.value;
101	}
102	var artnameobj = document.all.artname;
103	if (artnameobj) {
104		artnameobj.value = obj.value;
105	}
106}
107
108function checkNum(o) {
109	if(o.value.length==1){
110		o.value=o.value.replace(/[^1-9]/g,'')
111	}else{
112		o.value=o.value.replace(/\D/g,'')
113	}
114	if (!o.value) {
115		o.value = "";
116	}
117	if (o.value*1 > document.all.maxPage.value*1) {
118		o.value = document.all.maxPage.value;
119	}
120}
121
122function getWeburl() {
123	var weburl = "";
124	var thisLink = document.location.href.replace("http://", "").replace("https://", "").split("/");
125	if (!thisLink || thisLink.length <= 2) { // http://www.sjz.gov.cn/column.jsp?id=1596014099904&current=443
126		return weburl;
127	}
128	if (thisLink[1] == "col") { // http://www.sjz.gov.cn/col/1596014099904/index.html
129		return weburl;
130	}
131	// µÚÈý¸öλÖðüº¬col£º´ÓÊôÓÚÖ÷Õ¾
132	// http://www.sjz.gov.cn/czj/column.jsp?id=1592959611752&current=2
133	// http://www.sjz.gov.cn/czj/col/1592959611752/index_20.html
134	if (thisLink[2].includes("col")) {
135		weburl = "/" + thisLink[1];
136	}
137	return weburl;
138}
139
140function gotoColumnPageUrl(url, url2) {
141    $.ajax({
142        type: "GET",
143        cache: false,
144        url: url,
145        data: "",
146        success: function(data) {
147        	// alert("success");
148        	window.location = data.indexOf("filter.html") > -1 ? url2 : url;
149        },
150        error: function() {
151        	// alert("error");
152        	window.location = url2;
153        }
154    });
155}
156
157function getHostUrl() {
158	return window.location.host;
159}

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.