-
Notifications
You must be signed in to change notification settings - Fork 0
/
Draft.js
195 lines (192 loc) ยท 12.6 KB
/
Draft.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
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
// buttons with emojis
// <div class="d-flex flex-wrap justify-content-center align-items-center">
// <button class="btn btn-primary m-2">Carrot ๐ฅ</button>
// <button class="btn btn-primary m-2">Broccoli ๐ฅฆ</button>
// <button class="btn btn-primary m-2">Asparagus ๐ฅฌ</button>
// <button class="btn btn-primary m-2">Cauliflower ๐ฅฆ</button>
// <button class="btn btn-primary m-2">Corn ๐ฝ</button>
// <button class="btn btn-primary m-2">Cucumber ๐ฅ</button>
// <button class="btn btn-primary m-2">Green Pepper ๐ซ</button>
// <button class="btn btn-primary m-2">Lettuce ๐ฅฌ</button>
// <button class="btn btn-primary m-2">Mushrooms ๐</button>
// <button class="btn btn-primary m-2">Onion ๐ง
</button>
// <button class="btn btn-primary m-2">Potato ๐ฅ</button>
// <button class="btn btn-primary m-2">Pumpkin ๐</button>
// <button class="btn btn-primary m-2">Red Pepper ๐ถ๏ธ</button>
// <button class="btn btn-primary m-2">Tomato ๐
</button>
// <button class="btn btn-primary m-2">Beetroot ๐ฅ</button>
// <button class="btn btn-primary m-2">Brussel Sprouts ๐ฅฆ</button>
// <button class="btn btn-primary m-2">Peas ๐ฅฌ</button>
// <button class="btn btn-primary m-2">Zucchini ๐ฅ</button>
// <button class="btn btn-primary m-2">Radish ๐ฅ</button>
// <button class="btn btn-primary m-2">Sweet Potato ๐ </button>
// <button class="btn btn-primary m-2">Artichoke ๐ฅฌ</button>
// <button class="btn btn-primary m-2">Leek ๐ฅฌ</button>
// <button class="btn btn-primary m-2">Cabbage ๐ฅฌ</button>
// <button class="btn btn-primary m-2">Celery ๐ฅฌ</button>
// <button class="btn btn-primary m-2">Chili ๐ถ๏ธ</button>
// <button class="btn btn-primary m-2">Garlic ๐ง</button>
// <button class="btn btn-primary m-2">Basil ๐ฟ</button>
// <button class="btn btn-primary m-2">Coriander ๐ฟ</button>
// <button class="btn btn-primary m-2">Parsley ๐ฟ</button>
// <button class="btn btn-primary m-2">Dill ๐ฟ</button>
// <button class="btn btn-primary m-2">Rosemary ๐ฟ</button>
// <button class="btn btn-primary m-2">Oregano ๐ฟ</button>
// <button class="btn btn-primary m-2">Cinnamon ๐ฟ</button>
// <button class="btn btn-primary m-2">Saffron ๐พ</button>
// <button class="btn btn-primary m-2">Green Bean ๐ฅฌ</button>
// <button class="btn btn-primary m-2">Bean ๐ซ</button>
// <button class="btn btn-primary m-2">Chickpea ๐ฅฌ</button>
// <button class="btn btn-primary m-2">Lentil ๐ฅฌ</button>
// <button class="btn btn-primary m-2">Apple ๐</button>
// <button class="btn btn-primary m-2">Apricot ๐</button>
// <button class="btn btn-primary m-2">Avocado ๐ฅ</button>
// <button class="btn btn-primary m-2">Banana ๐</button>
// <button class="btn btn-primary m-2">Blackberry ๐</button>
// <button class="btn btn-primary m-2">Blackcurrant ๐</button>
// <button class="btn btn-primary m-2">Blueberry ๐ซ</button>
// <button class="btn btn-primary m-2">Boysenberry ๐</button>
// <button class="btn btn-primary m-2">Cherry ๐</button>
// <button class="btn btn-primary m-2">Coconut ๐ฅฅ</button>
// <button class="btn btn-primary m-2">Fig ๐</button>
// <button class="btn btn-primary m-2">Grape ๐</button>
// <button class="btn btn-primary m-2">Grapefruit ๐</button>
// <button class="btn btn-primary m-2">Kiwifruit ๐ฅ</button>
// <button class="btn btn-primary m-2">Lemon ๐</button>
// <button class="btn btn-primary m-2">Lime ๐</button>
// <button class="btn btn-primary m-2">Lychee ๐</button>
// <button class="btn btn-primary m-2">Mandarin ๐</button>
// <button class="btn btn-primary m-2">Mango ๐ฅญ</button>
// <button class="btn btn-primary m-2">Melon ๐</button>
// <button class="btn btn-primary m-2">Nectarine ๐</button>
// <button class="btn btn-primary m-2">Orange ๐</button>
// <button class="btn btn-primary m-2">Papaya ๐ฅญ</button>
// <button class="btn btn-primary m-2">Passion Fruit ๐</button>
// <button class="btn btn-primary m-2">Peach ๐</button>
// <button class="btn btn-primary m-2">Pear ๐</button>
// <button class="btn btn-primary m-2">Pineapple ๐</button>
// <button class="btn btn-primary m-2">Plum ๐</button>
// <button class="btn btn-primary m-2">Pomegranate ๐</button>
// <button class="btn btn-primary m-2">Quince ๐</button>
// <button class="btn btn-primary m-2">Raspberry ๐</button>
// <button class="btn btn-primary m-2">Strawberry ๐</button>
// <button class="btn btn-primary m-2">Watermelon ๐</button>
// <button class="btn btn-primary m-2">Salad ๐ฅ</button>
// <button class="btn btn-primary m-2">Pizza ๐</button>
// <button class="btn btn-primary m-2">Pasta ๐</button>
// <button class="btn btn-primary m-2">Popcorn ๐ฟ</button>
// <button class="btn btn-primary m-2">Lobster ๐ฆ</button>
// <button class="btn btn-primary m-2">Steak ๐ฅฉ</button>
// <button class="btn btn-primary m-2">BBQ ๐</button>
// <button class="btn btn-primary m-2">Pudding ๐ฎ</button>
// <button class="btn btn-primary m-2">Hamburger ๐</button>
// <button class="btn btn-primary m-2">Pie ๐ฅง</button>
// <button class="btn btn-primary m-2">Cake ๐ฐ</button>
// <button class="btn btn-primary m-2">Sausage ๐ญ</button>
// <button class="btn btn-primary m-2">Tacos ๐ฎ</button>
// <button class="btn btn-primary m-2">Kebab ๐ฅ</button>
// <button class="btn btn-primary m-2">Poutine ๐</button>
// <button class="btn btn-primary m-2">Seafood ๐ค</button>
// <button class="btn btn-primary m-2">Chips ๐</button>
// <button class="btn btn-primary m-2">Fries ๐</button>
// <button class="btn btn-primary m-2">Masala ๐</button>
// <button class="btn btn-primary m-2">Paella ๐ฅ</button>
// <button class="btn btn-primary m-2">Som Tam ๐ฒ</button>
// <button class="btn btn-primary m-2">Chicken ๐</button>
// <button class="btn btn-primary m-2">Toast ๐</button>
// <button class="btn btn-primary m-2">Marzipan ๐ฌ</button>
// <button class="btn btn-primary m-2">Tofu ๐ฒ</button>
// <button class="btn btn-primary m-2">Ketchup ๐
</button>
// <button class="btn btn-primary m-2">Hummus ๐ฅ</button>
// <button class="btn btn-primary m-2">Chili ๐ถ๏ธ</button>
// <button class="btn btn-primary m-2">Maple Syrup ๐ฅ</button>
// <button class="btn btn-primary m-2">Parma Ham ๐</button>
// <button class="btn btn-primary m-2">Fajitas ๐ฎ</button>
// <button class="btn btn-primary m-2">Champ ๐ฒ</button>
// <button class="btn btn-primary m-2">Lasagna ๐</button>
// <button class="btn btn-primary m-2">Poke ๐ฃ</button>
// <button class="btn btn-primary m-2">Chocolate ๐ซ</button>
// <button class="btn btn-primary m-2">Croissant ๐ฅ</button>
// <button class="btn btn-primary m-2">Arepas ๐</button>
// <button class="btn btn-primary m-2">Bunny Chow ๐ฒ</button>
// <button class="btn btn-primary m-2">Pierogi ๐ฒ</button>
// <button class="btn btn-primary m-2">Donuts ๐ฉ</button>
// <button class="btn btn-primary m-2">Rendang ๐ฒ</button>
// <button class="btn btn-primary m-2">Sushi ๐ฃ</button>
// <button class="btn btn-primary m-2">Ice Cream ๐จ</button>
// <button class="btn btn-primary m-2">Duck ๐</button>
// <button class="btn btn-primary m-2">Curry ๐</button>
// <button class="btn btn-primary m-2">Beef ๐ฅฉ</button>
// <button class="btn btn-primary m-2">Goat ๐</button>
// <button class="btn btn-primary m-2">Lamb ๐</button>
// <button class="btn btn-primary m-2">Turkey ๐ฆ</button>
// <button class="btn btn-primary m-2">Pork ๐</button>
// <button class="btn btn-primary m-2">Fish ๐</button>
// <button class="btn btn-primary m-2">Crab ๐ฆ</button>
// <button class="btn btn-primary m-2">Bacon ๐ฅ</button>
// <button class="btn btn-primary m-2">Ham ๐</button>
// <button class="btn btn-primary m-2">Pepperoni ๐</button>
// <button class="btn btn-primary m-2">Salami ๐</button>
// <button class="btn btn-primary m-2">Ribs ๐</button>
// </div>
// list of ingredients
/* <ul class="mb-2 list-group list-group-flush overflow-auto">
<li class="list-group-item bg-transparent">
4 1/2 cups (20.25 ounces) unbleached high-gluten, bread, or all-purpose flour, chilled
</li>
<li class="list-group-item bg-transparent">
1 3/4 (.44 ounce) teaspoons salt
</li>
<li class="list-group-item bg-transparent">
1 teaspoon (.11 ounce) instant yeast
</li>
<li class="list-group-item bg-transparent">
1/4 cup (2 ounces) olive oil (optional)
</li>
<li class="list-group-item bg-transparent">
1 3/4 cups (14 ounces) water, ice cold (40F)
</li>
<li class="list-group-item bg-transparent">
Semolina flour OR cornmeal for dusting
</li>
<li class="list-group-item bg-transparent">
</li>
</ul>
*/
// display all receipe with ingredients at the beginning
// function displayRecipes(arr) {
// var recipesCartoona = '';
// var fetchPromises = arr.map((item, index) => {
// return fetchRecipe(item.recipe_id)
// .then(function (receipeList) {
// recipesCartoona += `
// <div class="col-lg-4 col-md-6 col-12">
// <div class="cardo position-relative hov overflow-hidden">
// <div class="image-container w-100 h-100 overflow-hidden">
// <img src="${item.image_url}" ${index > 6 ? `loading="lazy"` : ""} class="w-100 h-100" alt="">
// </div>
// <div class="text-container position-absolute bg-light bg-opacity-75 h-100 w-100 d-flex flex-column">
// <h5 class="text-capitalize text-center mt-2 flex-grow-1 d-flex align-items-center justify-content-center">${item.title}</h5>
// <div class="publisher-receipe-container w-100 position-absolute bottom-0 start-0 mb-2 d-flex align-items-center justify-content-around">
// <div class="publisher text-center mb-2 d-flex flex-column align-items-center justify-content-center">
// <h5 class="h6 w-fit-content">-- Publisher --</h5>
// <a href="${item.publisher_url}" target="_blank" class="h6 text-capitalize">${item.publisher}</a>
// </div>
// <button class="btn btn-outline-danger">ingredients</button>
// </div>
// </div>
// <div class="h-100 d-flex flex-column justify-content-center full-receipe position-absolute top-0 d-none" receipeId="${item.recipe_id}">
// <div class="ingredients-btn-container py-2 px-3 d-flex flex-column" receipe_id="${item.recipe_id}">
// ${displayIngredients(receipeList).outerHTML}
// <div class="close-container flex-grow-1 d-flex justify-content-end align-items-end">
// <div class="right-section ms-auto w-50 h-100 d-flex justify-content-center align-items-center">
// <button class="btn btn-outline-info d-block ms-4 px-5" receipeid="${item.recipe_id}">Close</button>
// </div>
// </div>
// </div>
// </div>
// </div>
// </div>
// `;
// });
// });