-
Notifications
You must be signed in to change notification settings - Fork 0
/
text.html
80 lines (60 loc) · 3.22 KB
/
text.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Risalamande</title>
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<form id="recipe-form">
<h1 id="easy-recipes">Easy Recipes</h1>
<p id="intro-paragraph">For each of us, cooking plays an important role. But sometimes, in order to prepare a delicious breakfast, lunch or dinner, you need to spend a lot of time. Our website contains recipes for delicious dishes that are quite easy to prepare and that you don’t have to spend a lot of time on.</p>
<h2>Add New Recipe</h2>
<label for="title">Recipe Title:</label>
<input type="text" id="title" name="title" required /><br /><br />
<label for="description">Description:</label>
<textarea id="description" name="description" required></textarea><br /><br />
<label for="pictureUrl">Image URL:</label>
<input type="url" id="pictureUrl" name="pictureUrl" required /><br /><br />
<div id="ingredients-container">
<label for="ingredient1">Ingredient 1:</label>
<input type="text" id="ingredient1" name="ingredient1" required /><br /><br />
<label for="ingredient2">Ingredient 2:</label>
<input type="text" id="ingredient2" name="ingredient2" required /><br /><br />
<label for="ingredient3">Ingredient 3:</label>
<input type="text" id="ingredient3" name="ingredient3" required /><br /><br />
<label for="ingredient4">Ingredient 4:</label>
<input type="text" id="ingredient4" name="ingredient4" required /><br /><br />
<label for="ingredient5">Ingredient 5:</label>
<input type="text" id="ingredient5" name="ingredient5" required /><br /><br />
</div>
<button type="button" id="add_more_ingredient">Add More Ingredient</button><br /><br />
<button type="submit">Add Recipe</button>
</form>
<div id="recipe-grid" class="recipe-grid"></div>
<form id="search">
<input type="text" id="searchInput" placeholder="Search by title" />
<button type="submit" id="search-recipe">Search</button>
</form>
<h3>Search and Sort Recipes by Ingredient Count</h3>
<label for="ingredientCountInput">Enter Number of Ingredients:</label>
<input type="number" id="ingredientCountInput" min="1" />
<button type="button" id="sort-recipes-by-ingredient-count">Sort Recipes</button>
<form id="ingredient-search">
<label for="ingredientSearchInput">Search for Ingredient:</label>
<input type="text" id="ingredientSearchInput" name="ingredientSearchInput" required />
<button type="submit">Search Ingredient</button>
</form>
<div id="ingredient-price-results"></div>
<label for="timerInput">Set timer (in seconds):</label>
<input type="number" id="timerInput" min="1" />
<button type="button" id="start-timer">Start Timer</button>
<p id="timerDisplay">Time left: 0s</p>
<div class="timer-container">
<h3>Page Time Tracker</h3>
<p id="pageTimeDisplay">Time spent on page: 0s</p>
</div>
<script src="main.js"></script>
</body>
</html>