-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
153 lines (140 loc) · 6.97 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Index Page</title>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<!-- Custom styles for this template -->
<link href="css/style.css" rel="stylesheet">
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="solution/task1.js"></script>
<script src="solution/task2.js"></script>
<script src="solution/task3.js"></script>
</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<div class="container">
<a class="navbar-brand" href="#">SDA - Lab 2</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive"
aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Home
<span class="sr-only">(current)</span>
</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Page Content -->
<div class="container">
<!-- Call to Action Well -->
<div class="card text-white bg-secondary my-5 py-4 text-center">
<div class="card-body">
<p class="text-white m-0">This is the playing grounds for the second lab!</p>
</div>
</div>
<!-- Content Row -->
<div class="row">
<!-- /.col-md-4 TASK ONE -->
<div class="col-md-4 mb-5">
<div class="card h-100">
<div class="card-body">
<h2 class="card-title">Task One</h2>
<p class="card-text">Below this text there should be a picture of a random dog.</p>
<img class="img-fluid" src="images/dog-silhuette.png" alt="" id="id-dogImage"> <!-- id added to img tag-->
</div>
<div class="card-footer">
<a href="#" class="btn btn-primary btn-sm" id="id-getDog">Generate dog</a> <!-- id added to dog button-->
</div>
</div>
</div>
<!-- /.col-md-4 TASK TWO -->
<div class="col-md-4 mb-5">
<div class="card h-100">
<div class="card-body">
<h2 class="card-title">Task Two</h2>
<p class="card-text">The button should generate a random user profile.</p>
<img class="img-fluid p-3 border" src="images/person-unknown.png" id="id-profileImage"> <!-- id added to img tag-->
<h5 id="id-name">Name Namesson</h5> <!-- id added to h5 tag-->
<div class="d-flex">
<div>
<p class="card-title" id="id-country">Country</p> <!-- id added to paragraph tag-->
</div>
<div class="ml-auto">
<img class="thumbnail-small" src="images/flag-unknown.png" id="id-countryImage"> <!-- id added to img tag-->
</div>
</div>
<h5>Alien avatar</h5>
<img class="thumbnail-medium" src="images/person-unknown.png" id="id-alienImage"> <!-- id added to img tag-->
</div>
<div class="card-footer">
<a href="#" class="btn btn-primary btn-sm" id="id-getProfile">Generate profile</a> <!-- id added to profile button-->
</div>
</div>
</div>
<!-- /.col-md-4 TASK THREE -->
<div class="col-md-4 mb-5">
<div class="card h-100">
<div class="card-body">
<h2 class="card-title">Task Three</h2>
<form id="budget-form">
<div class="form-group">
<label for="name">Name</label>
<input type="text" name="name" class="form-control" id="name" aria-describedby="nameHelp"
placeholder="Enter name">
<small id="nameHelp" class="input-help form-text text-muted"></small>
</div>
<div class="form-group">
<label for="country">Destination Country</label>
<select type="text" name="country" class="form-control" id="country"
aria-describedby="countryHelp">
<option value="no-country">No countries loaded</option>
</select>
<small id="countryHelp" class="input-help form-text text-muted"></small>
</div>
<div class="form-row">
<div class="form-group col-6">
<label for="expenses">Expenses</label>
<input type="number" name="expenses" class="form-control" id="expenses"
aria-describedby="nameHelp" placeholder="Enter expenses">
<small id="expensesHelp" class="input-help form-text text-muted"></small>
</div>
<div class="form-group col-6">
<label for="currency">Currency</label>
<input type="text" name="currency" class="form-control" id="currency"
aria-describedby="nameHelp" placeholder="Enter currency">
<small id="currencyHelp" class="input-help form-text text-muted"></small>
</div>
</div>
<div class="form-group">
<label for="budget">Budget</label>
<input type="text" name="budget" class="form-control" id="budget" aria-describedby="budgetHelp"
placeholder="Enter budget">
<small id="budgetHelp" class="input-help form-text text-muted"></small>
</div>
<button type="submit" disabled class="btn btn-primary" id="id-submit">Submit</button> <!-- id tag added to submit button-->
</form>
</div>
</div>
</div>
</div>
<!-- /.row -->
</div>
<!-- /.container -->
<!-- Footer -->
<footer class="py-5 bg-dark">
<div class="container">
<p class="m-0 text-center text-white">Copyright © Your Website 2019</p>
</div>
<!-- /.container -->
</footer>
</body>
</html>