index.html (8398B)
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="utf-8"> 5 <meta name="viewport" content="width=device-width, initial-scale=1"> 6 <title>onlyn00bs badge · photos</title> 7 <meta name="description" content="OnlyN00bs badges in the wild at DEF CON 34."> 8 <meta name="color-scheme" content="dark light"> 9 <meta property="og:title" content="onlyn00bs badge · photos"> 10 <meta property="og:description" content="OnlyN00bs badges in the wild at DEF CON 34."> 11 <meta property="og:type" content="website"> 12 <meta property="og:site_name" content="virtualshack"> 13 <meta property="og:url" content="https://badge.virtualshack.io/gallery/"> 14 <meta property="og:image" content="https://badge.virtualshack.io/assets/img/og-badge.jpg"> 15 <meta property="og:image:width" content="1200"> 16 <meta property="og:image:height" content="630"> 17 <meta name="twitter:card" content="summary_large_image"> 18 <meta name="twitter:image" content="https://badge.virtualshack.io/assets/img/og-badge.jpg"> 19 <!-- ?v= must match CACHE in ../sw.js — same rule as index.html --> 20 <link rel="stylesheet" href="../assets/badge.css?v=48"> 21 <link rel="icon" type="image/svg+xml" href="../assets/icon.svg"> 22 <link rel="manifest" href="../manifest.webmanifest"> 23 <meta name="theme-color" content="#212121"> 24 </head> 25 <body> 26 <main class="wrapper" id="top"> 27 28 <h1>// photos</h1> 29 <p class="tagline">onlyn00bs badges in the wild · def con 34</p> 30 <p class="small muted"><a href="https://virtualshack.io/">virtualshack.io</a> / 31 <a href="../">badge</a> / photos</p> 32 33 <!-- The grid between these markers is generated from the gallery manifest. --> 34 <!-- gallery:begin --> 35 <div class="gallery"> 36 <figure> 37 <a href="../assets/gallery/dc34-01.jpg" data-w="1600" data-h="1200"><img src="../assets/gallery/thumbs/dc34-01.jpg" alt="A green OnlyN00bs badge on the finder screen beside the official DEF CON 34 badge and a challenge coin, with a purple foot charm on the case" 38 width="720" height="540" loading="lazy" decoding="async"></a> 39 </figure> 40 <figure> 41 <a href="../assets/gallery/dc34-02.jpg" data-w="1234" data-h="929"><img src="../assets/gallery/thumbs/dc34-02.jpg" alt="A hand holding a purple OnlyN00bs badge on the finder screen, with a green badge on a lanyard behind it" 42 width="720" height="542" loading="lazy" decoding="async"></a> 43 </figure> 44 <figure> 45 <a href="../assets/gallery/dc34-03.jpg" data-w="929" data-h="1238"><img src="../assets/gallery/thumbs/dc34-03.jpg" alt="A lavender badge with foot and gummy-bear charms, its finder screen listing five nearby badges" 46 width="540" height="720" loading="lazy" decoding="async"></a> 47 </figure> 48 <figure> 49 <a href="../assets/gallery/dc34-04.jpg" data-w="1234" data-h="929"><img src="../assets/gallery/thumbs/dc34-04.jpg" alt="A purple and a blue OnlyN00bs badge side by side on a table, both on the home screen, decorated with charms" 50 width="720" height="542" loading="lazy" decoding="async"></a> 51 </figure> 52 <figure> 53 <a href="../assets/gallery/dc34-05.jpg" data-w="929" data-h="1238"><img src="../assets/gallery/thumbs/dc34-05.jpg" alt="A pastel badge on the home screen in front of a table covered in more badges and OnlyN00bs lanyards" 54 width="540" height="720" loading="lazy" decoding="async"></a> 55 </figure> 56 <figure> 57 <a href="../assets/gallery/dc34-06.jpg" data-w="929" data-h="1238"><img src="../assets/gallery/thumbs/dc34-06.jpg" alt="A small lavender badge on a table, its screen showing the avatar's shower-time reminder" 58 width="540" height="720" loading="lazy" decoding="async"></a> 59 </figure> 60 <figure> 61 <a href="../assets/gallery/dc34-08.jpg" data-w="1234" data-h="929"><img src="../assets/gallery/thumbs/dc34-08.jpg" alt="Two hands holding a purple badge on the finder screen, with green badges behind it" 62 width="720" height="542" loading="lazy" decoding="async"></a> 63 </figure> 64 <figure> 65 <a href="../assets/gallery/dc34-09.jpg" data-w="1600" data-h="1200"><img src="../assets/gallery/thumbs/dc34-09.jpg" alt="A mint-green badge on the home screen with pink foot, red dinosaur and cat charms, on its lanyard" 66 width="720" height="540" loading="lazy" decoding="async"></a> 67 </figure> 68 <figure> 69 <a href="../assets/gallery/dc34-10.jpg" data-w="1245" data-h="938"><img src="../assets/gallery/thumbs/dc34-10.jpg" alt="A desk covered in ESP32 dev boards, wired up in bundles of red, blue and green jumper leads beside a purple-lit keyboard" 70 width="720" height="542" loading="lazy" decoding="async"></a> 71 </figure> 72 <figure> 73 <a href="../assets/gallery/dc34-11.jpg" data-w="1245" data-h="938"><img src="../assets/gallery/thumbs/dc34-11.jpg" alt="About forty badges mid-assembly in blue, green, purple and pink cases, spread across a folding table with tools and bags of parts" 74 width="720" height="542" loading="lazy" decoding="async"></a> 75 </figure> 76 <figure> 77 <a href="../assets/gallery/dc34-12.jpg" data-w="1245" data-h="938"><img src="../assets/gallery/thumbs/dc34-12.jpg" alt="Three OnlyN00bs badges held up side by side on the home screen: a blue one, a black one in stealth mode, and a black one wearing a tophat, all decorated with charms" 78 width="720" height="542" loading="lazy" decoding="async"></a> 79 </figure> 80 </div> 81 <!-- gallery:end --> 82 83 <p class="small muted">Photos CC BY-SA 4.0 · virtualtack. 84 <a href="../#source">The badge is open source too.</a></p> 85 86 <p style="text-align:center"><a class="totop" href="../">← back to the badge</a></p> 87 88 </main> 89 90 <dialog class="lightbox" id="lightbox" aria-label="photo viewer"> 91 <figure><img alt=""><figcaption></figcaption></figure> 92 <button class="close" type="button" aria-label="close">✕</button> 93 <button class="prev" type="button" aria-label="previous photo">←</button> 94 <button class="next" type="button" aria-label="next photo">→</button> 95 <span class="count"></span> 96 </dialog> 97 98 <script> 99 // Lightbox. Progressive enhancement: every tile is a real link to the full image, so with 100 // no JS (or no <dialog>) a click just opens the photo. Modifier-clicks are left alone so 101 // "open in new tab" still works. 102 (() => { 103 const links = [...document.querySelectorAll(".gallery a")]; 104 const dlg = document.getElementById("lightbox"); 105 if (!links.length || !dlg.showModal) return; 106 const img = dlg.querySelector("img"); 107 const cap = dlg.querySelector("figcaption"); 108 const count = dlg.querySelector(".count"); 109 let i = 0; 110 111 const show = (n) => { 112 i = (n + links.length) % links.length; 113 const a = links[i]; 114 const fc = a.closest("figure").querySelector("figcaption"); 115 img.width = a.dataset.w; // reserve the shape before the bytes arrive 116 img.height = a.dataset.h; 117 img.src = a.href; 118 img.alt = a.querySelector("img").alt; 119 cap.textContent = fc ? fc.textContent : ""; 120 count.textContent = `${i + 1} / ${links.length}`; 121 new Image().src = links[(i + 1) % links.length].href; // warm the next one 122 }; 123 124 links.forEach((a, n) => a.addEventListener("click", (e) => { 125 if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button) return; 126 e.preventDefault(); 127 show(n); 128 dlg.showModal(); 129 })); 130 dlg.querySelector(".prev").addEventListener("click", () => show(i - 1)); 131 dlg.querySelector(".next").addEventListener("click", () => show(i + 1)); 132 dlg.querySelector(".close").addEventListener("click", () => dlg.close()); 133 dlg.addEventListener("click", (e) => { if (e.target === dlg) dlg.close(); }); // empty space 134 dlg.addEventListener("keydown", (e) => { 135 if (e.key === "ArrowLeft") show(i - 1); 136 if (e.key === "ArrowRight") show(i + 1); 137 }); 138 let x0 = null; 139 dlg.addEventListener("touchstart", (e) => { x0 = e.touches[0].clientX; }, { passive: true }); 140 dlg.addEventListener("touchend", (e) => { 141 if (x0 === null) return; 142 const dx = e.changedTouches[0].clientX - x0; 143 x0 = null; 144 if (Math.abs(dx) > 50) show(i + (dx < 0 ? 1 : -1)); 145 }); 146 dlg.addEventListener("close", () => img.removeAttribute("src")); 147 })(); 148 149 if ("serviceWorker" in navigator) { 150 addEventListener("load", () => navigator.serviceWorker.register("../sw.js").catch(() => {})); 151 } 152 </script> 153 </body> 154 </html>