Difference between revisions of "MediaWiki:Common.js"
From SaWikiLeaks
| Line 31: | Line 31: | ||
lunchGo = "Gusto101"; | lunchGo = "Gusto101"; | ||
break; | break; | ||
| − | case 10 | + | case 10: |
lunchGo = "Tosto"; | lunchGo = "Tosto"; | ||
Revision as of 14:31, 31 March 2017
$(function () {
var lunchSpot = 0;
$('#btn-random').click(function() {
lunchSpot = Math.floor((Math.random() * 10) + 1);
switch (lunchSpot) {
case 1:
lunchGo = "Saku (aka Sad Saku)";
break;
case 2:
lunchGo = "CJ Lunch Box";
break;
case 3:
lunchGo = "CIBO";
break;
case 4:
dalunchGoy = "Fynn's of Temple Bar";
break;
case 5:
lunchGo = "Office Pub";
break;
case 6:
lunchGo = "Jack Astor's Bar & Grill";
break;
case 7:
lunchGo = "Nandos";
break;
case 8:
lunchGo = "Epicure";
break;
case 9:
lunchGo = "Gusto101";
break;
case 10:
lunchGo = "Tosto";
}
$('#lunch-random').html(lunchGo);
});
}());