PageSourceSearch

https://visitdetroit.com/dist/scripts/VideoCoverElement.4c1e864b260ba184715d.min.js

js visitdetroit.com collected 2026-09-24 08:50:22 UTC 1,431 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2433],{9845:function(t,i,e){e.r(i),e.d(i,{default:function(){return d}});var s=e(4575),h=e.n(s),n=e(3913),r=e.n(n),o=e(9713),l=e.n(o),a=e(7041),u=e(296),d=function(){function t(i){var e=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data-video-ready";if(h()(this,t),l()(this,"el",null),l()(this,"videoEl",null),l()(this,"listenerBoss",void 0),l()(this,"initAttribute",void 0),l()(this,"ratio",void 0),i&&(this.el=i,this.initAttribute=s,this.listenerBoss=new a.Z,!i.hasAttribute(s)&&(i.setAttribute(s,"y"),this.videoEl=i.querySelector("video, iframe"),this.videoEl))){var n=parseInt(i.getAttribute("data-width"),10)||16,r=parseInt(i.getAttribute("data-height"),10)||9;this.ratio=n/r;var o=function(){e.resize(),setTimeout((function(){e.resize()}),100)};["DOMContentLoaded","load","resize"].forEach((function(t){e.listenerBoss.register(window,t,(0,u.debounce)(o,100,!1))})),this.resize()}}return r()(t,[{key:"resize",value:function(){if(this.el){var t=this.el.getBoundingClientRect(),i=t.width,e=t.height;i/e<this.ratio?(this.videoEl.style.width=Math.ceil(e*this.ratio)+"px",this.videoEl.style.height=Math.ceil(e)+"px"):(this.videoEl.style.width=Math.ceil(i)+"px",this.videoEl.style.height=Math.ceil(i*(1/this.ratio))+"px")}}},{key:"destroy",value:function(){this.el&&this.el.removeAttribute(this.initAttribute),this.listenerBoss.removeAll()}}]),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.