PageSourceSearch

https://octax.finance/wp-content/themes/custom/assets/js/pages/home.js?ver=1768318442

js octax.finance collected 2026-10-08 23:37:01 UTC 2,793 bytes, 1 lines download raw bytes

1(()=>{"use strict";document.addEventListener("DOMContentLoaded",()=>{const e=document.querySelector(".home-hero");e&&e.classList.add("home-hero--ready");const t=document.querySelector(".ds-reviews-carousel");if(t){const e=t.querySelector(".ds-reviews-list"),o=t.querySelector(".ds-reviews-arrow--prev"),r=t.querySelector(".ds-reviews-arrow--next"),n=null==e?void 0:e.querySelector('[role="listitem"]');if(e&&n&&o&&r){const t=()=>{const t=window.getComputedStyle(e),o=parseFloat(t.columnGap||t.gap||"0");return n.getBoundingClientRect().width+o},i=()=>{const t=e.scrollWidth-e.clientWidth,n=e.scrollLeft<=1,i=e.scrollLeft>=t-1;o.disabled=n,r.disabled=i};o.addEventListener("click",()=>{e.scrollBy({left:-t(),behavior:"smooth"})}),r.addEventListener("click",()=>{e.scrollBy({left:t(),behavior:"smooth"})}),e.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i),i()}}!function(){const e=document.querySelector(".front-markets__list"),t=document.querySelector(".front-markets__arrow--prev"),o=document.querySelector(".front-markets__arrow--next"),r=null==e?void 0:e.querySelector(".front-markets__card"),n=document.querySelector("#front-markets-chart"),i=e?Array.from(e.querySelectorAll(".front-markets__card")):[],s=document.querySelector(".front-markets__info-title"),c=document.querySelector(".front-markets__info-text"),l=document.querySelector(".ds-tabs-select__control");if(!e||!r)return;const a=e=>{var t;i.forEach(e=>e.classList.remove("is-active")),e.classList.add("is-active");const o=e.dataset.symbol;var r;(e=>{n&&e&&window.TradingView&&(n.innerHTML="",new window.TradingView.widget({container_id:n.id,symbol:e,interval:"D",timezone:"Etc/UTC",theme:"light",style:"1",locale:"en",enable_publishing:!1,hide_top_toolbar:!0,allow_symbol_change:!1,save_image:!1,autosize:!0,hide_legend:!0}))})(o),l&&o&&(l.value=o),s&&(s.textContent=(null===(t=e.querySelector(".front-markets__name"))||void 0===t?void 0:t.textContent)||""),c&&(c.textContent=e.dataset.description||"Live insights and price action for ".concat((null===(r=e.querySelector(".front-markets__name"))||void 0===r?void 0:r.textContent)||"this market","."))};if(t&&o){const n=()=>{const t=window.getComputedStyle(e),o=parseFloat(t.columnGap||t.gap||"0");return r.getBoundingClientRect().width+o};t.addEventListener("click",()=>{e.scrollBy({left:-n(),behavior:"smooth"})}),o.addEventListener("click",()=>{e.scrollBy({left:n(),behavior:"smooth"})})}i.forEach(e=>{e.addEventListener("click",()=>a(e))}),l&&l.addEventListener("change",e=>{const t=e.target.value,o=i.find(e=>e.dataset.symbol===t);o&&a(o)}),new Promise(e=>{if(window.TradingView)return void e();const t=document.createElement("script");t.src="https://s3.tradingview.com/tv.js",t.onload=e,document.body.appendChild(t)}).then(()=>{a(r)})}()})})();

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.