-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimage-library.html
More file actions
86 lines (71 loc) · 3.18 KB
/
image-library.html
File metadata and controls
86 lines (71 loc) · 3.18 KB
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
<!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">
<title>Otter Library</title>
<meta name="description"
content="Library of otter species, to look them up, gaze at the pictures and find out fun facts!">
<meta name="keywords" content="Otters, Otter, Species, Library">
<meta name="author" content="slaxeea, slaxeea">
<link rel="shortcut icon" type="image/x-icon"
href="https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/240/whatsapp/302/otter_1f9a6.png">
<meta name="google-site-verification" content="OSDISCavUmOZQSCQxqnnZmGZnjXMCFRIdHFynnk_U_Q" />
<script src="https://code.jquery.com/jquery-3.6.0.js"
integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk=" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.2/dist/css/bootstrap.min.css"
integrity="sha384-uWxY/CJNBR+1zjPWmfnSnVxwRheevXITnMqoEIeG1LJrdI0GlVs/9cVSyPYXdcSF" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css"
integrity="sha384-tKLJeE1ALTUwtXlaGjJYM3sejfssWdAaWR2s97axw4xkiAdMzQjtOjgcyw0Y50KU" crossorigin="anonymous">
<link rel="stylesheet" href="./styles/main.css">
<script src="scripts/script.js"></script>
</head>
<body class="body">
<div class="title">
<nav class="navbar navbar-light">
<div class="container-fluid">
<a href="index.html" class="link">
<h2 class="navbar-text">Otter Library</h2>
</a>
<form class="d-flex" id="form">
<input id="search-text" class="form-control me-2" placeholder="Search" aria-label="Search">
<button id="search-btn" class="btn btn-outline-success" type="submit">Search</button>
</form>
</div>
</nav>
<nav class="navbar navbar-light">
<div class="container-fluid">
<p class="navbar-text">Images of otters under CC licence. Sorted by species</p>
</div>
</nav>
<div class="row row-cols-1 row-cols-md-4 g-4" id="ankor">
</div>
<hr>
<div class="container footer">
<footer class="py-3 my-4">
<p class="text-center text-muted">
<a href="https://github.com/slaxeea" class="link">
<i class="bi-github" role="img" aria-label="GitHub"></i>
slaxeea, 2021
</a>
</p>
</footer>
</div>
</div>
<script>
$(document).ready(function () {
loadImages("");
})
$("#form").submit(function (e) {
e.preventDefault();
query = $("#search-text").val().toString().toLowerCase();
loadImages(query);
});
$('#search-text').on('input', function () {
query = $(this).val().toString().toLowerCase();
loadImages(query);
});
</script>
</body>
</html>