-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnew.html
More file actions
473 lines (424 loc) · 16.5 KB
/
new.html
File metadata and controls
473 lines (424 loc) · 16.5 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
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
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Summer's garden~</title>
<!--
Template 2109 The Card
http://www.tooplate.com/view/2109-the-card
-->
<!-- load CSS -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600">
<!-- Google web font "Open Sans" -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<!-- https://getbootstrap.com/ -->
<link rel="stylesheet" href="slick/slick.css">
<link rel="stylesheet" href="slick/slick-theme.css">
<link rel="stylesheet" href="css/magnific-popup.css">
<link rel="stylesheet" href="css/tooplate-style.css">
<!-- Templatemo style -->
</head>
<body>
<!-- Loader -->
<div id="loader-wrapper">
<div id="loader"></div>
<div class="loader-section section-left"></div>
<div class="loader-section section-right"></div>
</div>
<div class="tm-main-container">
<div class="tm-top-container">
<!-- Menu -->
<nav id="tmNav" class="tm-nav">
<a class="tm-navbar-menu" href="#">Menu</a>
<ul class="tm-nav-links">
<li class="tm-nav-item">
<a href="#" data-linkid="2" data-align="right" class="tm-nav-link">Intro</a>
</li>
<li class="tm-nav-item">
<a href="#" data-linkid="1" data-align="right" class="tm-nav-link">About</a>
</li>
<li class="tm-nav-item active">
<a href="#" data-linkid="0" data-align="middle" class="tm-nav-link">Project1</a>
</li>
<li class="tm-nav-item">
<a href="#" data-linkid="3" data-align="left" class="tm-nav-link">Contact</a>
</li>
</ul>
</nav>
<!-- Site header -->
<header class="tm-site-header-box tm-bg-dark">
<h1 class="tm-site-title">Summer's</h1>
<p class="mb-0 tm-site-subtitle">COMP4461 website</p>
</header>
</div>
<!-- tm-top-container -->
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<!-- Site content -->
<div class="tm-content">
<!-- Section 0 Introduction -->
<section class="tm-section tm-section-2" style="margin-top: 70px;max-width: 575px;">
<h2 class="tm-section-title mb-3 font-weight-bold">Introduction</h2>
<div class="tm-textbox tm-bg-dark">
<p>This is a website prepared for COMP4461: Human Computer Interaction. </p>
<p class="mb-0">(*^▽^*) (ಥ﹏ಥ) (((((ી(・◡・)ʃ)))))</p>
</div>
<a href="#" class="tm-nav-link" data-linkid="0" >Read More</a>
</section>
<!-- Section 1 About Me -->
<section class="tm-section tm-section-1">
<div class="tm-textbox tm-textbox-2 tm-bg-dark">
<h2 class="tm-text-blue mb-4">About Me</h2>
<p class="mb-4">XIA, Zihan.</p>
<p class="mb-0">I am currently a year 4 undergraduate student of HKUST major in Computer Science. </p>
</div>
</section>
<!-- Section 2 Work (Gallery) -->
<section class="tm-section tm-section-0 mx-auto" style="width=100%;">
<div style="width:860px;height=1000px;background-color:rgba(0,0,0,0.6);margin:5%,5%,5%,5%;">
</br>
</br>
<h2 align="center">Existing campaigns</h2>
<p class="01pag" style="margin-left:10%;margin-right:10%;margin-top:10px;">
We started from analysing the type of resources we use in our daily lives which may leads to waste in campus.
We in total came up with nine types of resources which are:
</p>
<ul style="margin-left:20%;">
<li>paper</li>
<li>water</li>
<li>trash</li>
<li>cloth</li>
<li>plastics</li>
<li>stationary</li>
<li>electronics</li>
<li>food</li>
<li>electricity</li>
</ul>
<img src="img/01.jpg" style="width:80%; margin-left:10%;margin-top:20px;margin-bottom:20px;">
<p style="margin-left:10%;margin-right:10%;margin-bottom:30px;">
For each type of resources, we tried to find the existing campaigns in our campus. And finally got the results as shown in the
above photo. For paper, there are paper recycle bins and a screen showing the paper usage in computer barn. For water, there are
water fountains to help reduce the phenomenon of buying bottles of water. For trash, there are many classification bins to help students
dump to the right bin. And there are recycle bins outside dormitory to get the old clothes from students. Straw free campaing is on going
for several months, and as long as you bring your own cup, there will be 4 dollars deduction when buying Starbucks. Students can choose to
have less rice and get 1 dollar less in price. Also after the mid-autumn festival, the university held a mooncake recycing campaign.
There are slogans to encurage students to use stairs rather than taking the lifts to save the electricity. However, there lacks campaigns for
stationary and electronics.
</p>
<a href="new1.html" style="margin-left:70%;">NEXT PAGE</a>
<a href="javascript:history.go(-1)" style="margin-left:70%;">GO BACK</a>
</br>
</br>
</br>
</br>
</div>
<div class="grid tm-gallery">
<!--
<figure class="effect-goliath tm-gallery-item">
<img src="img/01.jpg" alt="Image 1" class="">
<figcaption>
<h2>Existing
<span>campaigns</span>
</h2>
<p>existing campaigns I have surveyed.</p>
<a href="img/01.jpg">View more</a>
<a href="new.html">View more</a>
</figcaption>
</figure>
<figure class="effect-goliath tm-gallery-item">
<img src="img/02.jpg" alt="Pretty Girl" class="">
<figcaption>
<h2>Brainstorming
<span>POV</span>
</h2>
<p>users needs and insights.</p>
<a href="img/02.jpg">View more</a>
</figcaption>
</figure>
<figure class="effect-goliath tm-gallery-item">
<img src="img/03.jpg" alt="Red Flowers" class="">
<figcaption>
<h2>Initial
<span>Proposals</span>
</h2>
<p>3~5 design alternatives.</p>
<a href="img/03.jpg">View more</a>
</figcaption>
</figure>
<figure class="effect-goliath tm-gallery-item">
<img src="img/04.jpg" alt="Stairs" class="">
<figcaption>
<h2>Round1
<span>verfication</span>
</h2>
<p>storyboards + speed dating process.</p>
<a href="img/04.jpg">View more</a>
</figcaption>
</figure>
<figure class="effect-goliath tm-gallery-item">
<img src="img/05.jpg" alt="Image 5" class="">
<figcaption>
<h2>the first
<span>Prototype</span>
</h2>
<p>how we choose it and build it.</p>
<a href="img/05.jpg">View more</a>
</figcaption>
</figure>
<figure class="effect-goliath tm-gallery-item">
<img src="img/06.jpg" alt="Image 6" class="">
<figcaption>
<h2>round2
<span>verification</span>
</h2>
<p>feedback for our first prototype.</p>
<a href="img/06.jpg">View more</a>
</figcaption>
</figure>
<figure class="effect-goliath tm-gallery-item">
<img src="img/07.jpg" alt="Image 7" class="">
<figcaption>
<h2>Group
<span>members</span>
</h2>
<p>Our group memebers~</p>
<a href="img/07.jpg">View more</a>
</figcaption>
</figure>
<figure class="effect-goliath tm-gallery-item">
<img src="img/07.jpg" alt="Image 7" class="">
<figcaption>
<h2>Thoughtful
<span>Goliath</span>
</h2>
<p>When Goliath comes out, you should run.</p>
<a href="img/07.jpg">View more</a>
</figcaption>
</figure>
<figure class="effect-goliath tm-gallery-item">
<img src="img/08.jpg" alt="Image 8" class="">
<figcaption>
<h2>Thoughtful
<span>Goliath</span>
</h2>
<p>When Goliath comes out, you should run.</p>
<a href="img/08.jpg">View more</a>
</figcaption>
</figure>
<figure class="effect-goliath tm-gallery-item">
<img src="img/09.jpg" alt="Image 9" class="">
<figcaption>
<h2>Thoughtful
<span>Goliath</span>
</h2>
<p>When Goliath comes out, you should run.</p>
<a href="img/09.jpg">View more</a>
</figcaption>
</figure>
<figure class="effect-goliath tm-gallery-item">
<img src="img/10.jpg" alt="Image 10" class="">
<figcaption>
<h2>Thoughtful
<span>Goliath</span>
</h2>
<p>When Goliath comes out, you should run.</p>
<a href="img/10.jpg">View more</a>
</figcaption>
</figure>
<figure class="effect-goliath tm-gallery-item">
<img src="img/11.jpg" alt="Image 11" class="">
<figcaption>
<h2>Thoughtful
<span>Goliath</span>
</h2>
<p>When Goliath comes out, you should run.</p>
<a href="img/11.jpg">View more</a>
</figcaption>
</figure>
<figure class="effect-goliath tm-gallery-item">
<img src="img/12.jpg" alt="Image 12" class="">
<figcaption>
<h2>Thoughtful
<span>Goliath</span>
</h2>
<p>When Goliath comes out, you should run.</p>
<a href="img/12.jpg">View more</a>
</figcaption>
</figure>
-->
</div>
</section>
<!-- Section 3 Contact -->
<section class="tm-section tm-section-3 tm-section-left">
<form action="" class="tm-contact-form" method="post">
<div class="form-group mb-4">
<input type="text" id="contact_name" name="contact_name" class="form-control" placeholder="Name" required/>
</div>
<div class="form-group mb-4">
<input type="email" id="contact_email" name="contact_email" class="form-control" placeholder="Email" required/>
</div>
<div class="form-group mb-4">
<textarea rows="4" id="contact_message" name="contact_message" class="form-control" placeholder="Message" required></textarea>
</div>
<div class="form-group mb-0">
<button type="submit" class="btn tm-send-btn tm-fl-right">Send</button>
</div>
</form>
</section>
</div>
</div>
</div>
</div>
<div class="tm-bottom-container">
<!-- Barcode -->
<div class="tm-barcode-box">
<img src="img/bar-code.jpg" alt="Bar code">
</div>
<!-- Footer -->
<footer>
|| Copyright © 2019 XIA ZIHAN
|| design: <a rel="nofollow" href="http://tooplate.com" class="tm-footer-link">tooplate</a> ||
</footer>
</div>
</div>
<script src="js/jquery-1.11.0.min.js"></script>
<script src="js/background.cycle.js"></script>
<script src="slick/slick.min.js"></script>
<script src="js/jquery.magnific-popup.min.js"></script>
<script>
let slickInitDone = false;
let previousImageId = 0,
currentImageId = 0;
let pageAlign = "right";
let bgCycle;
let links;
let eachNavLink;
window.onload = function () {
$('body').addClass('loaded');
}
function navLinkClick(e) {
e.preventDefault();
if ($(e.target).data("align")) {
pageAlign = $(e.target).data("align");
}
// Change bg image
previousImageId = currentImageId;
currentImageId = $(e.target).data("linkid");
bgCycle.cycleToNextImage(previousImageId, currentImageId);
// Change menu item highlight
$(`.tm-nav-item:eq(${previousImageId})`).removeClass('active');
$(`.tm-nav-item:eq(${currentImageId})`).addClass('active');
// Change page content
$(`.tm-section-${previousImageId}`).fadeOut(function (e) {
$(`.tm-section-${currentImageId}`).fadeIn();
// Gallery
if (currentImageId === 0) {
setupSlider();
}
});
adjustFooter();
}
$(document).ready(function () {
// Set first page
$('.tm-section').fadeOut(0);
$('.tm-section-0').fadeIn();
// Set Background images
// https://www.jqueryscript.net/slideshow/Simple-jQuery-Background-Image-Slideshow-with-Fade-Transitions-Background-Cycle.html
bgCycle = $("body").backgroundCycle({
imageUrls: [
'img/photo-04.jpg',
'img/photo-03.jpg',
'img/photo-02.jpg',
'img/photo-05.jpg'
],
fadeSpeed: 2000,
duration: -1,
backgroundSize: SCALING_MODE_COVER
});
eachNavLink = $('.tm-nav-link');
links = $('.tm-nav-links');
// "Menu" open/close
if (links.hasClass('open')) {
links.fadeIn(0);
} else {
links.fadeOut(0);
}
// Each menu item click
eachNavLink.on('click', navLinkClick);
$('.tm-navbar-menu').click(function (e) {
if (links.hasClass('open')) {
links.fadeOut();
} else {
links.fadeIn();
}
links.toggleClass('open');
});
// window resize
$(window).resize(function () {
// If current page is Gallery page, set it up
if (currentImageId === 0) {
setupSlider();
}
// Adjust footer
adjustFooter();
});
adjustFooter();
}); // DOM is ready
function adjustFooter() {
const windowHeight = $(window).height();
const topHeight = $('.tm-top-container').height();
const middleHeight = $('.tm-content').height();
let contentHeight = topHeight + middleHeight;
if (pageAlign === "left") {
contentHeight += $('.tm-bottom-container').height();
}
if (contentHeight > windowHeight) {
$('.tm-bottom-container').addClass('tm-static');
} else {
$('.tm-bottom-container').removeClass('tm-static');
}
}
function setupSlider() {
let slidesToShow = 4;
let slidesToScroll = 2;
let windowWidth = $(window).width();
if (windowWidth < 480) {
slidesToShow = 1;
slidesToScroll = 1;
} else if (windowWidth < 768) {
slidesToShow = 2;
slidesToScroll = 1;
} else if (windowWidth < 992) {
slidesToShow = 3;
slidesToScroll = 2;
}
if (slickInitDone) {
$('.tm-gallery').slick('unslick');
}
slickInitDone = true;
//$('.tm-gallery').slick({
// dots: true,
// customPaging: function (slider, i) {
// var thumb = $(slider.$slides[i]).data();
// return `<a>${i + 1}</a>`;
// },
// infinite: false,
// prevArrow: false,
// nextArrow: false,
// slidesToShow: slidesToShow,
// slidesToScroll: slidesToScroll
//});
// Open big image when a gallery image is clicked.
$('.slick-list').magnificPopup({
delegate: 'a',
type: 'image',
gallery: {
enabled: true
}
});
}
</script>
</body>
</html>