mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
25 lines
743 B
TypeScript
25 lines
743 B
TypeScript
import '@app/styles.css';
|
|
import { bindSandboxHtmlLocaleChange, prepareSandboxHtmlLocale, wrapSandboxHtmlI18n } from '@app/shared/html/i18n';
|
|
import '@videojs/html/background/player';
|
|
import '@videojs/html/background/skin';
|
|
import '@videojs/html/background/video';
|
|
import { BACKGROUND_VIDEO_SRC } from '@app/shared/sources';
|
|
|
|
const html = String.raw;
|
|
|
|
async function render() {
|
|
await prepareSandboxHtmlLocale();
|
|
|
|
document.getElementById('root')!.innerHTML = wrapSandboxHtmlI18n(html`
|
|
<background-video-player>
|
|
<background-video-skin>
|
|
<background-video src="${BACKGROUND_VIDEO_SRC}"></background-video>
|
|
</background-video-skin>
|
|
</background-video-player>
|
|
`);
|
|
}
|
|
|
|
render();
|
|
|
|
bindSandboxHtmlLocaleChange(render);
|