Skip to content

Commit cfc3a14

Browse files
committed
quarto render hoping to get the live version of bracket.html to use the updated code without the API
1 parent 234d57a commit cfc3a14

13 files changed

+992
-2194
lines changed

docs/activities.html

Lines changed: 46 additions & 46 deletions
Large diffs are not rendered by default.

docs/assets/js/emfed-bundle.js

Lines changed: 0 additions & 1098 deletions
This file was deleted.

docs/assets/js/emfed.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/assets/toots.css

Lines changed: 0 additions & 106 deletions
This file was deleted.

docs/bracket.html

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>Bracket Builder</title>
8+
<script src="qrcode.min.js"></script>
89
<style>
910
body {
1011
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
@@ -249,7 +250,7 @@ <h1>Bracket Builder</h1>
249250
displayEl.style.position = "relative";
250251
displayEl.innerHTML = `
251252
<div style="position: absolute; left: 20px; top: 20px; display: flex; flex-direction: column; align-items: center; gap: 5px;">
252-
<img src="https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=${encodeURIComponent(shareUrl)}" style="width: 156px; height: 156px; border: 1px solid #ccc; border-radius: 4px;" alt="Share QR Code">
253+
<div id="qrcode-container" style="width: 156px; height: 156px; border: 1px solid #ccc; border-radius: 4px; padding: 4px; background: white; box-sizing: border-box; display: flex; justify-content: center; align-items: center;"></div>
253254
<span style="font-size: 12px; font-weight: bold; color: #555;">QR code to Share URL</span>
254255
</div>
255256
<div style="position: relative; margin-bottom: 20px;">
@@ -278,6 +279,20 @@ <h3 style="color:#004684; margin: 0; text-align: center; padding-top: 10px;">You
278279
</p>
279280
`;
280281

282+
if (typeof QRCode !== 'undefined') {
283+
document.getElementById("qrcode-container").innerHTML = "";
284+
new QRCode(document.getElementById("qrcode-container"), {
285+
text: shareUrl,
286+
width: 146,
287+
height: 146,
288+
colorDark: "#000000",
289+
colorLight: "#ffffff",
290+
correctLevel: QRCode.CorrectLevel.L
291+
});
292+
} else {
293+
document.getElementById("qrcode-container").innerText = "QR library failed to load.";
294+
}
295+
281296
// Automatically scroll safely up to view generated codes
282297
window.scrollTo({ top: 0, behavior: 'smooth' });
283298
}

docs/calendar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<link href="site_libs/quarto-html/quarto-syntax-highlighting-587c61ba64f3a5504c4d52d930310e48.css" rel="stylesheet" id="quarto-text-highlighting-styles">
4242
<script src="site_libs/bootstrap/bootstrap.min.js"></script>
4343
<link href="site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
44-
<link href="site_libs/bootstrap/bootstrap-c6a99d134d1fc7537dbf908e3f4db267.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light">
44+
<link href="site_libs/bootstrap/bootstrap-784cc24b6735f4fbd54fe98f47f34423.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light">
4545
<script id="quarto-search-options" type="application/json">{
4646
"location": "navbar",
4747
"copy-button": false,

docs/datascience.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<link href="site_libs/quarto-html/quarto-syntax-highlighting-587c61ba64f3a5504c4d52d930310e48.css" rel="stylesheet" id="quarto-text-highlighting-styles">
4242
<script src="site_libs/bootstrap/bootstrap.min.js"></script>
4343
<link href="site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
44-
<link href="site_libs/bootstrap/bootstrap-c6a99d134d1fc7537dbf908e3f4db267.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light">
44+
<link href="site_libs/bootstrap/bootstrap-784cc24b6735f4fbd54fe98f47f34423.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light">
4545
<script id="quarto-search-options" type="application/json">{
4646
"location": "navbar",
4747
"copy-button": false,

docs/img/bracket.png

-16.8 KB
Loading
-338 KB
Binary file not shown.

docs/qrcode.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)