Welcome to Petetionary: Pictionary with my special touch. Hit New Word below to generate a new word to draw! You've one minute to craft your materpiece. Make sure your audio's on, an alarm will sound when time's up. I ain't a baker so there are no cookies. Don't refresh the page or you'll lose everything .
Pete's Protip: You can also play charades.
New Word
Your browser does not support the audio element.
<script>
// Don't be trying to spy on the inner workings!!!
// But if you're reading this, mash that button till the end.
var words = ["T25lIFBpZWNl", "amlnc2F3IHB1enpsZQ==", "YWdpbGU=", "SmlyYQ==", "YmVuZGluZw==", "bXkgY2FiYmFnZXM=", "U2FuIEZyYW5jaXNjbw==", "dGVjaCBicm8=", "c3RhcnR1cA==", "Z2VudHJpZmljYXRpb24=", "TWlzc291cmk=", "U3QuIExvdWlz", "Q2FsaWZvcm5pYQ==", "Q2h5bmE=", "Zm9vZGll", "VWJlcg==", "U3F1YXJl", "aGlwc3Rlcg==", "QkFSVA==", "Q2Fyb2xlIEJhc2tpbg==", "Sm9lIEV4b3RpYw==", "dGhlIFp1Y2M=", "UGF0YWd1Y2Np", "c2hlbHRlci1pbi1wbGFjZQ==", "Wm9vbQ==", "TmFydXRv", "dG9pbGV0IHBhcGVy", "aGFuZCBzYW5pdGl6ZXI=", "U29iZXk=", "Y2hpbGRyZW4ncyBjYXJkIGdhbWU=", "cXVhcnRlci1saWZlIGNyaXNpcw==", "Y29udmVydGVkIGxpdmluZyByb29t", "dGhlIHJlbGVudGxlc3MgbWFyY2ggb2YgdGltZQ==", "Z2xvcmlvdXMgdm9sdW1pbm91cyBxdWFyYW50aW5lIGhhaXI=", "dGhlIFNoYWRvdyBSZWFsbQ==", "UG90IG9mIEdyZWVk", "eW91ciBmYXZvcml0ZSBjb2xvcg==", "d2hhdCB5b3Ugd2FudGVkIHRvIGJlIHdoZW4geW91IGdyZXcgdXA=", "dGhlIGxhc3Qgc29uZyB5b3UgaGFkIG9uIHJlcGVhdA==", "dGhlIGNob3JlIHlvdSBtb3N0IGhhdGUgZG9pbmc=", "eW91ciBmYXZvcml0ZSBtb3ZpZQ==", "d2hhdCB5b3UgaGF0ZSBtb3N0IGFib3V0IFNG", "d2hhdCB5b3UgbG92ZSBtb3N0IGFib3V0IFNG", "d2hhdCB5b3UgbWlzcyB0aGUgbW9zdCBmcm9tIHlvdXIgaG9tZXRvd24=", "eW91ciBmYXZvcml0ZSBDRU8=", "eW91ciBndWlsdHkgcGxlYXN1cmU=", "eW91ciBmYXZvcml0ZSBmb29kL2N1aXNpbmU="];
var msg = ["VGltZQ==", "ZmxpZXM=", "d2hlbg==", "SQ==", "c3BlbmQ=", "aXQ=", "d2l0aA==", "eW91Lg=="];
var usedWords = [];
var i = 0;
function newWord() {
if (i == msg.length) {
storePreviousWord();
i++;
}
if (i < msg.length) {
storePreviousWord();
if (setNewWord()) {
setTimer();
} else {
clearInterval(x);
setMsg();
}
}
}
function setNewWord() {
if (words.length == 0) {
return false;
}
var newIndex = Math.floor(Math.random()*words.length);
var newWord = atob(words[newIndex]);
words.splice(newIndex, 1);
document.getElementById("word").innerHTML = newWord;
return true;
}
function storePreviousWord() {
var previousWord = document.getElementById("word").innerHTML;
if (previousWord !== "") {
usedWords.push(previousWord);
document.getElementById("usedwords").innerHTML = usedWords.join(" ");
}
}
function setMsg() {
if (i < msg.length) {
document.getElementById("timer").innerHTML = atob("SGkgU2hhd25lZQ==");
document.getElementById("word").innerHTML = atob(msg[i++]);
}
}
var x;
function setTimer() {
if (x !== undefined) {
clearInterval(x);
pauseAudio();
loadAudio();
}
var duration = 60000;
// Update the count down every 1 second
x = setInterval(function() {
duration = duration - 1000;
// Time calculations for days, hours, minutes and seconds
var minutes = Math.floor((duration % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((duration % (1000 * 60)) / 1000);
// Output the result in an element with id="demo"
document.getElementById("timer").innerHTML = "Time: " + minutes + ":" + seconds;
// If the count down is over, write some text
if (duration < 0) {
clearInterval(x);
document.getElementById("timer").innerHTML = "TIME'S UP";
playAudio();
}
}, 1000);
}
var timersound = document.getElementById("timersound");
function playAudio() {
timersound.play();
}
function pauseAudio() {
timersound.pause();
}
function loadAudio() {
timersound.load();
}
</script>