465 lines
13 KiB
HTML
465 lines
13 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Globe Viz 6: Global University Rankings & Research</title>
|
|
<link href="https://api.mapbox.com/mapbox-gl-js/v3.0.1/mapbox-gl.css" rel="stylesheet">
|
|
<script src="https://api.mapbox.com/mapbox-gl-js/v3.0.1/mapbox-gl.js"></script>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#map {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
/* Title overlay */
|
|
.title-overlay {
|
|
position: absolute;
|
|
top: 20px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background: rgba(0, 0, 0, 0.85);
|
|
backdrop-filter: blur(10px);
|
|
padding: 15px 30px;
|
|
border-radius: 8px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
z-index: 1;
|
|
text-align: center;
|
|
}
|
|
|
|
.title-overlay h1 {
|
|
color: #00bfff;
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.title-overlay p {
|
|
color: #aaa;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Filter controls panel */
|
|
.controls-panel {
|
|
position: absolute;
|
|
top: 120px;
|
|
right: 20px;
|
|
width: 320px;
|
|
max-height: calc(100vh - 140px);
|
|
background: rgba(0, 0, 0, 0.9);
|
|
backdrop-filter: blur(15px);
|
|
border-radius: 10px;
|
|
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
padding: 20px;
|
|
z-index: 1;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.controls-panel h2 {
|
|
color: #00bfff;
|
|
font-size: 18px;
|
|
margin-bottom: 15px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 2px solid rgba(0, 191, 255, 0.3);
|
|
}
|
|
|
|
.filter-section {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.filter-section h3 {
|
|
color: #fff;
|
|
font-size: 14px;
|
|
margin-bottom: 10px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.filter-item {
|
|
margin-bottom: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.filter-item input[type="checkbox"] {
|
|
margin-right: 8px;
|
|
cursor: pointer;
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.filter-item label {
|
|
color: #ddd;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.filter-item label:hover {
|
|
color: #00bfff;
|
|
}
|
|
|
|
.slider-container {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.slider-label {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
color: #ddd;
|
|
font-size: 12px;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.slider-value {
|
|
color: #00bfff;
|
|
font-weight: 600;
|
|
}
|
|
|
|
input[type="range"] {
|
|
width: 100%;
|
|
height: 6px;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border-radius: 3px;
|
|
outline: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
input[type="range"]::-webkit-slider-thumb {
|
|
appearance: none;
|
|
width: 16px;
|
|
height: 16px;
|
|
background: #00bfff;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
}
|
|
|
|
input[type="range"]::-moz-range-thumb {
|
|
width: 16px;
|
|
height: 16px;
|
|
background: #00bfff;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
border: none;
|
|
}
|
|
|
|
.btn {
|
|
width: 100%;
|
|
padding: 10px;
|
|
margin-top: 10px;
|
|
background: rgba(0, 191, 255, 0.2);
|
|
color: #00bfff;
|
|
border: 1px solid #00bfff;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.btn:hover {
|
|
background: rgba(0, 191, 255, 0.4);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/* Statistics panel */
|
|
.stats-panel {
|
|
position: absolute;
|
|
bottom: 20px;
|
|
left: 20px;
|
|
background: rgba(0, 0, 0, 0.85);
|
|
backdrop-filter: blur(10px);
|
|
padding: 15px 20px;
|
|
border-radius: 8px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
z-index: 1;
|
|
min-width: 280px;
|
|
}
|
|
|
|
.stats-panel h3 {
|
|
color: #00bfff;
|
|
font-size: 16px;
|
|
margin-bottom: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.stat-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 8px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.stat-label {
|
|
color: #aaa;
|
|
}
|
|
|
|
.stat-value {
|
|
color: #fff;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Legend */
|
|
.legend {
|
|
position: absolute;
|
|
bottom: 20px;
|
|
right: 20px;
|
|
background: rgba(0, 0, 0, 0.85);
|
|
backdrop-filter: blur(10px);
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
z-index: 1;
|
|
min-width: 200px;
|
|
}
|
|
|
|
.legend h3 {
|
|
color: #00bfff;
|
|
font-size: 14px;
|
|
margin-bottom: 10px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.legend-item {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 6px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.legend-color {
|
|
width: 20px;
|
|
height: 12px;
|
|
margin-right: 8px;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.legend-text {
|
|
color: #ddd;
|
|
}
|
|
|
|
/* Custom scrollbar */
|
|
.controls-panel::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
.controls-panel::-webkit-scrollbar-track {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.controls-panel::-webkit-scrollbar-thumb {
|
|
background: rgba(0, 191, 255, 0.5);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.controls-panel::-webkit-scrollbar-thumb:hover {
|
|
background: rgba(0, 191, 255, 0.7);
|
|
}
|
|
|
|
/* Mapbox popup styling */
|
|
.mapboxgl-popup-content {
|
|
background: rgba(0, 0, 0, 0.95);
|
|
color: #fff;
|
|
padding: 0;
|
|
border-radius: 6px;
|
|
border: 1px solid rgba(0, 191, 255, 0.3);
|
|
}
|
|
|
|
.mapboxgl-popup-tip {
|
|
border-top-color: rgba(0, 0, 0, 0.95);
|
|
}
|
|
|
|
/* Responsive design */
|
|
@media (max-width: 768px) {
|
|
.title-overlay h1 {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.title-overlay p {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.controls-panel {
|
|
top: auto;
|
|
bottom: 20px;
|
|
right: 10px;
|
|
left: 10px;
|
|
width: auto;
|
|
max-height: 40vh;
|
|
}
|
|
|
|
.stats-panel {
|
|
left: 10px;
|
|
bottom: auto;
|
|
top: 100px;
|
|
min-width: auto;
|
|
}
|
|
|
|
.legend {
|
|
display: none;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="map"></div>
|
|
|
|
<!-- Title overlay -->
|
|
<div class="title-overlay">
|
|
<h1>Global University Rankings & Research Output</h1>
|
|
<p>Interactive 3D Globe Visualization | 120 Top Research Institutions Worldwide</p>
|
|
</div>
|
|
|
|
<!-- Filter controls panel -->
|
|
<div class="controls-panel">
|
|
<h2>Interactive Filters</h2>
|
|
|
|
<!-- Region filters -->
|
|
<div class="filter-section">
|
|
<h3>Filter by Region</h3>
|
|
<div id="region-filters">
|
|
<!-- Dynamically populated -->
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Ranking filter -->
|
|
<div class="filter-section">
|
|
<div class="slider-container">
|
|
<div class="slider-label">
|
|
<span>Global Ranking</span>
|
|
<span class="slider-value" id="ranking-value">Top 120</span>
|
|
</div>
|
|
<input type="range" id="ranking-slider" min="10" max="120" value="120" step="10">
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Publications filter -->
|
|
<div class="filter-section">
|
|
<div class="slider-container">
|
|
<div class="slider-label">
|
|
<span>Annual Publications</span>
|
|
<span class="slider-value" id="publications-value">≥0K</span>
|
|
</div>
|
|
<input type="range" id="publications-slider" min="0" max="20000" value="0" step="1000">
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Citations filter -->
|
|
<div class="filter-section">
|
|
<div class="slider-container">
|
|
<div class="slider-label">
|
|
<span>Total Citations</span>
|
|
<span class="slider-value" id="citations-value">≥0K</span>
|
|
</div>
|
|
<input type="range" id="citations-slider" min="0" max="500000" value="0" step="25000">
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Funding filter -->
|
|
<div class="filter-section">
|
|
<div class="slider-container">
|
|
<div class="slider-label">
|
|
<span>Research Funding</span>
|
|
<span class="slider-value" id="funding-value">≥$0M</span>
|
|
</div>
|
|
<input type="range" id="funding-slider" min="0" max="4500" value="0" step="100">
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Nobel prizes filter -->
|
|
<div class="filter-section">
|
|
<div class="slider-container">
|
|
<div class="slider-label">
|
|
<span>Nobel Prizes</span>
|
|
<span class="slider-value" id="nobel-value">≥0</span>
|
|
</div>
|
|
<input type="range" id="nobel-slider" min="0" max="161" value="0" step="5">
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Control buttons -->
|
|
<button class="btn" id="reset-filters">Reset All Filters</button>
|
|
<button class="btn" id="toggle-rotation">Pause Rotation</button>
|
|
</div>
|
|
|
|
<!-- Statistics panel -->
|
|
<div class="stats-panel">
|
|
<h3>Current Selection</h3>
|
|
<div class="stat-row">
|
|
<span class="stat-label">Universities:</span>
|
|
<span class="stat-value" id="stat-total">120</span>
|
|
</div>
|
|
<div class="stat-row">
|
|
<span class="stat-label">Avg Research Score:</span>
|
|
<span class="stat-value" id="stat-research">-</span>
|
|
</div>
|
|
<div class="stat-row">
|
|
<span class="stat-label">Total Publications:</span>
|
|
<span class="stat-value" id="stat-publications">-</span>
|
|
</div>
|
|
<div class="stat-row">
|
|
<span class="stat-label">Total Citations:</span>
|
|
<span class="stat-value" id="stat-citations">-</span>
|
|
</div>
|
|
<div class="stat-row">
|
|
<span class="stat-label">Total Nobel Prizes:</span>
|
|
<span class="stat-value" id="stat-nobel">-</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Legend -->
|
|
<div class="legend">
|
|
<h3>Research Score</h3>
|
|
<div class="legend-item">
|
|
<div class="legend-color" style="background: #0066ff;"></div>
|
|
<span class="legend-text">95-99 (Exceptional)</span>
|
|
</div>
|
|
<div class="legend-item">
|
|
<div class="legend-color" style="background: #00bfff;"></div>
|
|
<span class="legend-text">90-94 (Outstanding)</span>
|
|
</div>
|
|
<div class="legend-item">
|
|
<div class="legend-color" style="background: #32cd32;"></div>
|
|
<span class="legend-text">85-89 (Excellent)</span>
|
|
</div>
|
|
<div class="legend-item">
|
|
<div class="legend-color" style="background: #ffd700;"></div>
|
|
<span class="legend-text">80-84 (Very Good)</span>
|
|
</div>
|
|
<div class="legend-item">
|
|
<div class="legend-color" style="background: #ffa500;"></div>
|
|
<span class="legend-text">75-79 (Good)</span>
|
|
</div>
|
|
<div class="legend-item">
|
|
<div class="legend-color" style="background: #ff6347;"></div>
|
|
<span class="legend-text">70-74 (Above Average)</span>
|
|
</div>
|
|
<div class="legend-item">
|
|
<div class="legend-color" style="background: #dc143c;"></div>
|
|
<span class="legend-text">65-69 (Average)</span>
|
|
</div>
|
|
<div class="legend-item">
|
|
<div class="legend-color" style="background: #8b0000;"></div>
|
|
<span class="legend-text">55-64 (Emerging)</span>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="src/data/data.js"></script>
|
|
<script src="src/index.js"></script>
|
|
</body>
|
|
</html>
|