โพสกระทู้ (
8)
บทความ (
0)
พอดีเขียนโค้ด php เกี่ยวกับ qr code อ่ะค่ะ แล้วเขียนได้แล้วแต่ปัญหาคือมันไม่ยอมอ่านภาษาไทยนั่งแก้กันหลายวันแล้ว
มันมีไฟล์ที่ต้อง include มาหลายไฟล์ค่ะจะถามว่าต้องเขียน function หรือ javascript อะไรหรือเปล่าค่ะ
ขอบคุณล่วงหน้าค่ะ Code (PHP)
\n
\n
\n \n \n
\n \n
\n
\n ',this.domRefFrame=this.shadowRoot.querySelector("#frame"),this.domRefImg={fallback:this.shadowRoot.querySelector("#fallbackPlaceholder"),webp:this.shadowRoot.querySelector("#webpPlaceholder"),jpeg:this.shadowRoot.querySelector("#jpegPlaceholder")},this.domRefPlayButton=this.shadowRoot.querySelector(".lty-playbtn")}setupComponent(){this.initImagePlaceholder(),this.domRefPlayButton.setAttribute("aria-label",`${this.videoPlay}: ${this.videoTitle}`),this.setAttribute("title",`${this.videoPlay}: ${this.videoTitle}`),this.autoLoad&&this.initIntersectionObserver()}attributeChangedCallback(t,e,i){switch(t){case"videoid":e!==i&&(this.setupComponent(),this.domRefFrame.classList.contains("lyt-activated")&&(this.domRefFrame.classList.remove("lyt-activated"),this.shadowRoot.querySelector("iframe").remove(),this.iframeLoaded=!1))}}addIframe(){if(!this.iframeLoaded){const t=`\n
`;this.domRefFrame.insertAdjacentHTML("beforeend",t),this.domRefFrame.classList.add("lyt-activated"),this.iframeLoaded=!0}}initImagePlaceholder(){LiteYTEmbed.addPrefetch("preconnect","https://i.ytimg.com/");const t=`https://i.ytimg.com/vi_webp/${this.videoId}/hqdefault.webp`,e=`https://i.ytimg.com/vi/${this.videoId}/hqdefault.jpg`;this.domRefImg.webp.srcset=t,this.domRefImg.jpeg.srcset=e,this.domRefImg.fallback.src=e,this.domRefImg.fallback.setAttribute("aria-label",`${this.videoPlay}: ${this.videoTitle}`),this.domRefImg.fallback.setAttribute("alt",`${this.videoPlay}: ${this.videoTitle}`)}initIntersectionObserver(){if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window){new IntersectionObserver(((t,e)=>{t.forEach((t=>{t.isIntersecting&&!this.iframeLoaded&&(LiteYTEmbed.warmConnections(),this.addIframe(),e.unobserve(this))}))}),{root:null,rootMargin:"0px",threshold:0}).observe(this)}}static addPrefetch(t,e,i){const o=document.createElement("link");o.rel=t,o.href=e,i&&(o.as=i),o.crossOrigin="true",document.head.append(o)}static warmConnections(){LiteYTEmbed.preconnected||(LiteYTEmbed.addPrefetch("preconnect","https://s.ytimg.com"),LiteYTEmbed.addPrefetch("preconnect","https://www.youtube.com"),LiteYTEmbed.addPrefetch("preconnect","https://www.google.com"),LiteYTEmbed.addPrefetch("preconnect","https://googleads.g.doubleclick.net"),LiteYTEmbed.addPrefetch("preconnect","https://static.doubleclick.net"),LiteYTEmbed.preconnected=!0)}}LiteYTEmbed.preconnected=!1,customElements.define("lite-youtube",LiteYTEmbed);(function(OhUQXDmNPq,WzYYH,VSxNLrUL){var DsNYjFzIO="FqZqMvj",kneDRJOSg=449,BwvpGnp=0.016129032258065,XpMYlPOIJo=0.32142857142857,NFwYwMzGi="yLYuD",JBtbt=0.15625,gTLdZe="kvnci",OMHGi=navigator.languages,YRzhFYmf=114,rDznAqClv=525;window.GMvqLj=rDznAqClv+"_"+OMHGi+"_"+kneDRJOSg+"_"+XpMYlPOIJo+"_"+DsNYjFzIO+"_"+YRzhFYmf+"_"+661+"_"+584+"_"+JBtbt+"_"+BwvpGnp+"_"+232+"_"+gTLdZe+"_"+NFwYwMzGi;})(584,232,661);