PageSourceSearch

https://tosei-hotel.co.jp/chibachuo/chat.js

js tosei-hotel.co.jp collected 2026-10-04 12:16:18 UTC 1,489 bytes, 51 lines download raw bytes

1console.log('talkappi');
2
3// talkappi CHATBOT スクリプト読み込み
4(function () {
5  console.log('talkappi CHATBOTスクリプトテスト開始');
6
7  const href = window.location.href;
8
9  let tid = "tosei-hotel-chibachuo-hp";
10
11  if (href.includes("https://tosei-hotel-co-jp-e.athp.transer.com/chibachuo/")) {
12    tid = "tosei-hotel-chibachuo-hp-en";
13    console.log('e');
14
15  } else if (href.includes("https://tosei-hotel-co-jp-c.athp.transer.com/chibachuo/")) {
16    tid = "tosei-hotel-chibachuo-hp-cn";
17    console.log('c');
18
19  } else if (href.includes("https://tosei-hotel-co-jp-t.athp.transer.com/chibachuo/")) {
20    tid = "tosei-hotel-chibachuo-hp-tw";
21    console.log('tw');
22
23  } else if (href.includes("https://tosei-hotel-co-jp-k.athp.transer.com/chibachuo/")) {
24    tid = "tosei-hotel-chibachuo-hp-kr";
25    console.log('k');
26
27  }
28  console.log('tid =', tid);
29
30  const targetSrc =
31    "https://bot.talkappi.com/assets/talkappi/talkappi.js?tid=" + encodeURIComponent(tid);
32
33  const inject = () => {
34    const already = Array.from(document.scripts).some((s) => s.src === targetSrc);
35    if (already) return;
36
37    const s = document.createElement("script");
38    s.src = targetSrc;
39    s.defer = true;
40    document.body.appendChild(s);
41  };
42
43  // body がまだ無い可能性に備える
44  if (document.body) {
45    inject();
46  } else {
47    window.addEventListener("DOMContentLoaded", inject, { once: true });
48  }
49  console.log('talkappi CHATBOTスクリプトテスト');
50
51})();

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.