-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
125 lines (100 loc) · 4.62 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"/>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<title>Animal Tree</title>
</head>
<body id="body">
<div id="buttons" class="d-flex flex-wrap justify-content-around">
<div class="m-3" id="newAnimalWeightBtn" data-bs-toggle="modal" data-bs-target="#exampleModal">
Which one is heaviest?
</div>
<div id="headingtreeText">
<img style="width: 140px" src="/images/monkey3.png"/>
My animals
</div>
<div id="addRandomAnimal" class="m-3">
Add random animal
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="formModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Add animal</h5>
<button type="button" id="closeButtonForm" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body" id="formModalContent">
<form id="my_form">
<input placeholder="animal name" type="text" name="" id="myname">
<input placeholder="weight" type="text" name="" id="weight">
<br>
<input placeholder="color" type="text" name="" id="color">
<input placeholder="Number of legs" type="text" name="" id="legs">
<input placeholder="am i dangerous?" type="text" name="" id="reptilesQuestion">
<input placeholder="fur type" type="text" name="" id="mammalsQuestion">
<input placeholder="fly speed" type="text" name="" id="birdsQuestion">
<input placeholder="enter a URL picture" type="text" name="" id="picture">
<br>
<br>
<input type="radio" id="mammalsRadio" name="animalFamily">
<label>Mammals</label>
<input type="radio" id="birdsRadio" name="animalFamily">
<label>Birds</label>
<input type="radio" id="reptilesRadio" name="animalFamily">
<label>Reptiles</label>
<br>
<br>
<button id="my_btn" data-bs-dismiss="modal">Add my animal</button>
</form>
</div>
<div class="modal-footer">
<button type="button" id="closeButton2Form" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="d-flex flex-wrap justify-content-between">
<h1 class="headingstyle" style="color: #bb7009">Mammals</h1>
<div class="m-3">
<button type="button" id="newAnimalBtn" class=" btn btn-lg btn-primary" data-bs-toggle="modal" data-bs-target="#formModal">
Create Your Animal!
</button>
</div>
</div>
<div class='d-flex flex-wrap justify-content-center' id="div1" style="border-radius: 20px;"></div>
<h1 class="headingstyle " style="color: #bb7009">Birds</h1>
<div class='d-flex flex-wrap justify-content-center' id="div2" style="border-radius: 20px;"></div>
<h1 class="headingstyle" style="color: #bb7009">Reptiles</h1>
<div class='d-flex flex-wrap justify-content-center' id="div3" style="border-radius: 20px;"></div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Animals weight</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body" id="MyModalContent">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script src="/script.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>