Add voting javascript (doesn't do anything yet)

This commit is contained in:
Koen Bolhuis 2018-10-09 21:45:26 +02:00
parent a119b9c85d
commit 7f481afdd8
2 changed files with 11 additions and 0 deletions

View File

@ -193,5 +193,6 @@
<!-- Custom scripts -->
<script src="js/main.js"></script>
<script src="js/voting.js"></script>
</body>
</html>

View File

@ -0,0 +1,10 @@
$(function() {
$(".vote-up").click(function() {
var review = $(this).attr("data-review-id");
// Vote up
});
$(".vote-down").click(function() {
var review = $(this).attr("data-review-id");
// Vote down
});
});