Skip to content

Commit

Permalink
Fix videos_len
Browse files Browse the repository at this point in the history
  • Loading branch information
M4RC02U1F4A4 committed May 30, 2023
1 parent 31f0d7f commit 50e0aaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/templates/script.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
function read(id) {
// console.log(id);
document.getElementById('div'+id).outerHTML = ""
document.getElementById('videos_len').innerHTML = Number(document.getElementById('videos_len').innerHTML) - 1
document.getElementById('videos_len1').innerHTML = Number(document.getElementById('videos_len1').innerHTML) - 1
document.getElementById('videos_len2').innerHTML = Number(document.getElementById('videos_len2').innerHTML) - 1
httpGetAsync("/read/"+id)
}
</script>
4 changes: 2 additions & 2 deletions app/templates/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<a href="/" class="nav-link text-white" aria-current="page">
{% endif %}
<svg class="bi pe-none me-2" width="16" height="16"><use xlink:href="#home"></use></svg>
Home (<span id="videos_len">{{ videos_len }}</span>)
Home (<span id="videos_len1">{{ videos_len }}</span>)
</a>
</li>
<hr>
Expand Down Expand Up @@ -77,7 +77,7 @@
<a href="/" class="nav-link text-white" aria-current="page">
{% endif %}
<svg class="bi pe-none me-2" width="16" height="16"><use xlink:href="#home"></use></svg>
Home (<span id="videos_len">{{ videos_len }}</span>)
Home (<span id="videos_len2">{{ videos_len }}</span>)
</a>
</li>
<hr>
Expand Down

0 comments on commit 50e0aaf

Please sign in to comment.