PageSourceSearch

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

js ec-store.net collected 2026-09-25 18:38:53 UTC 4,027 bytes, 92 lines download raw bytes

1jQuery(function(){
2	var date = new Date();
3	var year = date.getFullYear().toString();
4	var month = (date.getMonth() + 1).toString().padStart(2, 0);;
5	var day = date.getDate().toString().padStart(2, 0);
6	var hours = date.getHours().toString().padStart(2, 0);
7	var Minutes = date.getMinutes().toString().padStart(2, 0);
8	var Seconds = date.getSeconds().toString().padStart(2, 0);
9	var nowTime = year + month + day + hours + Minutes + Seconds;
10	var shopdata = jQuery('#zs-info-genre').data('genre');
11	var pathname= location.pathname;
12	var sitePosision = "";
13	var topicsCount = 0;
14	var brank = "target=\"_blank\"";
15	//ブランド
16	jQuery.getJSON("/campaign/topics/json/echo.json", function(topicsbanner){
17		for(var i in topicsbanner){
18			if(pathname.indexOf("/sws/r/rSWS") > -1){
19				sitePosision = "top";
20			}else{
21				sitePosision = "other";
22			};
23			if(topicsbanner[i].brand == "SHEL'TTER"){
24				if(sitePosision == "top"){
25					for(var j in topicsbanner[i].pages){
26						if(nowTime >= topicsbanner[i].pages[j].startdate && nowTime <= topicsbanner[i].pages[j].enddate){
27							//別タブで展開したい場合
28							if(topicsbanner[i].pages[j].remarks === brank){
29								jQuery('#rt_sp_rule_detail_2').append('<li class="col">'+
30																'<div class="inner" tabindex="-1">'+
31																'<a href="' + topicsbanner[i].pages[j].link + '" target="_blank">' +
32																'<figure class="img" tabindex="-1">'+
33																'<img src="'+ topicsbanner[i].pages[j].image +'" style="max-width:100%; display:block; margin:0 auto 5px;" alt="' + topicsbanner[i].pages[j].title + '"  tabindex="-1">'+
34																' </figure>'+
35																'</a>'+
36																'</div>'+
37																'</li>');
38							//通常・現行通り
39							}else{
40								jQuery('#rt_sp_rule_detail_2').append('<li class="col">'+
41																'<div class="inner" tabindex="-1">'+
42																'<a href="' + topicsbanner[i].pages[j].link + '">' +
43																'<figure class="img" tabindex="-1">'+
44																'<img src="'+ topicsbanner[i].pages[j].image +'" style="max-width:100%; display:block; margin:0 auto 5px;" alt="' + topicsbanner[i].pages[j].title + '"  tabindex="-1">'+
45																' </figure>'+
46																'</a>'+
47																'</div>'+
48																'</li>');
49							}
50							topicsCount = topicsCount + 1;
51							if(topicsCount == 4){
52								break;
53							};
54						};
55					};
56				}else{
57					for(var j in topicsbanner[i].pages){
58						if(nowTime >= topicsbanner[i].pages[j].startdate && nowTime <= topicsbanner[i].pages[j].enddate){
59							//別タブで展開したい場合
60							if(topicsbanner[i].pages[j].remarks === brank){
61							jQuery('#detial_topics').append('<li class="col">'+
62																'<div class="inner" tabindex="-1">'+
63																'<a href="' + topicsbanner[i].pages[j].link + '" target="_blank">' +
64																'<figure class="img" tabindex="-1">'+
65																'<img src="'+ topicsbanner[i].pages[j].image +'" style="max-width:100%; display:block; margin:0 auto 5px;" alt="' + topicsbanner[i].pages[j].title + '"  tabindex="-1">'+
66																' </figure>'+
67																'</a>'+
68																'</div>'+
69																'</li>');
70							//通常・現行通り
71							}else{
72							jQuery('#detial_topics').append('<li class="col">'+
73																'<div class="inner" tabindex="-1">'+
74																'<a href="' + topicsbanner[i].pages[j].link + '">' +
75																'<figure class="img" tabindex="-1">'+
76																'<img src="'+ topicsbanner[i].pages[j].image +'" style="max-width:100%; display:block; margin:0 auto 5px;" alt="' + topicsbanner[i].pages[j].title + '"  tabindex="-1">'+
77																' </figure>'+
78																'</a>'+
79																'</div>'+
80																'</li>');
81							}
82							topicsCount = topicsCount + 1;
83							if(topicsCount == 4){
84								break;
85							};
86						};
87					};
88				};
89			};
90		};
91	});
92});

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.