PageSourceSearch

https://nakanoshima-terrace.com/js/view_timer.js

js nakanoshima-terrace.com collected 2026-10-08 11:32:34 UTC 585 bytes, 23 lines download raw bytes

1//指定の日時に表示・非表示(jquery.min.js必要)
2$(document).ready(function() {
3  $(".view_timer").each(function(index, target) {
4    var startDate = $(this).attr("data-start-date");
5    var endDate = $(this).attr("data-end-date");
6    var nowDate = new Date();
7
8    if (startDate) {
9      startDate = new Date(startDate);
10    } else {
11      startDate = nowDate;
12    }
13    if (endDate) {
14      endDate = new Date(endDate);
15    }
16
17    if (startDate <= nowDate && (!endDate || nowDate <= endDate)) {
18      $(this).show();
19    } else {
20      $(this).hide();
21    }
22  });
23});

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.