added random welcome phrases

This commit is contained in:
Techno Duck 2024-03-03 14:18:25 -05:00
parent 28df04b5d0
commit 15b3331126
Signed by: technoduck
GPG key ID: 0418ACC82FFA9D04
2 changed files with 15 additions and 2 deletions

View file

@ -12,7 +12,14 @@ sitemail = duck@technoduck.me
# site generator.
sitegenerator = saait (https://git.codemadness.org/saait/file/README.html)
#site welcome message
welcome_message = Silliness and tomfooler are afoot, and who am I to stop it.
wm1 = Silliness and tomfooler are afoot, and who am I to stop it.
wm2 = Low entropy self replicating phenomenon that generates a binding force called compassion.
wm3 = I was born in the late Holocene and I've seen some shit.
wm4 = Silliness and tomfoolery are afoot, and who am I to stop it.
wm5 = If there's a deal meant for you, any wild place on earth will do.
wm6 = Live long and prosper.
wm7 = Prometheus they say brought gods fire down to man and we've caught it tamed it trained it since our history began.
# page

View file

@ -41,7 +41,13 @@
</td>
</tr>
</table>
<p>${welcome_message}</p>
<p id="welcome_message"></p>
<script>
var welcome_messages = ["${wm1}","${wm2}","${wm3}","${wm4}","${wm5}","${wm6}","${wm7}"];
const welcome_message = welcome_messages[Math.floor(Math.random() * welcome_messages.length)];
document.getElementById('welcome_message').innerHTML = welcome_message;
</script>
</nav>
<hr class="hidden" />
<main id="mainwrap">