Spaces:
Running
Running
Upload gallery.html
Browse files- gallery.html +13 -0
gallery.html
CHANGED
|
@@ -466,6 +466,10 @@
|
|
| 466 |
<label> </label>
|
| 467 |
<button class="btn" onclick="clearFilters()">β Clear</button>
|
| 468 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 469 |
</div>
|
| 470 |
|
| 471 |
<div class="stats-bar" id="statsBar"></div>
|
|
@@ -903,6 +907,15 @@
|
|
| 903 |
renderGallery();
|
| 904 |
}
|
| 905 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 906 |
function downloadCurrentSample() {
|
| 907 |
if (modalItems.length === 0) return;
|
| 908 |
const current = modalItems[modalIndex];
|
|
|
|
| 466 |
<label> </label>
|
| 467 |
<button class="btn" onclick="clearFilters()">β Clear</button>
|
| 468 |
</div>
|
| 469 |
+
<div class="control-group" style="justify-content:flex-end;">
|
| 470 |
+
<label> </label>
|
| 471 |
+
<button class="btn" id="copyLinkBtn" onclick="copyLink()">π Copy Link</button>
|
| 472 |
+
</div>
|
| 473 |
</div>
|
| 474 |
|
| 475 |
<div class="stats-bar" id="statsBar"></div>
|
|
|
|
| 907 |
renderGallery();
|
| 908 |
}
|
| 909 |
|
| 910 |
+
function copyLink() {
|
| 911 |
+
const url = window.location.href;
|
| 912 |
+
navigator.clipboard.writeText(url).then(() => {
|
| 913 |
+
const btn = document.getElementById('copyLinkBtn');
|
| 914 |
+
btn.textContent = 'β Copied!';
|
| 915 |
+
setTimeout(() => { btn.textContent = 'π Copy Link'; }, 2000);
|
| 916 |
+
});
|
| 917 |
+
}
|
| 918 |
+
|
| 919 |
function downloadCurrentSample() {
|
| 920 |
if (modalItems.length === 0) return;
|
| 921 |
const current = modalItems[modalIndex];
|