PageSourceSearch

https://www.ec-store.net/js/sws/usr/operation/freeword_noindex.js

js ec-store.net collected 2026-09-25 18:39:06 UTC 2,522 bytes, 99 lines download raw bytes

1
2//ƒpƒ‰ƒ[ƒ^Žæ“¾
3var paramsearch = new URLSearchParams(window.location.search);
4var brand_array = paramsearch.getAll("brand");
5var category_array = paramsearch.getAll("category");
6var freeword = paramsearch.getAll("q");
7var genre = paramsearch.getAll("genre");
8var flg = 0;
9var noindex = jQuery("meta[content = 'noindex']");
10
11//“ú•tŽæ“¾
12var date = new Date();
13var year = date.getFullYear().toString();
14var month = (date.getMonth() + 1).toString().padStart(2, 0);;
15var day = date.getDate().toString().padStart(2, 0);
16var hours = date.getHours().toString().padStart(2, 0);
17var Minutes = date.getMinutes().toString().padStart(2, 0);
18var Seconds = date.getSeconds().toString().padStart(2, 0);
19var nowTime = year + month + day + hours + Minutes + Seconds;
20
21
22//ŒŸõƒy[ƒW‚̏ꍇ
23if(document.URL.match(/search.aspx/)) {
24
25	//ƒtƒŠ[ƒ[ƒhŒŸõ‚̏ꍇ
26	if(freeword.length !== 0 && freeword[0] !== ''){
27
28	//SWS‚̏ꍇ
29	if(genre[0] == 'SWS'){
30
31			//ƒJƒeƒSƒŠ[‚È‚µ‚̏ꍇ
32			if(category_array.length == 0){
33
34				//ƒuƒ‰ƒ“ƒh
35				if(brand_array.length == 1){
36
37					//jsonŽæ“¾
38					jQuery(document).ready(function () {
39						jQuery.getJSON("/js/sws/usr/operation/keyword.json", function(data){
40
41							//ƒpƒ‰ƒ[ƒ^‚̃uƒ‰ƒ“ƒh
42							for (var bcd = 0; bcd < brand_array.length; bcd++) {
43
44								for(var i in data){
45
46									if(data[i].brand_link == brand_array[bcd]){
47					
48										for(var j in data[i].childCategory){
49
50											if(freeword[0] == data[i].childCategory[j].name){
51
52												flg = 1;
53
54												if(nowTime <= data[i].childCategory[j].startdate && nowTime >= data[i].childCategory[j].enddate){
55
56													//noindexƒ^ƒO’ljÁ
57													jQuery("title").after('<meta name="robots" content="noindex">');
58												}
59											}
60										}
61
62										if(flg !== 1){
63
64											//noindexƒ^ƒO’ljÁ
65											if(noindex.length == 0){
66												jQuery("title").after('<meta name="robots" content="noindex">')
67											}
68										}
69									}
70								}
71							}
72						});
73					});
74				}else{
75
76					//noindexƒ^ƒO’ljÁ
77					if(noindex.length == 0){
78						jQuery("title").after('<meta name="robots" content="noindex">');
79					}
80				}
81			}else{
82				//noindexƒ^ƒO’ljÁ
83				if(noindex.length == 0){
84					jQuery("title").after('<meta name="robots" content="noindex">');
85				}
86			}
87		}else{
88			//noindexƒ^ƒO’ljÁ
89			if(noindex.length == 0){
90				jQuery("title").after('<meta name="robots" content="noindex">');
91			}
92		}
93	}
94}
95
96
97
98
99

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.