Nothing to see here.

This commit is contained in:
2025-01-24 17:11:51 +11:00
parent f5ebbdf847
commit 062f676f52
2 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
<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>

View File

@@ -3,6 +3,8 @@ layout: page
title: The Toy Programming Language title: The Toy Programming Language
--- ---
{% elements/chicken.html %}
<div style="justify-self: center;"> <div style="justify-self: center;">
<image src="assets/toylogo.png" width="250" height="250" /> <image src="assets/toylogo.png" width="250" height="250" />
</div> </div>