PageSourceSearch

https://system.kokonoshoten.com/v2/js/cart.js

js kokonoshoten.com collected 2026-10-06 13:17:28 UTC 1,355 bytes, 24 lines download raw bytes

1document.addEventListener('DOMContentLoaded', function () {
2    // リンクURL自動変換
3   const linkAutorepElements = document.querySelectorAll('a.link_autorep');
4    linkAutorepElements.forEach(function (element) {
5       const linkrep = cmn_schemeName + '://' + cmn_cartDomain + '/' + element.getAttribute('href').replace(/ccode/g, 'ccode=' + cmn_cartId);
6        element.setAttribute('href', linkrep);
7    });
8
9    // Collapse開閉アイコン
10   const tableCollapseLink = document.querySelectorAll('a.table_collapse_link');
11    tableCollapseLink.forEach(function (link) {
12        link.addEventListener('click', function () {            
13           const linkChevronLeft = document.querySelector('a[href="' + this.getAttribute('href') + '"] span.glyphicon-chevron-left');
14           const linkChevronDown = document.querySelector('a[href="' + this.getAttribute('href') + '"] span.glyphicon-chevron-down');
15            if (linkChevronLeft) {
16                linkChevronLeft.classList.remove('glyphicon-chevron-left');
17                linkChevronLeft.classList.add('glyphicon-chevron-down');
18            } else if (linkChevronDown) {
19                linkChevronDown.classList.remove('glyphicon-chevron-down');
20                linkChevronDown.classList.add('glyphicon-chevron-left');
21            }
22        });
23    });
24});

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.