Files
Tooloop-Kiosk-Browser/html/config.html
T

92 lines
2.4 KiB
HTML
Raw Normal View History

2024-06-03 12:16:11 +02:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Config</title>
<style>
html,
body {
background-color: hsl(0, 0%, 12%);
color: white;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 16px;
padding: 1rem;
}
label {
color: #ccc;
text-align: right;
line-height: 2.333;
}
.config {
display: grid;
gap: 1rem;
padding: 2rem;
grid-template-columns: max-content auto;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 0.25rem;
background-color: rgba(255, 255, 255, 0.05);
}
2024-06-03 16:32:05 +02:00
2024-06-03 12:16:11 +02:00
input,
textarea {
font-family: monospace;
padding: 0 0.666em;
background-color: rgba(0, 0, 0, 0.3);
color: white;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 0.25rem;
}
2024-06-03 16:32:05 +02:00
textarea#whitelist {
height: 5.25em;
}
2024-06-03 12:16:11 +02:00
textarea:focus,
input:focus {
outline: none;
}
2024-06-03 16:32:05 +02:00
2024-06-03 12:16:11 +02:00
.buttons {
grid-column: 2;
display: flex;
gap: 1rem;
margin-top: 2rem;
}
2024-06-03 16:32:05 +02:00
2024-06-03 12:16:11 +02:00
button {
background-color: hsl(0, 0%, 50%);
/* border: 1px solid rgba(255, 255, 255, 0.12); */
border-width: 1px;
border-radius: 0.25rem;
line-height: 1.5;
padding: 0 0.666em;
color: white;
}
</style>
</head>
<body>
<div class="config">
<label for="url">Url</label>
<input type="text" id="url" value="file:///assets/data/index.html">
<label for="whitelist">Allowed Domains</label>
<textarea name="whitelist" id="whitelist"></textarea>
2024-06-03 16:32:05 +02:00
<label for="logpath">Logging Path</label>
<input type="text" id="logpath" value="/assets/logs/tooloop-kiosk-browser.log">
2024-06-03 12:16:11 +02:00
</div>
<div class="buttons">
2024-06-03 16:32:05 +02:00
<button id="save">Save</button>
<button id="cancel">Cancel</button>
2024-06-03 12:16:11 +02:00
</div>
2024-06-03 16:32:05 +02:00
<script src="../js/configRenderer.js"></script>
2024-06-03 12:16:11 +02:00
</body>
</html>