PageSourceSearch

https://hospitalitychain.com/wp-content/themes/glocal-child/js/company-category-top-description.js

js hospitalitychain.com collected 2026-10-10 01:17:01 UTC 1,047 bytes, 27 lines download raw bytes

1document.addEventListener("DOMContentLoaded", function() {
2    // Read More / Read Less for .company-category-top-description blocks
3    var containers = document.querySelectorAll(".company-category-top-description");
4    if (!containers.length) return;
5
6    containers.forEach(function(container) {
7        var more = container.querySelector(".read-more-btn");
8        var less = container.querySelector(".read-less-btn");
9        var full = container.querySelector(".full-desc");
10
11        if (more && less && full) {
12            more.addEventListener("click", function(e) {
13                e.preventDefault();
14                full.style.display = "block";
15                more.style.display = "none";
16                less.style.display = "inline-block";
17            });
18
19            less.addEventListener("click", function(e) {
20                e.preventDefault();
21                full.style.display = "none";
22                less.style.display = "none";
23                more.style.display = "inline-block";
24            });
25        }
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.