master
Aevann1 2021-10-01 05:27:52 +02:00
parent a0a74c3b45
commit 21ee3f1fec
1 changed files with 3 additions and 3 deletions

View File

@ -2,9 +2,9 @@
<script>
function vote(type, id, dir) {
var upvote = document.getElementsByClassName(type + '-' + id + '-up');
var downvote = document.getElementsByClassName(type + '-' + id + '-down');
var scoretext = document.getElementsByClassName(type + '-score-' + id);
var upvote = document.getElementById(type + '-' + id + '-up');
var downvote = document.getElementById(type + '-' + id + '-down');
var scoretext = document.getElementById(type + '-score-' + id);
var score = Number(scoretext.textContent);