wabbajack/Wabbajack.App.Blazor/wwwroot/index.html

44 lines
1.1 KiB
HTML
Raw Permalink Normal View History

2022-01-09 13:33:22 +00:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<title>Wabbajack</title>
<base href="/"/>
<link href="Wabbajack.App.Blazor.styles.css" rel="stylesheet" />
</head>
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
height: 100%;
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
body
{
height: inherit;
}
#app {
height: inherit;
}
</style>
<body>
<div id="app"></div>
<script src="_framework/blazor.webview.js"></script>
2022-01-21 14:44:05 +00:00
<script>
async function setImageUsingStreaming(imageElementId, imageStream) {
const arrayBuffer = await imageStream.arrayBuffer();
const blob = new Blob([arrayBuffer]);
document.getElementById(imageElementId).src = URL.createObjectURL(blob);
}
</script>
2022-01-09 13:33:22 +00:00
</body>
2022-01-21 13:41:37 +00:00
</html>