forked from Maxluli/TinderPokemon
Added event handler for the main page buttons
This commit is contained in:
13
index.html
13
index.html
@@ -66,5 +66,16 @@
|
||||
</div>
|
||||
<i class="fa-solid fa-house"></i>
|
||||
</body>
|
||||
|
||||
<script>
|
||||
"use strict";
|
||||
document.getElementById('likeButton').onclick = function(){
|
||||
alert("You want to like");
|
||||
};
|
||||
document.getElementById('nopeButton').onclick = function(){
|
||||
alert("You want to nope");
|
||||
}
|
||||
document.getElementById('favoriteButton').onclick = function(){
|
||||
alert("You want to fav");
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
Reference in New Issue
Block a user