-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
162 lines (112 loc) · 5.04 KB
/
index.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="./public/style.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js"></script>
<script src="./public/client.js"></script>
<title>Document</title>
</head>
<body onload="myinit()">
<div class="container-fluid">
<div id="maindiv">
<div class="row">
<div class="col-12">
<h1> Dishs</h1>
</div>
</div>
<div id="buttonsdiv" class="row">
<div class="col-12">
<button id="addrecbtn" class="button"> Add recipe</button>
<button id="addindbtn" class="button"> Add ingredient</button>
</div>
</div>
<div id="indegfrm" class="row" style="display:none">
<div class="col-12">
<form>
<div class="form-group">
<label for="ind">ingredient name:</label>
<input type="text" class="form-control" id="indname">
</div>
<div class="form-group">
<label for="indimg">ingredient image (url):</label>
<input type="text" class="form-control" id="indimg">
</div>
<div class="form-group">
<label for="indcal">ingredient calories:</label>
<input type="text" class="form-control" id="indcal">
</div>
<div class="form-group">
<button id="createind" class="btn btn-primary">Create ingredient</button>
<button id="closeind" class="btn btn-danger">Close</button>
</div>
</form>
</div>
</div>
<div id="dishfrm" class="row" style="display:none">
<div class="col-12">
<form>
<div class="form-group">
<label for="dishname">Recipe name:</label>
<input type="text" class="form-control" id="dishname">
</div>
<div class="form-group">
<label for="dishcook">Recipe cooking method:</label>
<input type="text" class="form-control" id="dishcookingmethod">
</div>
<div class="form-group">
<label for="dishtime">Recipe cooking time:</label>
<input type="text" class="form-control" id="dishtime">
</div>
<div class="form-group">
<label for="dishimg">Recipe image (url):</label>
<input type="text" class="form-control" id="dishimg">
</div>
<h3>Choose Ingredients:</h3>
<div class="form-group">
<div id="indegdiv" class="row">
</div>
</div>
<div class="form-group">
<button id="createdish" class="btn btn-primary">Create Dish</button>
<button id="closedish" class="btn btn-danger">Close</button>
</div>
</form>
</div>
</div>
<div id="dishesdiv" class="row">
</div>
<div class="modal" id="myModal">
<div class="modal-dialog">
<div class="modal-content">
<!-- Modal Header -->
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
</div>
<!-- Modal body -->
<div id="modalinner" class="modal-body">
</div>
<!-- Modal footer -->
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
<footer class="footer mt-auto bg-light">
<div class="container">
<DIV class="row">
<div class="col-12">
<span class="text-muted">Made by Dor Ratzabi 2022 ⓒ.</span>
</div>
</DIV>
</div>
</footer>
</html>