-
Notifications
You must be signed in to change notification settings - Fork 4
/
resources.html
275 lines (242 loc) · 9.08 KB
/
resources.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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
name="viewport"
/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="theme-color" content="#ffffff" />
<!-- Favicons -->
<link rel="apple-touch-icon" href="favicon.png" />
<link rel="icon" href="favicon.png" />
<title>Resources | DSC HBTU</title>
<!-- Fonts and icons -->
<link
rel="stylesheet"
type="text/css"
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Roboto+Slab:400,700|Material+Icons"
/>
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css"
/>
<link rel="stylesheet" href="assets/css/material-kit.css?v=2.0.2" />
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
/>
<!-- Documentation extras -->
<link rel="stylesheet" href="assets/css/styles.css" />
<link rel="stylesheet" href="assets/css/navbar.css" />
<link
href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
rel="stylesheet"
integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN"
crossorigin="anonymous"
/>
<link
rel="stylesheet"
href="https://unpkg.com/flickity@2.0/dist/flickity.min.css"
/>
<script src="https://unpkg.com/flickity@2.0/dist/flickity.pkgd.min.js"></script>
<link
href="https://fonts.googleapis.com/css?family=Open+Sans"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
/>
<style>
body {
overflow-x: hidden;
}
#top-button {
font-size: 20px;
transition: 0.3s ease;
}
.grid-item {
width: 25%;
}
.grid-item--width2 {
width: 50%;
}
*/ .img-fluid {
border-radius: 5px 5px;
}
@media (min-width: 768px) {
.row.equal {
display: flex;
flex-wrap: wrap;
}
}
.row.equal {
display: flex;
flex-wrap: wrap;
}
.row.equal > [class*="col-"] {
display: flex;
flex-direction: column;
}
</style>
<!-- iframe removal -->
</head>
<body class="landing-page" name="top" id="top">
<!-- ============================================ Navbar ============================================ -->
<nav
class="navbar navbar-color-on-scroll navbar-transparent fixed-top navbar-expand-lg"
color-on-scroll="100"
id="sectionsNav"
>
<!-- ===== Navbar through JS ===== -->
</nav>
<!-- ============================================ /.Navbar ============================================ -->
<div class="main main-raised margin-t-0">
<p> </p>
<p> </p>
<div class="container">
<div class="container-page">
<div class="row mt-5">
<!-- First Column -->
<div class="col-lg-6">
<p> </p>
<h2 class="title">Resources</h2>
<h5 class="description">
If you want to start learning, there is not better place than
the Internet. Here are a few amazing Websites, YouTube channels
and Tools that we all love and use at Google DSC HBTU.
</h5>
<p> </p>
</div>
<!-- /.First Column -->
<!-- Second Column -->
<div class="col-lg-6">
<p> </p>
<img
class="img-fluid"
style="border-radius: 3px"
src="https://pbs.twimg.com/media/B5xYWY-CEAA6o-G.jpg"
/>
</div>
<!-- /.Second Column -->
</div>
<div class="row mt-5 wow fadeIn left-text" data-wow-delay="0.2s">
<div class="col-lg-6">
<span id="mobile" class="icon"
><i class="material-icons">developer_board</i></span
>
<span class="about_title_track black-lighten-3"
>Tools & Resources</span
>
</div>
<div class="col-lg-6">
<span class="about_title_track"> </span>
</div>
</div>
</div>
<!-- ============================================ Loading Animation ============================================ -->
<div id="loading-animation">
<div class="google-loader">
<div class="dot blue"></div>
<div class="dot red"></div>
<div class="dot yellow"></div>
<div class="dot green"></div>
</div>
</div>
<div id="container-resources">
<!-- ===== Here the Resources will Appear ===== -->
</div>
</div>
<p> </p>
<p> </p>
<!-- ============================================ **** Footer **** ============================================ -->
<div id="footer">
<!-- ===== Footer Through JS ===== -->
</div>
<!-- ============================================ /. Footer ============================================ -->
</div>
<script src="assets/js/app.js"></script>
<script src="assets/js/navbar.js"></script>
<script src="assets/js/footer.js"></script>
<!-- Core JS Files -->
<script src="assets/js/core/jquery.min.js"></script>
<script src="assets/js/core/popper.min.js"></script>
<script src="assets/js/style/bootstrap-material-design.js"></script>
<!-- Material Kit Core initialisations of plugins and Bootstrap Material Design Library -->
<script src="assets/js/style/material-kit.js?v=2.0.2"></script>
<script src="assets/assets-custom/js/material-kit-demo.js"></script>
<!-- <script src="assets/assets-custom/js/GridHorizontal.js"></script> -->
<!-- <script src="https://unpkg.com/packery@2/dist/packery.pkgd.min.js"></script> -->
<!-- <script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js"></script> -->
<script src="assets/assets-custom/main.js"></script>
<!--<script src="assets/assets-custom/index.js"></script>-->
<script>
$("document").ready(function () {
/* ============================================ Getting Template ============================================ */
function getTemplate(resource) {
var template = `<div class="col-lg-4 wow fadeIn" data-wow-delay="0.2s">
<div class="card" style="height: 400px">\
<img class="rounded card-img-top" width="290" height="180" src="${
resource.imgSrc
}">
<div class="card-body">
<h4 class="description"><b class="blue_text">${
resource.title
}</b></h4>
<h5 class="description" style="sans-serif;">${resource.description.substring(
0,
100
)}... </h5>
<a target="blank" href="${
resource.link
}" style="position:absolute; bottom: 15px;"><b class="blue_text">Learn More</b></a>
</div>
</div>
</div>`;
return template;
}
var cards = "";
var i = 1;
var temp = "";
var size = 0; //to check the size of the file
var html = "";
/* ============================================ fetching Data by API ============================================ */
var settings = {
url: "https://dschit.herokuapp.com/resources",
method: "GET",
timeout: 0,
};
$.ajax(settings).done(function (resources) {
resources.forEach(function (resource) {
size += 1;
});
resources.forEach(function (resource) {
cards += getTemplate(resource);
if (i % 3 == 0) {
temp =
'<div class="row equal mt-5 wow justify-content-center">' +
cards +
"</div>";
cards = "";
}
html += temp;
temp = "";
if (i == size) {
html +=
'<div class="row equal mt-5 wow justify-content-center">' +
cards +
"</div>";
}
i += 1;
});
html = '<div class="container-page">' + html + "</div>";
/* ============================================ Stopping Animation and Placing Data ============================================ */
document.getElementById("loading-animation").style.display = "none";
$("#container-resources").append(html);
});
});
</script>
</body>
</html>