2022-04-06 10:06:21 +00:00
|
|
|
<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>
|
2022-05-09 17:17:53 +00:00
|
|
|
<script>
|
2022-05-09 18:13:31 +00:00
|
|
|
async function log(message) {
|
|
|
|
return call_plugin_method("log", {"message": message});
|
|
|
|
}
|
|
|
|
|
2022-05-09 17:24:10 +00:00
|
|
|
async function getUID() {
|
2022-05-09 17:17:53 +00:00
|
|
|
return call_plugin_method("whoami", {});
|
|
|
|
}
|
2022-05-09 17:39:23 +00:00
|
|
|
|
|
|
|
async function getInstallState() {
|
|
|
|
return call_plugin_method("install_state", {});
|
|
|
|
}
|
2022-05-09 17:22:32 +00:00
|
|
|
|
2022-05-09 17:24:10 +00:00
|
|
|
async function onReady() {
|
2022-05-09 18:13:31 +00:00
|
|
|
await log("got here");
|
2022-05-09 17:39:23 +00:00
|
|
|
let status = document.getElementById("status");
|
|
|
|
let install_status = await getInstallState();
|
|
|
|
|
2022-05-09 18:13:31 +00:00
|
|
|
status.innerText = install_status;
|
|
|
|
await log(install_status);
|
2022-05-09 17:22:32 +00:00
|
|
|
}
|
2022-05-09 18:08:12 +00:00
|
|
|
|
|
|
|
onReady();
|
2022-05-09 17:17:53 +00:00
|
|
|
</script>
|
2022-04-06 10:06:21 +00:00
|
|
|
</head>
|
2022-05-09 17:23:21 +00:00
|
|
|
<body onload="onReady()">
|
2022-05-09 17:57:08 +00:00
|
|
|
<h3>Status: <span id="status">loading</span></h3>
|
2022-05-09 18:10:06 +00:00
|
|
|
<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">Button field</div>
|
|
|
|
<div class="gamepaddialog_FieldChildren_2rhav"><button type="button"
|
|
|
|
class="DialogButton _DialogLayout Secondary gamepaddialog_Button_cXzBZ Focusable" onclick="onReady()"
|
|
|
|
tabindex="0">Click me </button></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-06 10:06:21 +00:00
|
|
|
</body>
|
2022-05-09 18:08:12 +00:00
|
|
|
|
|
|
|
<script>
|
|
|
|
onReady();
|
|
|
|
</script>
|
2022-05-09 17:17:53 +00:00
|
|
|
</html>
|