PageSourceSearch

https://uppromote.com/wp-content/themes/uppromote-website/template…/assets/scripts.js?ver=2.6.7

js uppromote.com collected 2026-10-02 02:41:22 UTC 1,134 bytes, 33 lines download raw bytes

1/* Round11 homepage — Testimonials carousel
2   Flashes the hover overlay on each card the first time it slides into the carousel viewport. */
3(function () {
4    'use strict';
5
6    function init() {
7        var items = document.querySelectorAll('.testimonials .carousel-item');
8        if (!items.length || !('IntersectionObserver' in window)) return;
9
10        var SHOW_MS = 2500;
11
12        var observer = new IntersectionObserver(function (entries) {
13            entries.forEach(function (entry) {
14                if (!entry.isIntersecting) return;
15                var el = entry.target;
16                el.classList.add('is-in-view');
17                setTimeout(function () { el.classList.remove('is-in-view'); }, SHOW_MS);
18                observer.unobserve(el);
19            });
20        }, {
21            root: document.querySelector('.testimonials .carousel-wrapper'),
22            threshold: 0.5
23        });
24
25        items.forEach(function (item) { observer.observe(item); });
26    }
27
28    if (document.readyState === 'loading') {
29        document.addEventListener('DOMContentLoaded', init);
30    } else {
31        init();
32    }
33})();

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.