PageSourceSearch

https://www.portadelaidefc.com.au/resources/v5.53.10/widgets/aflc_video-modal.js

js portadelaidefc.com.au collected 2026-09-24 09:37:49 UTC 1,587 bytes, 1 lines download raw bytes

1"use strict";!function(o,e,t,i,a){o.VideoModal=class{constructor(o){this.container=o,this.pageUrl=window.location.href,this.initModal()}initModal(){const t=this;this.modalSelector=`#${this.container.id}`,this.modalId=this.container.dataset.modalId,this.modalCloseBtn=this.container.querySelector(".js-modal-close"),this.modalContent=this.container.querySelector(".js-modal-content"),this.modalConfig={selector:`[data-ui-modal="${this.modalSelector}"]`,openClass:"open",modalWrapId:this.modalId,openCallback:this.openModal.bind(this),closeCallback:this.closeModal.bind(this),modalWrapClass:"modal-wrap",modalContentWrapClass:"modal-content"},o.VideoPlayerModal=new e.modal(this.modalConfig),this.setListeners(),setTimeout((function(){t.checkUrlForModal("video")}))}setListeners(){t.addAriaClickListener(this.modalCloseBtn,(()=>{o.VideoPlayerModal.close()}))}checkUrlForModal(){const e=new URL(window.location.href);e.pathname.match(/(\/video\/[0-9]+)/g)&&(this.pageUrl=`${e.href.substring(0,e.href.indexOf("/video"))}/video`,setTimeout((()=>{o.VideoPlayerModal.open()}),600))}openModal(){new t.VideoModal(this.container,o.VideoPlayerModal)}closeModal(){a.style.addClass(this.modalContent,"is-loading"),document.pictureInPictureElement&&document.exitPictureInPicture(),t.event.dispatch(i.EVENTS.VIDEO_MODAL.CLOSE,{},document.body),history.replaceState("","",this.pageUrl);const o=document.getElementById("VideoModal");t.focusContainer.removeListener(o)}},o.widgetInitialiser.addWidget("video-modal",o.VideoModal)}(PULSE.app,PULSE.ui,PULSE.app.common,PULSE.app.common.CONSTANTS,PULSE.core);

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.