User:Manishearth/GadgetUS/USlist.js

Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/*Classes Header DON'T TOUCH

*/
function Script(id,location,title,description){
this.id=id
this.location=location
this.title=title
this.description=description
}

function USGroup(title){
this.title=title
this.scripts=new Array()
}
USGroup.prototype.add=function(id,location,title,description){
this.scripts[this.scripts.length]= new Script(id,location,title,description)
}


//DATA
var USGroups=[new USGroup("Foo"),new USGroup("Boo"),new USGroup("Moo")]

with(USGroups[0]){
add("Bar","User:Manishearth/a.js","raB","Quok")
add("Hello","User:Manishearth/b.js","olleH","Boom")
}
with(USGroups[1]){
add("Barz","User:Manishearth/az.js","Barzul","Qzuok")
add("Hzello","User:Manishearth/bz.js","Howdy","Bzoom")
}
with(USGroups[2]){
add("Barf","User:Manishearth/af.js","Puke","Quofk")
add("fHello","User:Manishearth/bf.js","Nuke","fBoom")
}