-
Notifications
You must be signed in to change notification settings - Fork 0
/
dinner.js
40 lines (34 loc) · 800 Bytes
/
dinner.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
var vv = 0;
for (let i =0; i<3; i++){
rand_con = Math.floor(Math.random()*20);
hehe = starters_obj['v'+rand_con][0];
for (let j = 0; j<hehe.length; j++){
console.log(hehe[j]);
$('.v'+vv).append(hehe[j]+" ")
}
console.log(hehe);
vv++;
}
var ww = 0;
for (let i =0; i<3; i++){
rand_con = Math.floor(Math.random()*20);
hehe = mains_obj['w'+rand_con][0];
console.log(hehe);
for (let j = 0; j<hehe.length; j++){
console.log(hehe[j]);
$('.w'+ww).append(hehe[j]+" ")
}
ww++;
}
var xx = 0;
for (let i =0; i<3; i++){
rand_con = Math.floor(Math.random()*20);
hehe = desserts_obj['x'+rand_con][0];
console.log(hehe);
for (let j = 0; j<hehe.length; j++){
console.log(hehe[j]);
$('.x'+xx).append(hehe[j]+" ")
}
// $('.x'+xx).append(hehe)
xx++;
}