<html>
<head> <style>body { text-align: center; } img { border-radius: 10px; } button { touch-action: manipulation; margin:5px; border-radius: 10px; border: none; color: white; padding: 10px; font-size: 16px; } #upvote { background-color: green; } #downvote { background-color: red; } #votes { font-weight: bold; font-size: 25px; }</style>
</head>
<body>
<h1>Bear of the Year</h1> <img src="https://mimo.app/i/panda.png"> <p><em>Nom nom nom</em></p> <p id="votes">3 votes</p> <button id="upvote" onclick="upvote()">Upvote</button> <button id="downvote" onclick="downvote()">Downvote</button>
<script> var counter = 3; function upvote() { counter = counter + 1; document.getElementById("votes").innerHTML = counter + " votes"; } function downvote() { counter = counter - 1; document.getElementById("votes").innerHTML = counter + " votes"; }
</script>
</body>
</html>]]>