prithivMLmods commited on
Commit
bbf108f
1 Parent(s): 50bf682

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +4 -4
index.html CHANGED
@@ -47,12 +47,12 @@
47
  <!-- Replace the src attribute with the actual image URLs -->
48
  <div class="gallery-item">
49
  <img src="assets/1.png" alt="Image 1">
50
- <i class="fas fa-copy copy-icon" onclick="copyToClipboard('assets/1.png')"></i>
51
  <p>Photo of a rainbow-haired, 19 years old, Asian girl</p>
52
  </div>
53
  <div class="gallery-item">
54
  <img src="7451277.jpeg" alt="Image 2">
55
- <i class="fas fa-copy copy-icon" onclick="copyToClipboard('7451277.jpeg')"></i>
56
  <p>A old granny with pink hair, 95 years old</p>
57
  </div>
58
  <!-- Add more gallery items as needed -->
@@ -62,11 +62,11 @@
62
  function copyToClipboard(text) {
63
  var dummy = document.createElement("textarea");
64
  document.body.appendChild(dummy);
65
- dummy.value = "assets/" + text.split("/").pop();
66
  dummy.select();
67
  document.execCommand("copy");
68
  document.body.removeChild(dummy);
69
- alert("Copied to clipboard: " + dummy.value);
70
  }
71
  </script>
72
  </body>
 
47
  <!-- Replace the src attribute with the actual image URLs -->
48
  <div class="gallery-item">
49
  <img src="assets/1.png" alt="Image 1">
50
+ <i class="fas fa-copy copy-icon" onclick="copyToClipboard('photo of a rainbow-haired, 19 years old, asian girl, beautiful, stunning, ,instagram model, discord profile picture face focused')"></i>
51
  <p>Photo of a rainbow-haired, 19 years old, Asian girl</p>
52
  </div>
53
  <div class="gallery-item">
54
  <img src="7451277.jpeg" alt="Image 2">
55
+ <i class="fas fa-copy copy-icon" onclick="copyToClipboard('a old granny with pink hair, 95 years old, instagram model, discord profile picture')"></i>
56
  <p>A old granny with pink hair, 95 years old</p>
57
  </div>
58
  <!-- Add more gallery items as needed -->
 
62
  function copyToClipboard(text) {
63
  var dummy = document.createElement("textarea");
64
  document.body.appendChild(dummy);
65
+ dummy.value = text;
66
  dummy.select();
67
  document.execCommand("copy");
68
  document.body.removeChild(dummy);
69
+ alert("Copied to clipboard: " + text);
70
  }
71
  </script>
72
  </body>