PageSourceSearch

https://www.nongjx.com/js/index2020/search.js?v=2024

js nongjx.com collected 2026-10-06 13:01:35 UTC 2,818 bytes, 76 lines download raw bytes

1$(function(){
2//原 init 里的JS代码放在这里,, 调用方法
3		utils.select(".select-top", ".select-bot");
4					var searchUrl = "https://www.nongjx.com/chanpin-0_p0.html";
5					$(".select-bot").find("li").click(function() {
6						var str = $(this).text();
7						switch (str) {
8							case "产品":
9								searchUrl = "https://www.nongjx.com/chanpin-0_p0.html";
10								break;
11							case "供应":
12								searchUrl = "https://supply.nongjx.com/sale/t0_p0/";
13								break;
14							case "求购":
15								searchUrl = "https://www.nongjx.com/offer_buy/t0/list_p0.html";
16								break;
17							case "网课":
18								searchUrl = "https://webinar.nongjx.com/course/list_chid0_tid0_t0_fid0_ch0_fldsort00.html";
19								break;
20							case "资讯":
21								searchUrl = "https://www.nongjx.com/news/t0/list_p0.html";
22								break;
23							case "企讯":
24								searchUrl = "https://www.nongjx.com/company_news/t0/list_p0.html";
25								break;
26							case "企业":
27								searchUrl = "https://www.nongjx.com/company/a_t0/list_p0.html";
28								break;
29							case "展会":
30								searchUrl = "https://www.nongjx.com/exhinew/t0/list_p0.html";
31								break;
32							case "专题":
33								searchUrl = "https://www.nongjx.com/topics/t0/list.html";
34								break;
35							case "技术":
36								searchUrl = "https://www.nongjx.com/tech_news/t0/list_p0.html";
37								break;
38							case "资料":
39								searchUrl = "https://www.nongjx.com/technology/t0/list_p0.html";
40								break;
41							case "样本":
42								searchUrl = "https://www.nongjx.com/sample/t0/list_p0.html";
43								break;
44							case "品牌":
45								searchUrl = "https://www.nongjx.com/brands/t0/list_p0.html";
46								break;
47							case "视频":
48								searchUrl = "https://www.nongjx.com/video/t0/list_p0.html";
49								break;
50							default:
51								searchUrl = "https://www.nongjx.com/chanpin-0_p0.html";
52								break;
53						}
54					});
55	utils.focusBlur($("input[name='K']"));
56	$("#searchForm").submit(function () {
57		var searchStr = $(this).find("input").val();
58		if(searchStr=="水质分析65项-点右侧搜索-格林凯瑞搞定复杂水样!"&&searchUrl.indexOf("chanpin")>0)
59		{
60			window.open("http://www.glkr17.com/Products-17100856.html");
61			return false;
62		}
63		searchStr = searchStr.replace("水质分析65项-点右侧搜索-格林凯瑞搞定复杂水样!", "");
64		if (searchStr == "请输入关键字") {
65			searchStr = "";
66		}
67		if (searchUrl.indexOf('chanpin') > -1) {
68			var classidBykey = Vivian.GetClassIDByKey(searchStr).value;
69			searchUrl = "/chanpin-" + classidBykey + "_p0.html";
70		}
71		$(this).find("input").val(searchStr);
72		$(this).attr("method", "post");
73		$(this).attr("target", "_blank");
74		$(this).attr("action", searchUrl);
75	});
76})

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.