-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
134 lines (119 loc) · 5.53 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="Câu lạc bộ học thuật ICON">
<title>ICON Club - Chọn mentor</title>
<!-- Bootstrap core CSS -->
<!-- CSS only -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css"
integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script id="facebook-jssdk" src="https://connect.facebook.net/vi_VN/sdk/xfbml.customerchat.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx"
crossorigin="anonymous"></script>
<style>
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
</style>
</head>
<body>
<header>
<div class="navbar navbar-dark bg-dark shadow-sm">
<div class="container">
<a href="#" class="navbar-brand d-flex align-items-center">
<strong>ICON</strong>
</a>
</div>
</div>
</header>
<main>
<section class="py-5 container">
<div class="row py-lg-5">
<div class="col-lg-10 col-md-12 mx-auto">
<h1 class="fw-light">Chọn Mentor</h1>
<p class="text-muted">Mỗi mentor sẽ hỗ trợ 3-5 bạn thành viên năm nhất.<br>
Các bạn thành viên hãy chọn một mentor mà bạn nghĩ phù hợp với bản thân dựa trên thông tin mà mỗi mentor đã cung cấp dưới đây.<br>
Sau khi nhấn chọn, trang web sẽ điều hướng bạn sang một form, các bạn hãy hoàn thành nốt thông tin bản thân của mình nhé.<br>
Các bạn có bất cứ thắc mắc gì có thể liên hệ với tụi mình qua fanpage của CLB: <a href="https://www.facebook.com/iconclub.it.tdtu">https://www.facebook.com/iconclub.it.tdtu</a><br>
</p>
</div>
</div>
</section>
<div class="container">
<h3>Bảng kết quả đăng ký và thống kê</h3>
<div class="row">
<div class="col-8">
<iframe width="100%" height="400px" src="https://docs.google.com/spreadsheets/d/e/2PACX-1vTc0pkRXMKVPvIRyueIUktw3HTl4M5EkzHQI2eDzFnEUIYOz78oPFPtTygrHjux_24-lvm0H2j98PSC/pubhtml?gid=1120776380&single=true&widget=true&headers=false&chrome=false"></iframe>
</div>
<div class="col-4">
<iframe width="100%" height="400px" src="https://docs.google.com/spreadsheets/d/e/2PACX-1vTc0pkRXMKVPvIRyueIUktw3HTl4M5EkzHQI2eDzFnEUIYOz78oPFPtTygrHjux_24-lvm0H2j98PSC/pubhtml?gid=1161185045&single=true&widget=true&headers=false&chrome=false"></iframe>
</div>
</div>
</div>
<div class="album py-5 bg-light">
<div class="container">
<div id="list" class="row row-cols-1 row-cols-sm-2 row-cols-md-3 g-3">
</div>
</div>
</div>
</main>
<!-- <footer class="text-muted py-5">
<div class="container">
<p class="float-end mb-1">
<a href="#">Back to top</a>
</p>
<p class="mb-1">Album example is © Bootstrap, but please download and customize it for yourself!</p>
<p class="mb-0">New to Bootstrap? <a href="/">Visit the homepage</a> or read our <a
href="../getting-started/introduction/">getting started guide</a>.</p>
</div>
</footer> -->
<script>
$(document).ready(() => {
const link = "https://docs.google.com/forms/d/e/1FAIpQLSe73zOE7wxBeSRL1g8r-AwHicJMEaCpSNrASdrW24WDkgibzQ/viewform?usp=pp_url";
fetch("https://github.com/iconclub/icon-mentorship/master/data.json")
.then(response => response.json())
.then(json => {
for (i = 0; i < json.mentors.length; i++) {
data = json.mentors[i];
$("#list").append(
`<div class="col d-flex mt-5">
<div class="card shadow-sm w-100">
<div class="card-body"">
<h5 class="card-title">${data.nickname}</h5>
<p class="card-text text-muted">${data.nganhHoc}</p>
<p class="card-text">${data.soThich}</p>
</div>
<ul class="list-group list-group-flush">
<li class="list-group-item"><strong>Định hướng:</strong> ${data.dinhHuong}</li>
<li class="list-group-item"><strong>Hỗ trợ:</strong> ${data.hoTro}</li>
</ul>
<div class="card-body">
<p class="card-text">Số người chọn: ${data.soNguoiChon}/4</p>
<a class="btn btn-primary" href="${link + '&entry.1789484413=' + data.nickname}" class="card-link" ${data.soNguoiChon>=4?"hidden":""}>Chọn mình nha!</a>
</div>
</div>
</div>`
)
}
});
});
</script>
</body>
</html>