hybrid
This commit is contained in:
1 parent
e1c88ac774
commit
f746eaa220
4 files changed
+12
-17
No files matched your search
@@ -63,6 +63,8 @@ textarea {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
|
min-width: 20%;
|
||||||
|
min-height: 20dvh;
|
||||||
}
|
}
|
||||||
|
|
||||||
form {
|
form {
|
||||||
@@ -87,6 +89,7 @@ li {
|
|||||||
padding: 15px;
|
padding: 15px;
|
||||||
border-radius: var(--border-radius);
|
border-radius: var(--border-radius);
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
|
width: min-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
li a {
|
li a {
|
||||||
|
|||||||
@@ -50,6 +50,8 @@
|
|||||||
new QRCode(e, {
|
new QRCode(e, {
|
||||||
text: a,
|
text: a,
|
||||||
correctLevel: QRCode.CorrectLevel.L,
|
correctLevel: QRCode.CorrectLevel.L,
|
||||||
|
width: 256,
|
||||||
|
height: 256,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -4,11 +4,6 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Queue dump type shit</title>
|
<title>Queue dump type shit</title>
|
||||||
<style>
|
|
||||||
li {
|
|
||||||
width: min-content;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
+7
-12
@@ -12,28 +12,23 @@
|
|||||||
<body>
|
<body>
|
||||||
<form method="POST" action="/queuein">
|
<form method="POST" action="/queuein">
|
||||||
<label for="lines">in:</label>
|
<label for="lines">in:</label>
|
||||||
<textarea
|
<textarea id="lines" rows="20" cols="100" name="lines"></textarea>
|
||||||
id="l"
|
|
||||||
rows="20"
|
|
||||||
cols="100"
|
|
||||||
style="min-width: 20%; min-height: 20dvh"
|
|
||||||
name="lines"
|
|
||||||
></textarea>
|
|
||||||
<input type="submit" value="ahh" />
|
<input type="submit" value="ahh" />
|
||||||
</form>
|
</form>
|
||||||
<script>
|
<script>
|
||||||
/**@type {HTMLTextAreaElement} */
|
|
||||||
(
|
|
||||||
// lifted from google search ai
|
// lifted from google search ai
|
||||||
document.getElementById("l")
|
/**@type {HTMLTextAreaElement} */
|
||||||
).addEventListener("keydown", function (e) {
|
(document.getElementById("lines")).addEventListener(
|
||||||
|
"keydown",
|
||||||
|
function (e) {
|
||||||
// Check for Ctrl+Enter (Windows/Linux) or Command+Enter (Mac)
|
// Check for Ctrl+Enter (Windows/Linux) or Command+Enter (Mac)
|
||||||
if ((e.ctrlKey || e.metaKey) && e.key === "Enter") {
|
if ((e.ctrlKey || e.metaKey) && e.key === "Enter") {
|
||||||
e.preventDefault(); // Prevent the default newline character
|
e.preventDefault(); // Prevent the default newline character
|
||||||
// Submit the form associated with this textarea
|
// Submit the form associated with this textarea
|
||||||
this.form.submit();
|
this.form.submit();
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
|
);
|
||||||
</script>
|
</script>
|
||||||
{% from "macros.html" import qrcode_queue %} {% if queue_items %}
|
{% from "macros.html" import qrcode_queue %} {% if queue_items %}
|
||||||
<p>total: {{ queue_items|length }}</p>
|
<p>total: {{ queue_items|length }}</p>
|
||||||
|
|||||||
Reference in new issue
Block a user