-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
186 lines (172 loc) · 9.62 KB
/
index.html
File metadata and controls
186 lines (172 loc) · 9.62 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
<!DOCTYPE html>
<meta charset="utf-8">
<head>
<link rel="stylesheet" href="css.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-wEmeIV1mKuiNpC+IOBjI7aAzPcEZeedi5yW5f2yOq55WWLwNGmvvx4Um1vskeMj0" crossorigin="anonymous">
<br>
<div style="text-align:center;">
<font face="微軟正黑體" color=black>
<h1><b>世界大學排名 </b>
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">說明</button>
</h1>
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">世界大學排名</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body" style="text-align:left;" font-family="Microsoft YaHei">
本圖表參考Kaggle上的<a href="https://www.kaggle.com/datasets/padhmam/qs-world-university-rankings-2017-2022">歷年QS大學排名資訊</a>。<br>以國際教師、國際學生、師生比例及學術產出四項指標呈現各大學客觀的排名。<br>
期望透過此圖表幫助眾多學子在選擇就讀學校時,有個方便又客觀的參考依據。<br><br>
<span class="badge rounded-pill bg-primary">功能介紹:</span>
<ul>
<li>使用者可在畫面左方的年份選擇中選擇欲查看的年份</li>
<li>使用者可以地區選擇的地圖點選各大洲篩選學校</li>
<li>使用者可依自身需求調整各項指標所佔權重及指標的呈現順序</li>
</ul>
</div>
<!-- <div class="modal-footer">
頁尾
</div> -->
</div>
</div>
</div>
<br>
</font>
</div>
</head>
<!-- Load d3.js -->
<script src="https://d3js.org/d3.v6.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js"
integrity="sha384-p34f1UUtsS3wqzfto5wAAmdvj+osOnFyQFpp4Ua3gs/ZVWx6oOypYoCJhGGScy+8" crossorigin="anonymous"></script>
<body>
<div class="row">
<!-- <div class="col">
<div class="card c-1" style="width: 850px;">
<div id="myLegend"></div>
<div class="container">
<div id="myStackBar" style="text-align:center;"></div>
</div>
</div>
</div> -->
<div id="col-left" class="col" style="width:500px; ">
<div class="card">
<div class="card-body">
<h5 class="card-title"><img src="calendar.svg" class="img-fluid" style="width:20px;"><b> 年份選擇 </b></h5>
<div class="form-check form-check-inline m-1 ">
<input class="form-check-input" type="radio" name="flexRadioDefault" id="year2017" onclick="Year(2017, true);">
<label class="form-check-label" for="flexRadioDefault1">2017</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="flexRadioDefault" id="year2018" onclick="Year(2018, true);">
<label class="form-check-label" for="flexRadioDefault1">2018</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="flexRadioDefault" id="year2019" onclick="Year(2019, true);">
<label class="form-check-label" for="flexRadioDefault1">2019</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="flexRadioDefault" id="year2020" onclick="Year(2020, true);">
<label class="form-check-label" for="flexRadioDefault1">2020</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="flexRadioDefault" id="year2021" onclick="Year(2021, true);">
<label class="form-check-label" for="flexRadioDefault1">2021</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="flexRadioDefault" id="year2022" checked
onclick="Year(2022, true);">
<label class="form-check-label" for="flexRadioDefault2">2022</label>
<br>
</div>
<hr>
<h5 class="card-title">
<img src="world.svg" class="img-fluid" style="width: 20px;"><b> 地區選擇 </b>
<button type="button" class="btn btn-outline-secondary rounded-pill btn-sm"
onclick="FilterRegion(`All`)">選擇全部</button>
</h5>
<div id="myMap"></div>
<hr>
<div class="row">
<div class="col">
<h5 class="card-title">
<img src="system-controller-svgrepo-com.svg" class="img-fluid" style="width: 20px;"><b> 權重調整 </b>
<button type="button" class="btn btn-outline-secondary rounded-pill btn-sm"
onclick="resetWeight();">重置</button>
</h5>
<div class="d-grid gap-2">
<label for="nWeight_FC" style="display: inline-block; width: 240px; text-align: center">
國際教師
<input type="range" min="0" max="10" id="nWeight_FC" value="5">
<span class="badge rounded-pill bg-primary" id="nWeight_FC-value">5</span>
</label>
<label for="nWeight_InterStuO" style="display: inline-block; width: 240px; text-align: center">
國際學生
<input type="range" min="0" max="10" id="nWeight_InterStuO" value="5">
<span class="badge rounded-pill bg-primary" id="nWeight_InterStuO-value">5</span>
</label>
<label for="nWeight_SFRatioO" style="display: inline-block; width: 240px; text-align: center">
師生比例
<input type="range" min="0" max="10" id="nWeight_SFRatioO" value="5">
<span class="badge rounded-pill bg-primary" id="nWeight_SFRatioO-value">5</span>
</label>
<label for="nWeight_ResearchO" style="display: inline-block; width: 240px; text-align: center">
學術產出
<input type="range" min="0" max="10" id="nWeight_ResearchO" value="5">
<span class="badge rounded-pill bg-primary" id="nWeight_ResearchO-value">5</span>
</label>
</div>
</div>
<div class="col">
<h5 class="card-title">
<img src="exchange-svgrepo-com.svg" class="img-fluid" style="width: 20px;"><b> 順序調整 </b>
<button type="button" class="btn btn-outline-secondary rounded-pill btn-sm"
onclick="changeOrder(0);">重置</button>
</h5>
<div class="row">
<div class="d-grid gap-1">
<div class="btn-group btn-group-sm" role="group" aria-label="Basic outlined example">
<button type="button" class="btn btn-outline-primary" disabled id="order3"> 國際教師 </button>
<button type="button" class="btn btn-primary" id="order0_up" disabled>▲</button>
<button type="button" class="btn btn-primary" id="order0_down" onclick="changeOrder(23);">▼</button>
</div>
<div class="btn-group btn-group-sm" role="group" aria-label="Basic outlined example">
<button type="button" class="btn btn-outline-primary" disabled id="order2"> 國際學生 </button>
<button type="button" class="btn btn-primary" id="order1_up" onclick="changeOrder(23);">▲</button>
<button type="button" class="btn btn-primary" id="order1_down" onclick="changeOrder(12);">▼</button>
</div>
<div class="btn-group btn-group-sm" role="group" aria-label="Basic outlined example">
<button type="button" class="btn btn-outline-primary" disabled id="order1"> 師生比例 </button>
<button type="button" class="btn btn-primary" id="order2_up" onclick="changeOrder(12);">▲</button>
<button type="button" class="btn btn-primary" id="order2_down" onclick="changeOrder(01);">▼</button>
</div>
<div class="btn-group btn-group-sm" role="group" aria-label="Basic outlined example">
<button type="button" class="btn btn-outline-primary" disabled id="order0"> 學術產出 </button>
<button type="button" class="btn btn-primary" id="order3_up" onclick="changeOrder(01);">▲</button>
<button type="button" class="btn btn-primary" id="order3_down" disabled>▼</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="col-right" class="col">
<div class="card c-1" style="width: 850px;">
<div id="NowStates"></div>
<div id="myLegend"></div>
<div class="container">
<div id="myStackBar" style="text-align:center;"></div>
</div>
</div>
</div>
</div>
<script src="./MergeSort.js"></script>
<script src="./main.js"></script>
<script src="./map.js"></script>
<script src="./legend.js"></script>
</body>