PageSourceSearch

https://www.pacificsurfliner.com/Assets/bundled/status.bundle.js?v=LNARfeuZhUUz1hLTYUJA-kg6iveAnHZXiFQqfITUu5o

js pacificsurfliner.com collected 2026-10-02 03:58:22 UTC 4,154 bytes, 1 lines download raw bytes

1!function(){let t=document.body,e=document.getElementsByClassName("Button--trainStatus")[0],n=document.getElementsByClassName("js-triggerTrainStatus"),s=!!window.MSInputMethodContext&&!!document.documentMode,a=void 0===document.getElementsByClassName("TrainStatus")[0];console.log("Train Status Disabled: ",a),e.addEventListener("click",(function(e){if(t.classList.remove("widget-open--booking"),t.classList.remove("is-overflowHidden--sm"),document.querySelector(".SiteHeader").classList.remove("is-active"),window.onscroll=function(){},t.classList.contains("widget-open--trainStatus")?t.classList.remove("widget-open--trainStatus"):t.classList.add("widget-open--trainStatus"),a)l();else if(s){var n=document.querySelector(".cds_ts_by_train .cds_ts_link"),i=document.createEvent("MouseEvent");i.initMouseEvent("click",!0,!0,n,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(i)}else{o=document.querySelector(".cds_ts_by_train .cds_ts_link"),d=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}),o.dispatchEvent(d)}var o,d}));for(let t=0;t<n.length;t++)n[t].addEventListener("click",(function(t){t.preventDefault(),o()}));function i(t){return t.indexOf("#TrainStatus")>-1||t.indexOf("#trainstatus")>-1}function o(){document.querySelector(".SiteHeader").classList.remove("is-active"),window.onscroll=function(){},t.classList.contains("widget-open--trainStatus")?t.classList.remove("widget-open--trainStatus"):t.classList.add("widget-open--trainStatus")}var d,c,r;function l(){document.querySelector(".TrainStatus--container").addEventListener("click",(function(t){"TrainStatus--container"===t.target.className&&document.body.classList.remove("widget-open--trainStatus")}))}(i(window.location.hash)||"/status"===window.location.pathname)&&o(),window.addEventListener("hashchange",(function(){i(window.location.hash)&&!t.classList.contains("widget-open--trainStatus")&&o()})),a?t.classList.add("widget-open--trainStatus--ready"):(d="//content.amtrak.com/content/statefarefinder/cdsamtrak/cds.js?id=109&v=2.0&c=trainstatus",c=function(){var n=setInterval((function(){if("undefined"!=typeof cds_initFindAStation){clearInterval(n);const s="true"===new URLSearchParams(window.location.search).get("openTrainStatus");setTimeout((function(){!function(){e.classList.remove("is-disabled"),function(){var t=document.querySelector("span.cds_ts_field_from > input");t.parentNode.removeChild(t);var e='<input name="cds_ts_field_from" id="cds_ts_from_station" class="ALL_DESTINATIONS ALL_DESTINATIONS_FROM" size="25">';document.querySelector("span.cds_ts_field_from").insertAdjacentHTML("beforeend",e);var n=document.querySelector("span.cds_ts_field_to > input");n.parentNode.removeChild(n);var s='<input name="cds_ts_field_to" id="cds_ts_to_station" class="ALL_DESTINATIONS ALL_DESTINATIONS_FROM" size="25">';document.querySelector("span.cds_ts_field_to").insertAdjacentHTML("beforeend",s)}(),l();var t=new CustomEvent("onWidgetReady",{detail:["cds_ts_from_station","cds_ts_to_station"]});window.dispatchEvent(t),document.getElementById("cds_ts_status_train_num").placeholder="Train/Bus Number",document.getElementById("cds_ts_to_station").placeholder="To City, Station",document.getElementById("cds_ts_from_station").placeholder="From City, Station",document.querySelector('label[for="cds_ts_to_station"]').textContent=" ",document.getElementById("cds_ts_date").setAttribute("aria-label","Select date"),document.querySelectorAll(".ui-datepicker-trigger").forEach((t=>{t.setAttribute("alt","Open calendar")}))}(),console.log("ready: trainStatus"),t.classList.add("widget-open--trainStatus--ready"),s&&t.classList.add("widget-open--trainStatus")}),500)}}),300)},(r=document.createElement("script")).type="text/javascript",r.readyState?r.onreadystatechange=function(){"loaded"!==r.readyState&&"complete"!==r.readyState||(r.onreadystatechange=null,c())}:r.onload=function(){c()},r.src=d,document.getElementsByTagName("head")[0].appendChild(r)),document.querySelector(".TrainStatus--container .js-closeWidget").addEventListener("click",(function(e){e.preventDefault(),t.classList.remove("widget-open--booking"),t.classList.remove("is-overflowHidden--sm"),o()}))}();

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.