-
Notifications
You must be signed in to change notification settings - Fork 1
/
order.html
119 lines (106 loc) · 5.13 KB
/
order.html
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Your order</title>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
<link rel="stylesheet" href="css/style.css" type="text/css">
<style>
span.input-group-addon:first-child{
min-width: 117px;
}
</style>
</head>
<body>
<header>
<div class="pos-f-t d-block d-lg-none d-flex justify-content-around"> <!-- <992px magnifier show up(小於992px,只有放大鏡) -->
<div><a href="index.html"><img class="site-logo" src="img/favicon_64x64.svg" alt="JiaBeng's logo"></a></div>
<h1 class="site-sm-title text-center">
<div class="d-flex flex-column">
<a href="list.html">JiaBeng</a>
<a href="list.html">來呷飯吧</a>
</div>
</h1>
<div class="countdown" id="countdown">
<span>"29" : "59"</span>
</div>
</header>
<div class="container">
<div id="menuImg" class="resturant-pic">
<!-- <img src="img/McDonaldmenu.jpg" alt="mcdonald_menu"> -->
</div>
<div class="input-group input-group-sm col-sm-4 col-sm-offset-1 float-left clearfix">
<span class="input-group-addon">訂購人</span>
<input id="orderName" type="text" class="form-control " placeholder="請輸入姓名.." aria-label="Username" aria-describedby="basic-addon1">
</div>
<span class="notice text-danger">別忘了留下你的大名喔!</span>
<button id="share" class="share-button float-right clearfix" type="submit">Share</button>
<ul class="row mt-3" id="dishList">
<li class="input-group col-sm-12 col-md-6">
<span class="input-group-addon mealName">"讀取便當名"</span>
<span class="input-group-addon">"讀取價格$"</span>
<input type="text" class="form-control" placeholder="請輸入數量" aria-label="Text input with checkbox">
</li>
</ul>
<button id="btn" type="submit">送出</button>
<span class="text-danger">以下為成功訂購的訂單,如果尚未提供刪除功能,如需更改請找主揪</span>
<ul id="membersOrder" class="mt-4">
<li class="result-orders mt-4">
<span class="text-success result-person">"輸出訂購人"</span>
<span>已經訂購了</span>
<span class="text-primary result-meal">"輸出便當名"</span>
<span>*</span>
<span class="text-danger result-amount">"輸出數量"</span>
<span>份</span>
</li>
</ul>
<hr>
<div id="group-order-list">
<ul class="mt-4">
<li class="total-order">
<span class="text-primary result-meal">"輸出便當名"</span> <!-- output the meal's name -->
<span>一共訂了</span>
<span class="text-danger result-amount">"輸出總數量"</span> <!-- output the total amount of the meals -->
<span>份</span>
</li>
</ul>
</div>
</div>
<!-- container end -->
<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
<script src="https://use.fontawesome.com/0b98b394ed.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
<script src="https://www.gstatic.com/firebasejs/4.8.1/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyDawS0j0ZCjPMowGc2iPj_cyG1-Gahqd5o",
authDomain: "jiabeng-d02cb.firebaseapp.com",
databaseURL: "https://jiabeng-d02cb.firebaseio.com",
projectId: "jiabeng-d02cb",
storageBucket: "jiabeng-d02cb.appspot.com",
messagingSenderId: "506912575380"
};
firebase.initializeApp(config);
</script>
<script src="js/order.js"></script>
<style>
#menuImg{
margin-bottom: 30px;
}
span.mealName{
width: 155px;
}
#btn{
margin: 30px 0;
width: 100%;
height: 50px;
}
</style>
</body>
</html>