PageSourceSearch

https://media.consumeraffairs.com/static/js/ca_sg_content_base_toggle.9de520027bda.js

js consumeraffairs.com collected 2026-09-24 06:23:41 UTC 1,243 bytes, 1 lines download raw bytes

1(()=>{"use strict";(()=>{class e{static get CONTENT_SELECTOR(){return".js-content-base-toggle"}static get END_OF_CONTENT_SELECTOR(){return".js-content-base-toggle-end"}static get TOGGLE_CONTENT_BTN_SELECTOR(){return".js-content-base-toggle-btn"}static get HIDE_CLASS(){return"ca-hide"}constructor(e){this._element=e,this._toggleBtnState=!1,this._init()}_init(){this._setElements(),this._setIntersectionObserver()}_setElements(){this._endOfContentEl=this._element.querySelector(e.END_OF_CONTENT_SELECTOR),this._toggleBtnEl=this._element.querySelector(e.TOGGLE_CONTENT_BTN_SELECTOR)}_setIntersectionObserver(){const e={root:this._element};this._observer=new window.IntersectionObserver(this._handleObserverChange.bind(this),e),this._observer.observe(this._endOfContentEl)}_handleObserverChange(e){this._isExpanded=this._element.querySelector(".js-expanded"),e.forEach(e=>{e.isIntersecting&&!this._isExpanded?this._toggleShowMoreBtn(!1):this._toggleShowMoreBtn(!0)},this)}_toggleShowMoreBtn(t){const s=t?"remove":"add";this._toggleBtnEl.classList[s](e.HIDE_CLASS)}}const t=()=>{document.querySelectorAll(e.CONTENT_SELECTOR).forEach(t=>{new e(t)})};t(),window.addEventListener("com.consumeraffairs.ca_sg_content_base_toggle.init",()=>t())})()})();

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.