-
Notifications
You must be signed in to change notification settings - Fork 0
/
gallery.html
139 lines (120 loc) · 5.52 KB
/
gallery.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>LASU Devs - Gallery</title>
<!-- CSS FILES -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- MANIFEST FILE -->
<link rel="manifest" href="manifest.json">
<!-- Add to home screen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="LASU Devs">
<link rel="apple-touch-icon" href="images/icons/152.png">
<meta name="msapplication-TileImage" content="images/icons/144.png">
<meta name="msapplication-TileColor" content="#2F3BA2">
<meta name="mobile-web-app-capable" content="yes">
<meta name="theme-color" content="#2F3BA2">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark fixed-top navbar--primary">
<div class="container">
<div class="navbar--brand brand">
<a href="index.html" class="brand__logo">
<img src="images/lasudevs-logo.png" alt="LASU Devs logo">
</a>
</div>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-nav" aria-controls="main-nav" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="main-nav">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="index.html">Home
<span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" target="_blank" href="https://goo.gl/forms/oDJoVanVDtlNcaFJ2">
Become a member
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="team.html">Team</a>
</li>
<li class="nav-item">
<a class="nav-link" href="meetups.html">Meetups
</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="gallery.html">Photo Gallery</a>
</li>
</ul>
</div>
</div>
</nav>
<main class="gallery_main">
<div class="container">
<div class="row" id="gallery_row">
</div>
</div>
</main>
<footer class="footer">
<div class="container text-center">
<div class="row social_row">
<div class="row">
<a href="https://github.com/LASUDevs" target="_blank">
<i class="fa fa-2x fa-github"></i>
</a>
<a href="https://twitter.com/LASUDevs" target="_blank">
<i class="fa fa-2x fa-twitter"></i>
</a>
<a href="https://www.instagram.com/lasudevelopers/" target="_blank">
<i class="fa fa-2x fa-instagram"></i>
</a>
</div>
</div>
<span>
Made with
<span class="love">♥</span> by
<a href="https://twitter.com/_emmarex_" target="_blank">code_blooded</a> and
<a href="https://twitter.com/abdulmatinsanni" target="_blank">TomJava</a>
</span>
</div>
</footer>
</body>
<script src="js/jquery-slim.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.min.js"></script>
<script>
$(document).ready(function () {
$.getJSON("js/image_data.js", function (result) {
var gallery_row = $("#gallery_row")
$.each(result.data, function (i, field) {
var image_div =
'<div class="image_div">' +
'<div class="animated-background image_placeholder" data-large="' +
field.image_url + '">' +
'</div>' +
'</div>';
gallery_row.append(image_div)
});
$.each($('.image_placeholder'), function (i, placeholder) {
var imgLarge = new Image();
imgLarge.src = placeholder.dataset.large;
imgLarge.onload = function () {
placeholder.classList.remove('animated-background');
placeholder.appendChild(imgLarge);
};
});
});
});
</script>
</html>