pmx-vmd-sync-player / index.html
mg696's picture
Fix v121 loader absolute script URLs
44ce3ff verified
Raw History Blame Contribute Delete
1.7 kB
<!DOCTYPE html><html lang="ja"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,viewport-fit=cover"><meta http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate"><meta http-equiv="Pragma" content="no-cache"><meta http-equiv="Expires" content="0"><title>MMD pmx Player v121</title><style>html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#000;color:#ff69b4;font-family:sans-serif}#msg{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:20px;z-index:1}iframe{border:0;width:100%;height:100%;display:none}</style></head><body><div id="msg">v121読み込み中です。失敗した場合は画面にエラーを出します。</div><iframe id="app"></iframe><script>(async()=>{const app=document.getElementById('app'),msg=document.getElementById('msg');try{const res=await fetch('https://huggingface.co/spaces/mg696/pmx-vmd-sync-player/raw/stable-v117-copy-ok/index.html?cb='+Date.now(),{cache:'no-store'});let html=await res.text();html=html.replace(/<title>[^<]*<\/title>/,'<title>MMD pmx Player v121</title>');html=html.replace('app.js?v=117','https://mg696-pmx-vmd-sync-player.static.hf.space/app.js?v=117');html=html.replace('app-extra.js?v=117','https://mg696-pmx-vmd-sync-player.static.hf.space/app-extra.js?v=117');html=html.replace('</body>','<script src="https://mg696-pmx-vmd-sync-player.static.hf.space/v121-runtime.js?v=121-'+Date.now()+'"><\\/script></body>');app.style.display='block';msg.style.display='none';app.srcdoc=html;}catch(e){msg.textContent='v121読み込み失敗: '+e.message;}})();</script></body></html>