UNPKG

com.hikky.heliodorlib

Version:

This is the library for Vket Cloud SDK.

49 lines (44 loc) 1.8 kB
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Vket Embed</title> <meta property="twitter:title" content="VRM Embed" /> <meta property="twitter:description" content="VketCloud" /> <meta property="twitter:text:title" content="VRM Embed" /> <meta property="twitter:card" content="player" /> <meta property="twitter:image" content="" /> <meta property="og:image" content="" /> <meta name="description" content="VketCloud" /> <meta property="og:title" content="Vket Embed" /> <meta property="og:description" content="VketCloud" /> <meta property="twitter:player" content="" /> <meta property="twitter:player:width" content="1080" /> <meta property="twitter:player:height" content="720" /> <style> .iframe[data-v-1b2fb41f] { height: 100vh; width: 100vw; } </style> <link rel="icon" type="image/x-icon" href="/images/favicon.ico" /> <script> // share.htmlをURLバーに入れて開いた時はmain.htmlにリダイレクトする // Xのiframe上ではscriptタグは機能しないのでX埋め込みが動作する { const urlObj = new URL(document.location); const srcURL = urlObj.href; const pathname = urlObj.pathname; // xshareのクエリが残っているとX埋め込み用のURLが表示されてしまうので削除する let dstUrl = srcURL; dstUrl = dstUrl.replace(pathname, "/main.html"); dstUrl = dstUrl.replace("xshare=1", "") // document.location.href = dstUrl; } </script> </head> <body></body> </html>