Skip to content

Commit d354716

Browse files
committed
Added the working hours of some facilities
1 parent 6a65b33 commit d354716

26 files changed

+1348
-206
lines changed

js/main.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
listLoad.then(function(fac_arr){
1616
$(function(){
1717
$('#clock').hide();
18-
for(var i = 0; i < fac_arr.length; i++){
18+
for(let i = 0; i < fac_arr.length; i++){
1919
$(".selection").append("<option value="+fac_arr[i].file+">"+fac_arr[i].title+"</option>");
2020
}
21-
var now = moment().tz("Asia/Seoul");
22-
var day_of_week = now.format("E") - 1;
21+
let now = moment().tz("Asia/Seoul");
22+
let day_of_week = now.format("E") - 1;
2323
//As the function returns the value in range 1..7
2424
$(".select-button").click(function(){
2525
let fileUrl = $('.selection>option:selected').val();
@@ -102,6 +102,7 @@
102102
});
103103
loadFacilityInfo.catch(function(err){
104104
alert("Something went wrong :( Sorry for inconvinience.");
105+
console.log("In promise loadFacilityInfo");
105106
console.log(err);
106107
});
107108
});
@@ -110,6 +111,7 @@
110111

111112
listLoad.catch(function(err){
112113
alert("Something went wrong :( Sorry for inconvinience.");
114+
console.log("In promise listLoad");
113115
console.log(err);
114116
});
115117

json/coffebean.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"title": "The Coffee Bean & Tea Leaf",
3+
"hours": [{
4+
"Monday": [{
5+
"start": "09:00",
6+
"finish": "22:30"
7+
}
8+
]
9+
},
10+
{
11+
"Tuesday": [{
12+
"start": "09:00",
13+
"finish": "22:30"
14+
}
15+
]
16+
},
17+
{
18+
"Wednesday": [{
19+
"start": "09:00",
20+
"finish": "22:30"
21+
}
22+
]
23+
},
24+
{
25+
"Thursday": [{
26+
"start": "09:00",
27+
"finish": "22:30"
28+
}
29+
]
30+
},
31+
{
32+
"Friday": [{
33+
"start": "09:00",
34+
"finish": "22:30"
35+
}
36+
]
37+
},
38+
{
39+
"Saturday": [{
40+
"start": "09:00",
41+
"finish": "22:30"
42+
}
43+
]
44+
},
45+
{
46+
"Sunday": [{
47+
"start": "09:00",
48+
"finish": "22:30"
49+
}
50+
]
51+
}
52+
]
53+
}

json/data.json

Lines changed: 0 additions & 109 deletions
This file was deleted.

json/dddnpizza.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"title": "DDDN Pizza",
3+
"hours": [{
4+
"Monday": [{
5+
"start": "09:00",
6+
"finish": "19:00"
7+
}
8+
]
9+
},
10+
{
11+
"Tuesday": [{
12+
"start": "09:00",
13+
"finish": "19:00"
14+
}
15+
]
16+
},
17+
{
18+
"Wednesday": [{
19+
"start": "09:00",
20+
"finish": "19:00"
21+
}
22+
]
23+
},
24+
{
25+
"Thursday": [{
26+
"start": "09:00",
27+
"finish": "19:00"
28+
}
29+
]
30+
},
31+
{
32+
"Friday": [{
33+
"start": "09:00",
34+
"finish": "19:00"
35+
}
36+
]
37+
},
38+
{
39+
"Saturday": [{
40+
"start": "11:00",
41+
"finish": "18:00"
42+
}
43+
]
44+
},
45+
{
46+
"Sunday": [ ]
47+
}
48+
]
49+
}

json/droptop.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"title": "Café Droptop",
3+
"hours": [{
4+
"Monday": [{
5+
"start": "08:00",
6+
"finish": "22:00"
7+
}
8+
]
9+
},
10+
{
11+
"Tuesday": [{
12+
"start": "08:00",
13+
"finish": "22:00"
14+
}
15+
]
16+
},
17+
{
18+
"Wednesday": [{
19+
"start": "08:00",
20+
"finish": "22:00"
21+
}
22+
]
23+
},
24+
{
25+
"Thursday": [{
26+
"start": "08:00",
27+
"finish": "22:00"
28+
}
29+
]
30+
},
31+
{
32+
"Friday": [{
33+
"start": "08:00",
34+
"finish": "22:00"
35+
}
36+
]
37+
},
38+
{
39+
"Saturday": [{
40+
"start": "09:00",
41+
"finish": "21:00"
42+
}
43+
]
44+
},
45+
{
46+
"Sunday": [{
47+
"start": "09:00",
48+
"finish": "21:00"
49+
}
50+
]
51+
}
52+
]
53+
}

json/dunkindonuts.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"title": "Dunkin Donuts",
3+
"hours": [{
4+
"Monday": [{
5+
"start": "07:00",
6+
"finish": "23:00"
7+
}
8+
]
9+
},
10+
{
11+
"Tuesday": [{
12+
"start": "07:00",
13+
"finish": "23:00"
14+
}
15+
]
16+
},
17+
{
18+
"Wednesday": [{
19+
"start": "07:00",
20+
"finish": "23:00"
21+
}
22+
]
23+
},
24+
{
25+
"Thursday": [{
26+
"start": "07:00",
27+
"finish": "23:00"
28+
}
29+
]
30+
},
31+
{
32+
"Friday": [{
33+
"start": "07:00",
34+
"finish": "23:00"
35+
}
36+
]
37+
},
38+
{
39+
"Saturday": [{
40+
"start": "07:00",
41+
"finish": "23:00"
42+
}
43+
]
44+
},
45+
{
46+
"Sunday": [{
47+
"start": "07:00",
48+
"finish": "23:00"
49+
}
50+
]
51+
}
52+
]
53+
}

json/gen

41.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)