PageSourceSearch

https://www.kojima.net/excludes/KPC/js/releacedate.js

js kojima.net collected 2026-10-02 03:22:57 UTC 949 bytes, 42 lines download raw bytes

1//画面初期処理
2$(function(){
3
4	classclose();
5
6
7	function classclose() {
8
9	var limit = new Date();
10
11	//1年後
12	limit.setFullYear(limit.getFullYear() + 1);
13
14	limit = sampleDate(limit, 'YYYY/MM/DD');
15
16	limit = new Date(limit)
17
18	var CLASS = document.getElementsByClassName("release date");
19
20		for(i=0;i<CLASS.length;i++) {
21
22			var releaceday = new Date(CLASS[i].innerText.replace("発売日:","").replace("年","/").replace("月","/").replace("日","/").replace("上旬","01").replace("中旬","01").replace("下旬","01"));
23			
24			if (limit < releaceday) {
25				CLASS[i].style.display = "none";
26			} else {
27				CLASS[i].style.display="inline-block";
28			}
29		}
30
31	}
32
33	function sampleDate(date, format) {
34	 
35	    format = format.replace(/YYYY/, date.getFullYear());
36	    format = format.replace(/MM/, date.getMonth() + 1);
37	    format = format.replace(/DD/, date.getDate());
38	 
39	    return format;
40	}
41
42});

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.