PageSourceSearch

https://www.city.yamaga.kumamoto.jp/dynamic/common/js/aiRagChat.js

js city.yamaga.kumamoto.jp collected 2026-10-02 10:32:09 UTC 855 bytes, 27 lines download raw bytes

1var iframe = document.createElement("iframe");
2//AIRAGチャットのURL
3iframe.src = aiRagChatUrl;
4iframe.title = "AIチャット";
5iframe.id = "NAAIRagChatIframe";
6iframe.className = "chatMode-largeIcon";
7iframe.scrolling = "no";
8iframe.allow = "clipboard-write; clipboard-read";
9
10document.body.appendChild(iframe);
11
12window.addEventListener("message", function (event) {
13    //console.log("event.data:", event.data);
14
15    // メッセージの内容を解析
16    const iframe = document.getElementById("NAAIRagChatIframe");
17    const data = event.data;
18    if (data.mode) {
19        iframe.style.display = "none";
20        setTimeout(() => {
21            // チャットコンテナ(全体)を表示
22            iframe.style.display = "block";
23        }, 300);
24
25        iframe.className = "chatMode-" + data.mode;
26    }
27});

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.