mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
15 lines
450 B
HTML
15 lines
450 B
HTML
<div style="float:right; padding: 1em;" onclick="chicken();" title="Cluck me!">
|
|
<script type="text/javascript">
|
|
let options = [
|
|
"What the cluck?",
|
|
"Go cluck yourself!",
|
|
"I don't give a cluck!",
|
|
"Cluck off!",
|
|
"That farmer clucked me over!"
|
|
];
|
|
function chicken() {
|
|
document.getElementById("chirp").textContent = options[ Math.floor(options.length * Math.random()) ];
|
|
}
|
|
</script>
|
|
<p><span id="chirp"></span> 🐔</p>
|
|
</div> |