-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.tmpl.html
102 lines (95 loc) · 5.83 KB
/
index.tmpl.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
<!DOCTYPE html>
<html lang="{{ locale }}">
<head>
<meta charset="utf-8">
<link rel="alternate" href="https://comparail.traines.eu/en/" hreflang="en" />
<link rel="alternate" href="https://comparail.traines.eu/de/" hreflang="de" />
<link rel="alternate" href="https://comparail.traines.eu/fr/" hreflang="fr" />
<title>{{ gettext('title_long') }}</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=3,user-scalable=yes">
<link href="/favicon.ico" type="image/x-icon" rel="shortcut icon">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="stylesheet" href="/res/styles.css" />
<script src="/vendor/d3.v7.min.js"></script>
</head>
<body>
<h1>{{ gettext('title_long') }}</h1>
<div id="container-plot"><svg id="plot" data-width="700" data-height="700" data-auto-start="false" preserveAspectRatio="xMidYMin">
<defs>
<linearGradient id="gradient" x1="0" x2="1" y1="0" y2="0">
<stop offset="0%" stop-color="rgb(1, 87, 155)"/>
<stop offset="100%" stop-color="rgb(183, 28, 28)"/>
</linearGradient>
</defs>
<g id="bgmap"></g>
<g id="projects"></g>
<g id="elements"></g>
</svg></div>
<div id="overlay"><div>
{% for select in [{'pos':'br', 'axis': 'x'}, {'pos':'tl', 'axis': 'y'}, {'pos':'tr', 'axis': 'z'}] %}
<div class="axis-select" id="{{ select.pos }}">
<select class="select" id="select-{{ select.axis }}">
{% for dim in dimensions %}
{%- if not dim.hidden %}
<option value="{{ dim.id }}" {{ make_unit_dataset(dim) }}>{{ gettext(dim.id) }}</option>
{%- endif %}
{%- endfor %}
</select><br />
<select class="select" id="select-{{ select.axis }}-per">
<option value="-1"></option>
{% for dim in dimensions %}
{%- if not dim.hidden %}
<option value="{{ dim.id }}" {{ make_unit_dataset(dim) }}>{{ gettext('per') }} {{ gettext(dim.id) }}</option>
{%- endif %}
{%- endfor %}
</select>
</div>
{% endfor %}
</div></div>
<div id="meta"><div>
<div id="introduction">
<p>{{ gettext('introduction') }}</p>
<p><a href="https://youtu.be/2RIyDF8_QHA">{{ gettext('walkthrough') }}</a></p>
<p>{{ gettext('examples') }}</p>
<ul>
<li><a href="javascript:void(0)" onclick="presetSelects('trains_per_hour_direction-undefined-passengers_per_day-undefined-number_stations-undefined')">{{ gettext('example_number_trains_passenger') }}</a></li>
<li><a href="javascript:void(0)" onclick="presetSelects('length_double_track-number_stations-commercial_speed-undefined-trains_per_hour_direction-undefined')">{{ gettext('example_station_spacing_commercial_speed') }}</a></li>
<li><a href="javascript:void(0)" onclick="presetSelects('estimated_construction_cost-undefined-construction_duration-undefined-estimated_construction_cost-construction_duration')">{{ gettext('example_construction_cost_duration') }}</a></li>
<li><a href="javascript:void(0)" onclick="presetSelects('estimated_construction_cost-passengers_per_day-estimated_construction_cost-pkm_per_day-estimated_construction_cost-undefined')">{{ gettext('example_cost_per_passenger') }}</a></li>
<li><a href="javascript:void(0)" onclick="presetSelects('length_tunnel_tube-length_tunnel-tunnel_diameter-undefined-maximum_speed-undefined')">{{ gettext('example_double_single_track') }}</a></li>
<li><a href="javascript:void(0)" onclick="presetSelects('emissions_construction_high-emissions_savings_per_year_low-emissions_construction_low-emissions_savings_per_year_high-emissions_construction_reference-emissions_savings_per_year_reference')">{{ gettext('example_co2_best_worst_case') }}</a></li>
</ul>
<p>{{ gettext('disclaimer') }}</p>
</div>
<div id="metrics">
{% for dim in dimensions %}
<div id="{{ dim.id }}">
<h3>{{ gettext(dim.id) }}</h3>
<p>{{ gettext(dim.id+'_description') }}</p>
</div>
{%- endfor %}
</div>
<div class="hscroll">
<table id="datatable">
<tr>
<th></th><th colspan="2"></th><th colspan="2"></th><th colspan="2"></th>
</tr>
{% for project in projects %}
<tr class="row">
<td><a href="https://wikidata.org/wiki/{{ project.wikidata.lbl }}" target="_blank">{{ project.name.lbl }}</a></td><td class="val"></td><td class="src"></td><td class="val"></td><td class="src"></td><td class="val"></td><td class="src"></td>
</tr>
{%- endfor %}
</table>
</div>
<div id="csv"><a href="/dist/rail-projects-comparison.csv">{{ gettext('csv_download') }}</a> | <a href="https://github.com/traines-source/rail-projects-comparison#contribute">{{ gettext('contribute') }}</a></div>
<div id="footer">
<a href="/en/" hreflang="en">EN</a> | <a href="/de/" hreflang="de">DE</a> | <a href="/fr/" hreflang="fr">FR</a> | <a href="https://traines.eu/impressum.html">{{ gettext('imprint') }}</a>
</div>
</div></div>
<script>var unitTranslations = {{ unit_translations }};</script>
<script src="/vendor/network-animator.min.js"></script>
<script src="/res/main.js"></script>
</body>
</html>