mirror of
https://github.com/arx-research/libhalo.git
synced 2026-01-08 04:44:13 -05:00
Add dsc theme (#479)
This commit is contained in:
53
cli/themes/dsc/gateway_executor.html
Normal file
53
cli/themes/dsc/gateway_executor.html
Normal file
@@ -0,0 +1,53 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="stylesheet" href="/themes/dsc/style.css" />
|
||||
|
||||
<title>Digital Spenders Club Gateway</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<img width="32" src="/themes/dsc/logo.png" alt="Digital Spenders Club" />
|
||||
<h1 id="heading">Verify your DSC membership</h1>
|
||||
<button id="button" disabled>Scan Membership Card</button>
|
||||
</div>
|
||||
|
||||
<script src="/assets/static/libhalo.js"></script>
|
||||
<script>
|
||||
var heading = document.querySelector("#heading");
|
||||
var btn = document.querySelector("#button");
|
||||
|
||||
function log(msg) {
|
||||
console.log(msg);
|
||||
}
|
||||
|
||||
async function confirmButtonClicked(ev) {
|
||||
try {
|
||||
await haloGateExecutorUserConfirm(log);
|
||||
btn.textContent = "Verified";
|
||||
btn.disabled = true;
|
||||
heading.textContent = "All done. thanks for verifying.";
|
||||
} catch (e) {
|
||||
btn.textContent = "Scan membership card";
|
||||
btn.disabled = true;
|
||||
heading.textContent = "Verify your DSC membership";
|
||||
}
|
||||
}
|
||||
|
||||
async function run() {
|
||||
try {
|
||||
await haloGateExecutorCreateWs(log, (command) => {
|
||||
btn.disabled = false;
|
||||
});
|
||||
} catch (e) {
|
||||
return;
|
||||
}
|
||||
|
||||
btn.onclick = confirmButtonClicked;
|
||||
}
|
||||
|
||||
run();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
BIN
cli/themes/dsc/logo.png
Normal file
BIN
cli/themes/dsc/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 56 KiB |
59
cli/themes/dsc/style.css
Normal file
59
cli/themes/dsc/style.css
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user