methods
This commit is contained in:
1 parent
4a2974098f
commit
d4fc121506
10 files changed
+23
-13
No files matched your search
@@ -4,6 +4,10 @@
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Queue dump type shit</title>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="{{ url_for('static', path='style.css') }}"
|
||||
/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
+6
-5
@@ -4,15 +4,16 @@
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>QRCode queue</title>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="{{ url_for('static', path='style.css') }}"
|
||||
/>
|
||||
</head>
|
||||
<body>
|
||||
{% from "macros.html" import qrcode_queue %}
|
||||
{% if queue_items %}
|
||||
{% from "macros.html" import qrcode_queue %} {% if queue_items %}
|
||||
<p>total: {{ queue_items|length }}</p>
|
||||
{{ qrcode_queue(queue_items) }}
|
||||
{% else %}
|
||||
{{ qrcode_queue(queue_items) }} {% else %}
|
||||
<p>empty</p>
|
||||
{% endif %}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -59,10 +59,13 @@
|
||||
newTab.document.body.style.backgroundColor =
|
||||
getComputedStyle(document.body).backgroundColor;
|
||||
|
||||
const f =
|
||||
document.querySelector(".trail-container");
|
||||
if (f)
|
||||
newTab.document.body.innerHTML += f.outerHTML;
|
||||
document
|
||||
.querySelectorAll("body > *:not(script)")
|
||||
.forEach((f) =>
|
||||
newTab.document.body.appendChild(
|
||||
f.cloneNode(true)
|
||||
)
|
||||
);
|
||||
|
||||
// maybe just replace the whole document with this one and then use API to check length
|
||||
// i aint doing that
|
||||
@@ -79,6 +82,7 @@
|
||||
)
|
||||
);
|
||||
newTab.document.adoptedStyleSheets.push(st);
|
||||
newTab.document.close();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user