mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Nothing to see here.
This commit is contained in:
15
_includes/elements/chicken.html
Normal file
15
_includes/elements/chicken.html
Normal 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>
|
||||||
2
index.md
2
index.md
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user