46 lines
1.9 KiB
HTML
46 lines
1.9 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 log(message) {
|
|
return call_plugin_method("log", {"message": `${message}`);
|
|
}
|
|
|
|
async function getUID() {
|
|
return call_plugin_method("whoami", {});
|
|
}
|
|
|
|
async function getInstallState() {
|
|
return call_plugin_method("install_state", {});
|
|
}
|
|
|
|
async function getStatus() {
|
|
let status = document.getElementById("status");
|
|
let installStatus = await getInstallState();
|
|
status.innerText = `${installStatus}`;
|
|
}
|
|
|
|
async function onReady() {
|
|
let heading = document.getElementById("heading");
|
|
let id = await getUID();
|
|
heading.innerText = `Hello ${id}`;
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="onReady()">
|
|
<h2 id="heading">Hello World</h2>
|
|
<div class="gamepaddialog_Field_eKmEX gamepaddialog_WithFirstRow_2bDqk gamepaddialog_InlineWrapShiftsChildrenBelow_3LCXh gamepaddialog_WithBottomSeparator_3YKpU gamepaddialog_ExtraPaddingOnChildrenBelow_3nLNL gamepaddialog_StandardPadding_xIITX gamepaddialog_HighlightOnFocus_2HFrm Panel Focusable"
|
|
style="--indent-level:0;">
|
|
<div class="gamepaddialog_FieldLabelRow_2VcTl">
|
|
<div class="gamepaddialog_FieldLabel_3jMlJ" id="status"></div>
|
|
<div class="gamepaddialog_FieldChildren_2rhav"><button type="button"
|
|
class="DialogButton _DialogLayout Secondary gamepaddialog_Button_cXzBZ Focusable" onclick="getStatus()"
|
|
tabindex="0">🔄</button></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|