-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
72 lines (57 loc) · 2.44 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Recipe App</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<form id="recipe-form">
<h2>Add New Recipe</h2>
<div id="form-container">
<div class="form-column">
<label for="title">Recipe Title:</label>
<input type="text" id="title" name="title" required />
<label for="description">Description:</label>
<textarea id="description" name="description" required></textarea>
<label for="pictureUrl">Image URL:</label>
<input type="url" id="pictureUrl" name="pictureUrl" required />
<label for="ingredient1">Ingredient 1:</label>
<input type="text" id="ingredient1" name="ingredient1" required />
<label for="ingredient2">Ingredient 2:</label>
<input type="text" id="ingredient2" name="ingredient2" required />
<label for="ingredient3">Ingredient 3:</label>
<input type="text" id="ingredient3" name="ingredient3" required />
</div>
<div class="form-column">
<label for="ingredient4">Ingredient 4:</label>
<input type="text" id="ingredient4" name="ingredient4" required />
<label for="ingredient5">Ingredient 5:</label>
<input type="text" id="ingredient5" name="ingredient5" required />
<button type="button" id="add_more_ingredient">Add More Ingredient</button>
<button type="submit">Add Recipe</button>
</div>
</div>
</form>
<div id="recipe-container"></div>
<form id="search">
<input type="text" id="searchInput" placeholder="Search by title" />
<button type="submit" id="search-recipe">Search</button>
<button type="button" onclick="sortRecipes()">Sort by Ingredients</button>
</form>
<div id="recipe-grid" class="recipe-grid"></div>
<div class="timer-container">
<h1>Cooking Timer</h1>
<label for="timerInput">Set timer (in seconds): </label>
<input type="number" id="timerInput" min="1" />
<button type="button" onclick="startTimer()">Start Timer</button>
<p id="timerDisplay">Time left: 0s</p>
</div>
<div class="timer-container">
<h1>Page Time Tracker</h1>
<p id="pageTimeDisplay">Time spent on page: 0s</p>
</div>
<script src="javascript.js"></script>
</body>
</html>