User:Alexander Roidl/xppl name generator: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
 
Line 1: Line 1:
[[File:Screen Shot 2018-06-09 at 18.59.54.png|framed]]
[[File:Screen Shot 2018-06-09 at 18.59.54.png|frameless]]
<pre>
<pre>
function generateTitle(elem){
function generateTitle(elem){

Latest revision as of 19:01, 9 June 2018

Screen Shot 2018-06-09 at 18.59.54.png

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)]);

}