Bilibili-Evolved/min/custom-navbar-iframe.min.js
2021-10-26 13:22:15 +08:00

1 line
666 B
JavaScript

(()=>(e,t)=>{function r(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}const{NavbarComponent:i}=t.import("custom-navbar-component");class a extends i{constructor(e,t,i){super();r(this,"iframeName",void 0);const{src:a,width:n,height:s,lazy:h,iframeName:m}=i;this.boundingWidth=parseInt(n);this.iframeName=m;this.html=e;this.href=t;this.popupHtml=`\n<iframe src='${a}' frameborder='0' width='${n}' height='${s}'></iframe>\n`;this.noPadding=true;this.requestedPopup=h?false:true;this.touch=false;this.transparent=true}get name(){return this.iframeName+"Iframe"}}return{export:{Iframe:a}}})();