PageSourceSearch

https://www.beijing.gov.cn/images/jiucuo.js

js beijing.gov.cn collected 2026-09-24 15:17:54 UTC 1,479 bytes, 43 lines download raw bytes

1//在页面增加一个放置图标的区块
2if(!document.getElementById('_span_jiucuo'))
3	document.write("<span id='_span_jiucuo'></span>");
4
5//获取放置图标的区块
6var span_msg = document.getElementById("_span_jiucuo");
7
8//获取站点标识码
9var sitecode = document.getElementById("_jiucuo_").attributes["sitecode"].value;
10//生成纠错图标及点击链接
11span_msg.innerHTML = "<img onclick=\"Link('" + sitecode + "')\" style='margin:0;border:0;cursor: pointer;' src='https://www.beijing.gov.cn/images/zfwz_jiucuo_20260611.png?v="+sitecode+"'/>";
12
13//点击图标
14function Link(site_code) {
15	//获取该站点需要纠错页面的url地址
16
17	var url = getCurrUrl();
18	url = decodeURIComponent(url);
19	url = decodeURIComponent(url);
20	url = decodeURIComponent(url);
21	url = encodeURIComponent(url).replace(/%257B/g, '%7B');
22	url = url.replace(/%257D/g, '%7D');	
23	// var arr = url.split('?');
24	// var origin = encodeURIComponent(arr[0] + '?');
25	// url = arr.length > 1 ? origin + arr[1] : origin;
26	//跳转至纠错系统填写页面 
27	window.open("https://zfwzgl.www.gov.cn/exposure/jiucuo.html?site_code=" + site_code + "&url=" + url);
28}
29//获取该站点需要纠错页面的url地址
30function getCurrUrl() {
31	var url = "";
32	if (parent !== window) {
33		try {
34			url = window.top.location.href;
35		} catch (e) {
36			url = window.top.document.referrer;
37		}
38	}
39	if (url.length == 0)
40		url = document.location.href;
41
42	return url;
43}

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.