34 lines
1.0 KiB
HTML
34 lines
1.0 KiB
HTML
<html>
|
|
<head>
|
|
<link rel="stylesheet" href="/steam_resource/css/2.css">
|
|
<link rel="stylesheet" href="/steam_resource/css/39.css">
|
|
<link rel="stylesheet" href="/steam_resource/css/library.css">
|
|
<script src="/static/library.js"></script>
|
|
<script>
|
|
async function getUID() {
|
|
return call_plugin_method("whoami", {});
|
|
}
|
|
|
|
async function getInstallState() {
|
|
return call_plugin_method("install_state", {});
|
|
}
|
|
|
|
async function onReady() {
|
|
let heading = document.getElementById("heading");
|
|
let id = await getUID();
|
|
|
|
heading.innerText = `Hello ${id}`;
|
|
|
|
let status = document.getElementById("status");
|
|
let install_status = await getInstallState();
|
|
|
|
status.inner_text = install_status;
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="onReady()">
|
|
<h2 id="heading">Hello World</h2>
|
|
<h3 id="status">Status: loading</h3>
|
|
</body>
|
|
</html>
|