PageSourceSearch

https://tbxunfiltered.com/assets/AudioSpotlight-BGrWjvY4.js

js tbxunfiltered.com collected 2026-10-09 22:40:38 UTC 6,347 bytes, 1 lines download raw bytes

1import{r as e}from"./rolldown-runtime-S-ySWqyJ.js";import{i as t,r as n}from"./framework-CXnKph_e.js";var r=e(t(),1),i=n(),a=[{title:`Facts and Hard Truth`,accent:`AN ORIGINAL TBX SONG`,src:`/media/facts-and-hard-truth.mp3`,credit:`Written & Produced by Major Rammer Jammer`,media:`audio`},{title:`Truth Everytime`,accent:`A SECOND TBX ORIGINAL`,src:`/media/truth-every-time.mp3`,credit:`Written & Produced by Major Rammer Jammer`,media:`audio`},{title:`Buffalo Strong`,accent:`THE OFFICIAL TBX MUSIC VIDEO`,src:`/media/buffalo-strong-video.mp4?v=20260821-2`,credit:`Performed by Major Rammer Jammer`,media:`video`},{title:`Buffalo at the Gate`,accent:`ANOTHER TBX ORIGINAL`,src:`/media/buffalo-at-the-gate.mp3`,credit:`Written & Produced by Major Rammer Jammer`,media:`audio`}];function o(e){return Number.isFinite(e)?`${Math.floor(e/60)}:${Math.floor(e%60).toString().padStart(2,`0`)}`:`0:00`}function s(){let e=(0,r.useRef)(null),t=(0,r.useRef)(null),n=(0,r.useRef)(null),[s,c]=(0,r.useState)(0),[l,u]=(0,r.useState)(!1),[d,f]=(0,r.useState)(0),[p,m]=(0,r.useState)(0),[h,g]=(0,r.useState)(!1),_=a[s],v=_.media===`video`;(0,r.useEffect)(()=>{let n=v?t.current:e.current;if(!n)return;let r=()=>f(n.currentTime),i=()=>m(n.duration||0),a=()=>{u(!1),f(0)},o=()=>u(!0),s=()=>u(!1);return n.addEventListener(`timeupdate`,r),n.addEventListener(`loadedmetadata`,i),n.addEventListener(`ended`,a),n.addEventListener(`play`,o),n.addEventListener(`pause`,s),()=>{n.removeEventListener(`timeupdate`,r),n.removeEventListener(`loadedmetadata`,i),n.removeEventListener(`ended`,a),n.removeEventListener(`play`,o),n.removeEventListener(`pause`,s)}},[s,v,h]),(0,r.useEffect)(()=>{!h||!v||!t.current||t.current.play().catch(()=>u(!1))},[h,v]);let y=async()=>{if(v&&!h){g(!0);return}let n=v?t.current:e.current;n&&(n.paused?(await n.play(),u(!0)):(n.pause(),u(!1)))},b=n=>{n!==s&&(e.current?.pause(),t.current&&(t.current.pause(),t.current.currentTime=0),g(!1),c(n),u(!1),f(0),m(0))},x=n=>{let r=v?t.current:e.current;r&&(r.currentTime=n,f(n))};return(0,r.useEffect)(()=>{let e=n.current;if(!e)return;let t=new Image;t.src=`/assets/major-flags-onepiece.png`;let r=0,i=!1,a=n=>{if(i||!t.complete||!t.naturalWidth)return;let o=Math.min(window.devicePixelRatio||1,2),s=1693;e.width=s*o,e.height=929*o;let c=e.getContext(`2d`);if(!c)return;c.setTransform(o,0,0,o,0,0),c.clearRect(0,0,s,929),c.drawImage(t,226,18,76,911,226,18,76,911),c.drawImage(t,922,196,76,733,922,196,76,733);let l=(e,r,i,a,o,s)=>{let l=i/36;for(let i=0;i<36;i+=1){let u=e+i*l,d=Math.sin(n*.00125+i*.46+s)*o;c.drawImage(t,u,r,l+1.5,a,u+d,r+d*.18,l+1.5,a)}};l(270,116,625,495,2.2,0),l(980,270,595,485,2.4,1.7),r=requestAnimationFrame(a)};return t.onload=()=>{r=requestAnimationFrame(a)},()=>{i=!0,cancelAnimationFrame(r)}},[]),(0,i.jsxs)(`section`,{className:`audio-spotlight ${l?`is-playing`:``}`,"aria-labelledby":`audio-title`,children:[(0,i.jsx)(`div`,{className:`audio-glow`,"aria-hidden":`true`}),(0,i.jsxs)(`div`,{className:`audio-label`,children:[(0,i.jsx)(`span`,{className:`audio-label-dot`}),(0,i.jsx)(`span`,{className:`audio-label-copy`,children:`MAJOR RAMMER JAMMER JAMZ`}),(0,i.jsx)(`div`,{className:`veteran-flags-art`,"aria-label":`American and official U.S. Army flags`,children:(0,i.jsx)(`canvas`,{ref:n,className:`flag-onepiece`,role:`img`,"aria-label":`American flag and official U.S. Army flag waving side by side`})})]}),(0,i.jsx)(`div`,{className:`audio-art`,"aria-hidden":`true`,children:(0,i.jsx)(`div`,{className:`audio-disc`,children:(0,i.jsx)(`img`,{src:`/assets/tbx-globe-logo.png`,alt:``})})}),(0,i.jsxs)(`div`,{className:`audio-copy`,children:[(0,i.jsx)(`span`,{children:_.accent}),(0,i.jsx)(`h2`,{id:`audio-title`,children:_.title===`Facts and Hard Truth`?(0,i.jsxs)(i.Fragment,{children:[`Facts and `,(0,i.jsx)(`em`,{children:`Hard Truth`})]}):_.title===`Truth Everytime`?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`em`,{children:`Truth`}),` Everytime`]}):_.title===`Buffalo Strong`?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`em`,{children:`Buffalo`}),` Strong`]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`em`,{children:`Buffalo`}),` at the Gate`]})}),(0,i.jsx)(`p`,{children:_.credit})]}),v&&h?(0,i.jsxs)(`div`,{className:`audio-video-window`,"aria-label":`Buffalo Strong official music video`,children:[(0,i.jsxs)(`div`,{className:`audio-video-header`,children:[(0,i.jsxs)(`span`,{children:[(0,i.jsx)(`b`,{children:`NOW SHOWING`}),` Buffalo Strong — Major Rammer Jammer`]}),(0,i.jsx)(`button`,{type:`button`,onClick:()=>{t.current&&(t.current.pause(),t.current.currentTime=0),u(!1),f(0),g(!1)},"aria-label":`Stop and close the Buffalo Strong video`,children:`■ STOP & CLOSE`})]}),(0,i.jsx)(`video`,{ref:t,className:`audio-video-player`,src:_.src,poster:`/assets/buffalo-strong-video-poster.jpg`,controls:!0,playsInl
1ine:!0,preload:`metadata`}),(0,i.jsx)(`p`,{className:`audio-video-note`,children:`The video stays inside the music section. You can pause, seek, adjust volume, use full screen, or close it and continue browsing.`})]}):null,(0,i.jsxs)(`div`,{className:`audio-controls`,children:[(0,i.jsx)(`button`,{type:`button`,onClick:y,"aria-label":l?`Pause ${_.title}`:v?`Watch the ${_.title} video`:`Play ${_.title}`,children:(0,i.jsx)(`span`,{children:l?`Ⅱ`:`▶`})}),(0,i.jsxs)(`div`,{className:`audio-timeline`,children:[(0,i.jsxs)(`div`,{children:[(0,i.jsx)(`span`,{children:l?v?`VIDEO PLAYING`:`NOW PLAYING`:v?`PRESS PLAY TO WATCH`:`PRESS PLAY`}),(0,i.jsxs)(`b`,{children:[o(d),` / `,o(p)]})]}),(0,i.jsx)(`input`,{type:`range`,min:`0`,max:p||0,step:`0.1`,value:Math.min(d,p||0),onChange:e=>x(Number(e.target.value)),"aria-label":`${_.title} progress`})]})]}),(0,i.jsx)(`div`,{className:`audio-library`,"aria-label":`Choose a TBX song`,children:a.map((e,t)=>(0,i.jsxs)(`button`,{type:`button`,className:`audio-track ${t===s?`selected`:``}`,onClick:()=>b(t),children:[(0,i.jsxs)(`span`,{className:`audio-track-number`,children:[`0`,t+1]}),(0,i.jsxs)(`span`,{children:[(0,i.jsx)(`strong`,{children:e.title}),(0,i.jsx)(`small`,{children:e.credit})]}),(0,i.jsx)(`span`,{className:`audio-track-state`,children:t===s&&l?e.media===`video`?`WATCHING`:`PLAYING`:t===s?e.media===`video`?`VIDEO SELECTED`:`SELECTED`:e.media===`video`?`WATCH`:`PLAY`})]},e.src))}),(0,i.jsx)(`audio`,{ref:e,src:v?void 0:_.src,preload:`metadata`},_.src)]})}export{s as default};

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.