Fond du Lac Campus
Campus Life
Contact Us
Aladdin Food & Services Mgmt.
920-424-4330
godards@cadariopizza.net
Food Service
on the Fond du Lac Campus
在丰迪拉克校区,您将在我们的餐饮区找到美味,方便的食物 Aladdin Food & Services Management.
阿拉丁还与大学图书公司合作 & 今年更多的是在校内食堂出售重要的学习用品. 这些物资包括笔、纸、荧光笔等.
(function ($) {
$(document).ready(function(){
function dining() {
return $.ajax({
url: "http://portal.housing.cadariopizza.net/Feeds/GetCampusHoursJsonResult/9",
dataType: "jsonp"
})
.done(function(dininghours) {
console.log(dininghours);
var i, x = "";
var d, y = "";
var h, z = "";
var w = "";
var hour = new Date().getHours();
$("#weekspan").append(dininghours.weekString);
for (i = 0; i < dininghours.locations.length; i++){
$("#dininghours").append("
");
var dlocationid = "dining-"+(i+1);
var dhoursid = "dining-"+(i+1)+"_hours";
// $("#"+dlocationid).append("
" + dininghours.locations[i].Name + "
"); $("#"+dlocationid).append("- ");
for (d = 0; d < dininghours.locations[i].DH.length; d++) {
$("#"+dhoursid).append("
- ");
Var dayid = dlocationid + "_day-" + (d+1);
if (dininghours.locations[i].DH[d].daysSpanning.length > 1){
var firstday = moment().weekday(dininghours.locations[i].DH[d].daysSpanning[0]).format('ddd');
var lastday = moment().weekday(dininghours.locations[i].DH[d].daysSpanning[dininghours.locations[i].DH[d].daysSpanning.length-1]).format('ddd');
$("#"+dayid).append(""+ firstday + " - " + lastday + ": ");
for (h = 0; h < dininghours.locations[i].DH[d].hoursList.length; h++) {
if (dininghours.locations[i].DH[d].hoursList[h].StartTime == dininghours.locations[i].DH[d].hoursList[h].EndTime){
var facilityhours = 'Closed';
$("#"+dayid).append(facilityhours);
}
else{
var start = moment(dininghours.locations[i].DH[d].hoursList[h].StartTime).format('h:mm a');
var end = moment(dininghours.locations[i].DH[d].hoursList[h].EndTime).format('h:mm a');
var facilityhours = "";
if (h == 0) {
facilityhours = '';
}
if (h > 0 && dininghours.locations[i].DH[d].hoursList.length > 2) {
facilityhours += ', ';
}
if (h > 0 && dininghours.locations[i].DH[d].hoursList.length == 2) {
facilityhours += ' ';
}
if (h != 0 && h == dininghours.locations[i].DH[d].hoursList.length - 1) {
facilityhours += 'and ';
}
$("#"+dayid).追加(facilityhours += start + ' - ' + end);
}
}
}
else{
for (w = 0; w < dininghours.locations[i].DH[d].daysSpanning.length; w++) {
$("#"+dayid).append(""+moment().weekday(dininghours.locations[i].DH[d].daysSpanning[w]).format('ddd') + ": ");
for (h = 0; h < dininghours.locations[i].DH[d].hoursList.length; h++) {
if (dininghours.locations[i].DH[d].hoursList[h].StartTime == dininghours.locations[i].DH[d].hoursList[h].EndTime){
var facilityhours = 'Closed';
$("#"+dayid).append(facilityhours);
}
else{
var start = moment(dininghours.locations[i].DH[d].hoursList[h].StartTime).format('h:mm a');
var end = moment(dininghours.locations[i].DH[d].hoursList[h].EndTime).format('h:mm a');
var facilityhours = "";
if (h == 0) {
facilityhours = '';
}
if (h > 0 && dininghours.locations[i].DH[d].hoursList.length > 2) {
facilityhours += ', ';
}
if (h > 0 && dininghours.locations[i].DH[d].hoursList.length == 2) {
facilityhours += ' ';
}
if (h != 0 && h == dininghours.locations[i].DH[d].hoursList.length - 1) {
facilityhours += 'and ';
}
$("#"+dayid).追加(facilityhours += start + ' - ' + end);
}
}
}
}
$("#"+dayid).append("
"); } } }); } dining(); }); })(jQuery);