-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
121 lines (106 loc) · 8.11 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="./style.css">
<meta charset="utf-8">
<title>Bogan Ipsum - Get it up ya!</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Bogan Ipsum Generator">
</head>
<script>
// SPDX-License-Identifier: MIT
// https://github.com/rvagg/node-boganipsum
var fillers = ["and","to","also","with","where","when","how","mate","my","flamin","bloody","heaps","no dramas","no worries","piece of piss"];
var phrases = ["Watch out for the","It'll be","Lets get some","Shazza got us some","Lets throw a","He's got a massive","He hasn't got a","Built like a","We're going","Trent from punchy","Get a dog up ya","As busy as a","Grab us a","Come a","Mad as a","As dry as a","As stands out like","As cunning as a","Flat out like a","As cross as a","Gutful of","She'll be right","You little ripper","Stands out like a","She'll be right","Just chuck her in the ute","Get on the cans","Hit the frog and toad","Slab of tinnies","Pocket me lighter","On compo mate","Ciggie butt brain","This is a joke"];
var words = ["Shazza","Bazza","Flanno","VB","Mokkies","Mullet","Holden","Ford","Khe Sanh","Bottlo","Slabs","Smokes","Slaps","Ciggies","Dunny","Mates","ya","gutta","decent nik","Barbie","Booze","G'day","Sickie","Ute","Trackies","Bogan","Dag","Sheila","Wuss","Uluru","Galah","Jackaroo","Dob","Bonza","Cockie","Dinky-di","Ugg","Waratah","Ironman","Ridgy-didge","Bradman","Struth","No dramas","Ace!","Aerial pingpong","Amber fluid","Ambo","Ankle biter","Apples","Arvo","Aussie salute","Avos","Back of Bourke","Bail up","Bail out","Banana bender","Barbie","Barrack","Bastard","Bathers","Battler","Beauty","Big Smoke","Bikkie","Billabong","Billy","Bingle","Bities","Bitzer","Bizzo","Bloke","Bloody oath","Blow in the bag","Blowie","Bludger","Blue","Bluey","Slacker","Bodgy","Bog standard","Bogged","Boil-over","Bonzer","Boogie board","Booze bus","Boozer","Bored sh*tless","Bottle-o","His blood's worth bottling","Bounce","Not my bowl of rice","Brass razoo","Brekkie","Brickie","Brisvegas","Brizzie","Brumby","Buck's night","Buckley's chance","Budgie smugglers","Bull bar","Bundy","Bunyip","Bush bash","Bush oyster","Bush telly","Bushie","Bushranger","Butcher","Cab Sav","Cactus mate","Cane toad","Captain Cook","Cark it","Cat burying shit","Chewie","Chokkie","Chook","Chrissie","Christmas","Chuck a sickie","Chunder","Clacker","Cleanskin","Ten Clicks away","Clucky","Coathanger","Cobber","Cockie","Parma","Coldie","Compo","Cooee","Cracker","Cook","Corker","Counter meal","Boardies","Crack a fat","Cranky","Cream","Crook","Cubby house","Cut lunch","Cut lunch commando","Cut snake","Dag","Daks","Damper","Dead dingo's donger","Dead horse","Deadset","Dero","Dickhead","Digger","Dill","Fair dinkum","Dinky-di","Dipstick","Divvy van","Dog's balls","Dole bludger","Donger","Doovalacky","Down Under","Drongo","Dropkick","Spit The Dummy","Dunny","Dunny rat","Durry","Esky","Fair dinkum","Fair go","Fairy floss","Feral","Figjam","Fisho","Flake","Lizard drinking","Flick","Fly wire","Aussie Rules Footy","Fossicker","Franger","Freckle","Fremantle Doctor","Freo","Frog in a sock","Fruit loop","Galah","Garbo","Give it a burl","Gobful","Gobsmacked","Going off","Good oil","Good onya","Greenie","Grog","Grouse","Grundies","Gyno","Holy dooley!","Hoon","Hooroo","Hottie","Icy pole","Jillaroo","Joey","Jug","Jumbuck","Kelpie","Kero","Kindie","Knock","Larrikin","Lippy","Longneck","Lurk","Maccas","Mappa Tassie","Mate","Mate's rate","Metho","Mickey Mouse Mate","Middy","Milk bar","Mongrel","Moolah","Mozzie","Muster","Nipper","No-hoper","Ocker","Offsider","Old fella","Oldies","Op shop","Outback","Paddock","Pash","Pav","Perve","Pig's arse","Piker","Pint","Plonk","Pokies","Porky","Postie","Pot","Pozzy","Prezzy","Quid","Rack off","Rage on","Rapt","Ratbag","Reckon","Rego","Relo","Ridgy-didge","Rip snorter","Ripper","Road train","Roadie","Rock up","Rollie","Roo","Roo bar","Ropeable","Rort","Rotten","Rubbish","Sanger","Schooner","Scratchy","Two pot screamer","Servo","Shag on a rock","Swagger","Sheila","Shit house","Shonky","You're Shout","Show pony","Sickie","Skite","Slab","Sleepout","Smoko","Snag","Sook","Spag bol","Spewin'","Pretty spiffy","Spit the dummy","Squizz","Stickybeak","Stoked","Stonkered","Strewth","Strides","Stubby","Stubby holder","Sunnies","Swag","Thingo","Thongs","Throw-down","Tinny","Too right!","Top End","Trackie dacks","Trackies","Troppo","Truckie","True blue","Tucker","Tucker-bag","Turps","Hit the turps","Two up","Ugg boots","Ute","Vee dub","Veg out","Vinnie's","Waggin' school","Gone Walkabout","Whinge","Wobbly","Wuss","Yabber","Yakka","Chuck a yewy","Yobbo","Bin Chicken","Magpie","Dazza"];
var uncleanFillers = ["no shit","fuck yeah"]
var uncleanPhrases = ["We aren't here to fuck spiders","Fucks goin' on cunt","See you next tuesday","As useful as taste buds in an arsehole","Fucking dog cunt","Unfucking believable","Your fucked mate","Do I fuckin know you","You fuckin stingy cunt","Get the fuck out of here","Fuckin listen to me mate","You're a dickhead mate","Shits fucked","Taking the piss","Flying fuck","Fucken oath","Fight me cunt","Lets get fuckin drunk","Come get fucked up with us"]
var uncleanWords = ["Pisshead","Brick shit house","Cunt","Kent","Tits","Jugs","Kazza","Shindig","Yank","Seppo","Fuck","Cunt","Shit"]
function pickRandom(type, lower) {
r = Math.min(Math.floor(Math.random() * type.length), type.length - 1)
if (lower) {
return type[r].toLowerCase()
}
return type[r]
}
function generateSentence(moreAussie) {
if (moreAussie) {
sentence = [
pickRandom(phrases.concat(uncleanPhrases), false),
pickRandom(words.concat(uncleanWords), true),
pickRandom(fillers.concat(uncleanFillers), true),
pickRandom(phrases.concat(uncleanPhrases), true),
pickRandom(words.concat(uncleanWords), true),
].join(' ')
return formatSentence(sentence)
}
sentence = [
pickRandom(phrases, false),
pickRandom(words, true),
pickRandom(fillers, true),
pickRandom(phrases, true),
pickRandom(words, true),
].join(' ')
return formatSentence(sentence)
}
function generateParagraphs(moreAussie) {
var arr = [];
for (var i = 0; i < 4; i++) {
var sentences = (Math.random() * (9 - 4)) + 4;
var sentence = [];
for (var j = 0; j < sentences; j++) {
sentence.push(generateSentence(moreAussie)) ;
}
arr.push(sentence.join(' '));
}
return arr.join('<br><br>');
}
function formatSentence(sentence) {
var sentence = sentence.charAt(0).toUpperCase() + sentence.slice(1)
var r = Math.ceil(Math.random() * 10)
if (r <= 8) {
return sentence + "."
}
if (r = 9) {
return sentence + "?"
}
return sentence + "!"
}
function updateIpsum() {
var mo = document.getElementById('moreAussie');
var el = document.getElementById("ipsum");
el.innerHTML = generateParagraphs(mo.checked);
}
</script>
<body onload="updateIpsum();">
<header>
<div class='search-header-wrapper'>
<h1>Bogan Ipsum Generator</h1>
<h2 style="transform: rotate(-3deg);">She's ridgy didge!</h2>
</div>
</header>
<main>
<center>
<button type="button" onclick="updateIpsum();">Have another crack</button>
<br>
<label>
<input type="checkbox" id="moreAussie" value="More Australian">Add more aussie (NSFW)
</label>
</center><br>
<div id='ipsum'></div>
<img id="bogan" style="position: absolute; right: 0; bottom: 0; height: 300px;" src="./bogan.png" />
</main>
<footer>
<div class='footer-wrapper'>
<p>
Created by <a href="http://twitter.com/boyter" target="_blank">@boyter</a><br/>
Powered by ☕
</p>
<small>
<i>We acknowledge Aboriginal and Torres Strait Islander peoples as the First Australians and
Traditional Custodians of the lands where we live, learn and work.</i>
</small>
</div>
</footer>
</body>
</html>