Skip to content

Instantly share code, notes, and snippets.

@ActuallyACat
Created December 18, 2019 05:28
Show Gist options
  • Save ActuallyACat/c391d031be4686f43832a4957a160336 to your computer and use it in GitHub Desktop.
Save ActuallyACat/c391d031be4686f43832a4957a160336 to your computer and use it in GitHub Desktop.
function generator () {
var wordlist3 = [
{
"words": "hassle our fucking Prime Minister on twitter",
"link": "https://twitter.com/ScottMorrisonMP"
},
{
"words": "share my fucked up experience in the bushfires",
"link": "https://docs.google.com/document/d/1L8eynqn5RSsMZ5bdS4E2UaTtFEr9nDizr5eTjn0jBck/edit# "
},
{
"words": "give cash to some other legends to deal with this bollocks",
"link": "https://www.seedmob.org.au/donate"
},
{
"words": "talk to my fucking friends",
"link": "https://docs.google.com/document/d/1QIaABrNBSIJ5sOoVnV3Yk3rG-yqodQxRMHXtg9c9wi4/edit"
},
{
"words": "have a fucking rant on talk-back radio",
"link": "https://www.smh.com.au/entertainment/tv-and-radio/confessions-of-a-talkback-radio-producer-20101129-18cub.html"
}
];
var placeholder = document.getElementById('placeholder');
var randomNum = Math.floor(Math.random() * 5) - 1;
placeholder.innerHTML = '<div id="result">' + wordlist3[randomNum].words + '</div>';
var footer = document.getElementById('footer');
footer.innerHTML = '<a href="' + wordlist3[randomNum].link + '">link</a>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment