view js/joke.js @ 3:fa68715e621f

- Add more templates as sources to be shown in the IDE, - Add about and template for download
author David Demelier <markand@malikania.fr>
date Mon, 08 Feb 2016 13:21:08 +0100
parents 31a29a1e66d7
children 9c2a87f8a15f
line wrap: on
line source

var jokes = [
	"Where can you find a bot? where you placed it.",
	"There was a bot which met and other bot and welcomed each other, stack overflow happened.",
	"I cannot bot because of systemd.",
	"I'm tired because I don't have enough bottery.",
	"The IRC bot done right!",
	"I have no idea what i'm doing."
];

window.onload = function () {
	document.getElementById("joke").innerHTML = jokes[Math.floor(Math.random() * jokes.length)];
}