User:Alexander Roidl/xppl name generator

From XPUB & Lens-Based wiki
< User:Alexander Roidl
Revision as of 10:05, 1 June 2018 by Alexander Roidl (talk | contribs) (Created page with "<pre> function generateTitle(elem){ var x = ["XPERIMENTAL"] var p1 = ["POTENTIAL", "PUBLIC", "POST", "PI", "PLATFORM FOR", "PRETENTIOUS"] var p2 = ["PIRATE", "PERFORMATIVE", "...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
function generateTitle(elem){
var x = ["XPERIMENTAL"]
var p1 = ["POTENTIAL", "PUBLIC", "POST", "PI", "PLATFORM FOR", "PRETENTIOUS"]
var p2 = ["PIRATE", "PERFORMATIVE", "PUBLIC", "PUBLISHING", "POTENTIAL"]
var l = ["LIBRARY", "LIAISON", "LAB", "LEGALITY", "LABOUR"]

$(elem).text(x[Math.floor(Math.random()*x.length)]+" "+p1[Math.floor(Math.random()*p1.length)]+" "+p2[Math.floor(Math.random()*p2.length)]+" "+l[Math.floor(Math.random()*l.length)]);

}