PageSourceSearch

https://shibuya-std.com/js/script.js

js shibuya-std.com collected 2026-10-05 11:12:05 UTC 791 bytes, 30 lines download raw bytes

1// JavaScript Document
2
3
4// タブレットでPCを表示する用
5
6var ua = navigator.userAgent;
7if ((ua.indexOf('iPhone') > 0) || ua.indexOf('iPod') > 0 || (ua.indexOf('Android') > 0 && ua.indexOf('Mobile') > 0)) {
8  document.write('<meta name="viewport" content="width=device-width">');
9} else {
10  document.write('<meta name="viewport" content="width=1120">');
11}
12
13
14// Copyright 年号表示
15
16// HTMLの記述 <script>ShowNowYear();</script>
17function ShowNowYear() {
18  var now = new Date();
19  var year = now.getFullYear();
20  document.write(year);
21}
22
23// HTMLの記述 <script>document.write(get_yearc(2018));</script>
24function get_yearc(y_def) {
25  var d_now = new Date();
26  var y_now = d_now.getFullYear();
27  var str = y_def;
28  if(y_def != y_now) str += "- " + y_now;
29  return str;
30}

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.