PageSourceSearch

http://www.moe.gov.cn/images/common.js

js moe.gov.cn collected 2026-09-24 08:39:30 UTC 4,113 bytes, 87 lines download raw bytes

1// var gwdshare = gwdshare || { version: "1.0", udata: "type=tools&uid=GWD-801513", pageFilter: "", jsLoaded: false };
2// (function () {
3// 	function async_load() {
4// 		var s = document.createElement('script');
5// 		s.type = 'text/javascript';
6// 		s.async = true;
7// 		s.src = '//static.gridsumdissector.com/zheng_fen_xiang/scripts/gwdshareasync.min.js';
8// 		var x = document.getElementsByTagName('script'), y = x[x.length - 1];
9// 		y.parentNode.appendChild(s);
10// 	}
11// 	if (!gwdshare.jsLoaded) {
12// 		if (window.attachEvent) window.attachEvent('onload', async_load);
13// 		else window.addEventListener('load', async_load, false);
14// 		gwdshare.jsLoaded = true;
15// 	}
16	
17// })();
18
19function pageNum(_nPageCount, _nCurrIndex, _sPageName, _sPageExt){
20	var nCurrIndex = _nCurrIndex || 0;
21	if(nCurrIndex == 0)
22		document.write("<span style='color:#4B4B4B'>1</span>&nbsp;");
23	else
24		document.write("<a style='font-size:12px;color:#4B4B4B' href=\""+_sPageName+"."+_sPageExt+"\">1</a>&nbsp;");
25	
26	for(var i=1; i<_nPageCount; i++){
27		if(nCurrIndex == i)
28			document.write("<span style='color:#4B4B4B'>"+(i+1)+"</span>&nbsp;");
29		else
30			document.write("<a style='font-size:12px;color:#4B4B4B' href=\""+_sPageName+"_" + i + "."+_sPageExt+"\">"+(i+1)+"</a>&nbsp;");
31	}
32	return "";
33}
34		
35function createContPageHTML(_nPageCount, _nCurrIndex, _sPageName, _sPageExt,_pageDom){
36	if(_nPageCount == null || _nPageCount<=1){
37		document.getElementById(_pageDom).style.display='none';
38		return;
39	}
40	
41	var nCurrIndex = _nCurrIndex || 0;
42	
43	if (_nPageCount==2){
44		if(nCurrIndex == 0){
45			document.write("<span style='color:#4B4B4B'>1</span>&nbsp;<a style='font-size:12px;color:#4B4B4B' href=\""+_sPageName+"_" + (nCurrIndex+1) + "."+_sPageExt+"\">2</a>&nbsp;<a style='font-size:10.5pt;color:#4B4B4B;text-decoration:none;' href=\""+_sPageName+"_" + (nCurrIndex+1) + "."+_sPageExt+"\">【下一页】</a>&nbsp;");
46		}else if (nCurrIndex == 1){
47			document.write("<a style='font-size:10.5pt;color:#4B4B4B;text-decoration:none;' href=\""+_sPageName+ "."+_sPageExt+"\">【上一页】</a>&nbsp;<a style='font-size:12px;color:#4B4B4B' href=\""+_sPageName+ "."+_sPageExt+"\">1</a>&nbsp;<span style='color:#4B4B4B'>2</span>&nbsp;");
48		}
49	}else{
50		if(nCurrIndex == 0){
51			document.write(pageNum(_nPageCount, _nCurrIndex, _sPageName, _sPageExt));
52			document.write("<a style='font-size:10.5pt;color:#4B4B4B;text-decoration:none;' href=\""+_sPageName+"_" + (nCurrIndex+1) + "."+_sPageExt+"\">【下一页】</a>&nbsp;");
53		}else if (nCurrIndex == 1){
54			document.write("<a style='font-size:10.5pt;color:#4B4B4B;text-decoration:none;' href=\""+_sPageName+"."+_sPageExt+"\">【上一页】</a>&nbsp;");
55			document.write(pageNum(_nPageCount, _nCurrIndex, _sPageName, _sPageExt));
56			document.write("<a style='font-size:10.5pt;color:#4B4B4B;text-decoration:none;' href=\""+_sPageName+"_" + (nCurrIndex+1) + "."+_sPageExt+"\">【下一页】</a>&nbsp;");
57		}else if(nCurrIndex == (_nPageCount-1)){
58			document.write("<a style='font-size:10.5pt;color:#4B4B4B;text-decoration:none;' href=\""+_sPageName+"_" + (nCurrIndex-1) + "."+_sPageExt+"\">【上一页】</a>&nbsp;");
59			document.write(pageNum(_nPageCount, _nCurrIndex, _sPageName, _sPageExt));
60		}else{
61			document.write("<a style='font-size:10.5pt;color:#4B4B4B;text-decoration:none;' href=\""+_sPageName+"_" + (nCurrIndex-1) + "."+_sPageExt+"\">【上一页】</a>&nbsp;");
62			document.write(pageNum(_nPageCount, _nCurrIndex, _sPageName, _sPageExt));
63			document.write("<a style='font-size:10.5pt;color:#4B4B4B;text-decoration:none;' href=\""+_sPageName+"_" + (nCurrIndex+1) + "."+_sPageExt+"\">【下一页】</a>&nbsp;");
64		}
65	} 
66}
67
68$(function(){
69	
70	// 创建二维码
71	if($('#moeCode')[0]){
72		var qrcode = new QRCode($('#moeCode')[0], {
73			width : 150,
74			height : 150
75		});
76		qrcode.makeCode(window.location.href);
77		if(typeof($('#moeCode').find('img')) === 'object'){
78			$('#moeCode').append('扫一扫分享本页');
79		}		
80	}
81
82	
83		
84	if($('.relnews dd').text()!=''){
85		$('.relnews').show();
86	}
87});

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.