PageSourceSearch

https://archive.toyotafes.jp/assets/redirect.js?2025021801

js toyotafes.jp collected 2026-09-26 12:24:37 UTC 2,996 bytes, 115 lines download raw bytes

1/**
2 * jQuery Cookie plugin
3 *
4 * Copyright (c) 2010 Klaus Hartl (stilbuero.de)
5 * Dual licensed under the MIT and GPL licenses:
6 * http://www.opensource.org/licenses/mit-license.php
7 * http://www.gnu.org/licenses/gpl.html
8 *
9 */
10jQuery.cookie = function (key, value, options) {
11  // key and at least value given, set cookie...
12  if (arguments.length > 1 && String(value) !== "[object Object]") {
13    options = jQuery.extend({}, options);
14
15    if (value === null || value === undefined) {
16      options.expires = -1;
17    }
18
19    if (typeof options.expires === "number") {
20      var days = options.expires,
21        t = (options.expires = new Date());
22      t.setDate(t.getDate() + days);
23    }
24
25    value = String(value);
26
27    return (document.cookie = [
28      encodeURIComponent(key),
29      "=",
30      options.raw ? value : encodeURIComponent(value),
31      options.expires ? "; expires=" + options.expires.toUTCString() : "", // use expires attribute, max-age is not supported by IE
32      options.path ? "; path=" + options.path : "",
33      options.domain ? "; domain=" + options.domain : "",
34      options.secure ? "; secure" : "",
35    ].join(""));
36  }
37
38  // key and possibly options given, get cookie...
39  options = value || {};
40  var result,
41    decode = options.raw
42      ? function (s) {
43          return s;
44        }
45      : decodeURIComponent;
46  return (result = new RegExp(
47    "(?:^|; )" + encodeURIComponent(key) + "=([^;]*)"
48  ).exec(document.cookie))
49    ? decode(result[1])
50    : null;
51};
52
53/*=======process=====*/
54(function () {
55  function unsupported(ua) {
56    return (
57      ua.match(/iphone/i) ||
58      ua.match(/ipad/i) ||
59      ua.match(/ipod/i) ||
60      ua.match(/android/i) ||
61      ua.match(/blackberry/i)
62    );
63  }
64
65  (function (path, ua) {
66    if (!unsupported(ua)) {
67      return;
68    }
69    $("html").addClass("no-filter");
70
71    // 非対応端末向けの処理
72    // if (path === '/report/') {
73    //   location.pathname = '/report/smt/';
74    // }
75  })(location.pathname, navigator.userAgent);
76})();
77
78(function (path, cookie, key) {
79  if (path !== "/") {
80    return;
81  }
82  var cnt = cookie(key);
83  if (!cnt) {
84    cnt = 0;
85    cookie(key, ++cnt, { expires: 365 * 3 });
86    return;
87  }
88  cookie(key, ++cnt, { expires: 365 * 3 });
89  location.pathname = "/report";
90})(location.pathname, jQuery.cookie, "access_count_2015");
91
92window.addEventListener("DOMContentLoaded", (event) => {
93  let isReport = location.pathname == "/report/";
94  let isReportSp = location.pathname == "/report/sp/";
95  var ua = navigator.userAgent;
96  var isSp =
97        navigator.userAgent.match(/(iPhone|iPod|Android)/) ||
98        window.innerWidth <= 768;
99  if (isReportSp) {
100    if (!isSp) {
101              //横幅768px以下(スマホ)に適用させるJavaScriptを記述
102              location.href = "/report/";
103    }
104  }else if (isReport) {
105    if(isSp){
106      //横幅768px以下(スマホ)に適用させるJavaScriptを記述
107      location.href = "/report/sp/";
108    } 
109  }
110
111
112
113
114
115});

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.