PageSourceSearch

https://japan-yakage.jp/common/js/common.js

js japan-yakage.jp collected 2026-10-06 14:20:38 UTC 2,364 bytes, 72 lines download raw bytes

1(function () {
2  var s = document.getElementsByTagName("script");
3  var d = s[s.length - 1].src.substring(0, s[s.length - 1].src.lastIndexOf("/") + 1);
4  if (!browserDistinction()) {
5    d = URLdecode(d);
6  } for (var i = 0; i < arguments.length; i++) {
7    document.write(unescape('%3Cscript type="text/javascript" src="' + d + arguments[i] + '" charset="utf-8"%3E%3C/script%3E'));
8  }
9}
10)(
11  //ここにインポートのjsファイルを追加
12  'plugins/jquery-3.4.1.min.js',
13  'plugins/jquery.easing.1.4.1.js',
14  'plugins/jquery.cookie.js',
15  'plugins/vue.2.6.10.min.js',
16  'init.js'
17);
18
19//URLdecode ※以下は触らないで下さい。
20function URLdecode(_dat) {
21  _dat = _dat.replace(/\+/g, "\x20");
22  _dat = _dat.replace(/%([a-fA-F0-9][a-fA-F0-9])/g,
23    function (_tmp, _hex) { return String.fromCharCode(parseInt(_hex, 16)); });
24  return packChar(this.toUTF16(this.unpackUTF16(_dat)));
25}
26function packChar(_utf16) {
27  var i, str = "";
28  for (i in _utf16) str += String.fromCharCode(_utf16[i]);
29  return str;
30}
31function toUTF16(_utf8) {
32  var utf16 = [];
33  var idx = 0;
34  var i, s;
35  for (i = 0; i < _utf8.length; i++ , idx++) {
36    if (_utf8[i] <= 0x7f) utf16[idx] = _utf8[i];
37    else {
38      if ((_utf8[i] >> 5) == 0x6) {
39        utf16[idx] = ((_utf8[i] & 0x1f) << 6)
40          | (_utf8[++i] & 0x3f);
41      }
42      else if ((_utf8[i] >> 4) == 0xe) {
43        utf16[idx] = ((_utf8[i] & 0xf) << 12)
44          | ((_utf8[++i] & 0x3f) << 6)
45          | (_utf8[++i] & 0x3f);
46      }
47      else {
48        s = 1;
49        while (_utf8[i] & (0x20 >>> s)) s++;
50        utf16[idx] = _utf8[i] & (0x1f >>> s);
51        while (s-- >= 0) utf16[idx] = (utf16[idx] << 6) ^ (_utf8[++i] & 0x3f);
52      }
53    }
54  }
55  return utf16;
56}
57function unpackUTF16(_str) {
58  var i, utf16 = [];
59  for (i = 0; i < _str.length; i++) utf16[i] = _str.charCodeAt(i);
60  return utf16;
61}
62
63//ユーザーエージェント判別 新規ブラウザはココに追加
64function browserDistinction() {
65  if (navigator.userAgent.indexOf("Opera") != -1) { return true; }
66  else if (navigator.userAgent.indexOf("MSIE") != -1) { return true; }
67  else if (navigator.userAgent.indexOf("Firefox") != -1) { return false; }
68  /*  else if(navigator.userAgent.indexOf("Netscape") != -1){ return false; }*/
69  else if (navigator.userAgent.indexOf("Safari") != -1) { return false; }
70  else { return false; }
71}
72

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.