BraydenMoore commited on
Commit
115b217
1 Parent(s): 489188b

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +7 -5
templates/index.html CHANGED
@@ -215,15 +215,17 @@
215
 
216
  <div style="display: flex; margin-top: 22px; margin-bottom: 0%;">
217
 
218
- <button class="hoverButton" onclick="window.location.href='?new=true'" style="border-radius: 5px; border: 2px solid yellow; background-color: transparent; padding: 10px;">
 
219
  another
220
  </button>
221
-
222
- <a id="refreshSameFeedButton" style="display: inline-block;">
223
- <button class="hoverButton" onclick="window.location.href='?new=false&id={{ id }}'" style="border-radius: 5px; border: 2px solid rgb(53, 53, 53); background-color: transparent; padding: 10px;">
224
  refresh
225
  </button>
226
  </a>
 
227
  <i id="share" class="fa-solid fa-link" data-id="{{ id }}"></i>
228
  <p id="copied" class="tag" style="visibility: hidden;">copied</p>
229
  </div>
@@ -389,7 +391,7 @@
389
  // Stop stream when click button
390
  document.querySelectorAll('hoverButton').forEach(button => {
391
  button.addEventListener('click', () => {
392
- fetch('/abort_stream');
393
  });
394
  });
395
 
 
215
 
216
  <div style="display: flex; margin-top: 22px; margin-bottom: 0%;">
217
 
218
+ <a href="?new=true" style="margin-right: 10px; display: inline-block;">
219
+ <button class="hoverButton" style="border-radius: 5px; border: 2px solid yellow; background-color: transparent; padding: 10px;">
220
  another
221
  </button>
222
+ </a>
223
+ <a href="?new=false&id={{ id }}" id="refreshSameFeedButton" style="display: inline-block;">
224
+ <button class="hoverButton" style="border-radius: 5px; border: 2px solid rgb(53, 53, 53); background-color: transparent; padding: 10px;">
225
  refresh
226
  </button>
227
  </a>
228
+
229
  <i id="share" class="fa-solid fa-link" data-id="{{ id }}"></i>
230
  <p id="copied" class="tag" style="visibility: hidden;">copied</p>
231
  </div>
 
391
  // Stop stream when click button
392
  document.querySelectorAll('hoverButton').forEach(button => {
393
  button.addEventListener('click', () => {
394
+ init();
395
  });
396
  });
397