malcolmrey commited on
Commit
7aac07b
Β·
verified Β·
1 Parent(s): 4d2bae5

Upload gallery.html

Browse files
Files changed (1) hide show
  1. gallery.html +13 -0
gallery.html CHANGED
@@ -466,6 +466,10 @@
466
  <label>&nbsp;</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>&nbsp;</label>
467
  <button class="btn" onclick="clearFilters()">βœ• Clear</button>
468
  </div>
469
+ <div class="control-group" style="justify-content:flex-end;">
470
+ <label>&nbsp;</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];