-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
102 lines (93 loc) · 4.83 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
<!DOCTYPE html>
<html lang="en">
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="{{ url_for('static', filename='flat-ui/dist/css/vendor/bootstrap.min.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='flat-ui/dist/css/flat-ui.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='style.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='chart.css') }}" rel="stylesheet">
<title>Speed-Cubjectives :: A tool computes statistics-based speedcubing objectives for you</title>
<!--[if lt IE 9]>
<script src="//oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="//oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
{% include 'header.html' %}
<div class="container">
{% include 'tron.html' %}
<p>
The tool computes statistics-based speedsolving objectives for you.<br>
Given your record of a <a href="https://www.worldcubeassociation.org/" target="_blank">WCA</a> events,
the tool calcultes and tells you <a href="https://www.worldcubeassociation.org/results/misc/export.html" target="_blank">WCA-database</a>-based objectives in the other events.
</p>
<p>
Please enter your record of <b>{{ params.fullname_base }}</b> <small><a href="#" id="link-change-event">[change event]</a></small>,
or just enter your WCA ID.
</p>
<div id="panel-input-event" class="panel panel-default panel-input" style="display:none;"><div class="panel-body">
<form action="./" method="GET">
<select id="select-change-event" name="base" class="form-control mbs">
{% for event in params.wca_events %}
<option value="{{ event[0] }}">{{ event[1] }}</option>
{% endfor %}
</select>
<button type="submit" id="button-change-event" class="btn btn-primary btn-lg" style="width:100%;">Change base event</button>
</form>
</div></div><!-- /#panel-input-event -->
<div id="panel-input-record" class="panel panel-default panel-input"><div class="panel-body">
<form>
<div class="form-group">
<label for="input-record">Your record of <i>{{ params.fullname_base }}</i> (in <span class="unit-base"></span>),
or your WCA ID if you have a record of <i>{{ params.fullname_base }}</i>,
<span style="color:#999;">e.g. <span class="format-example-base"></span>, or <b>2010TERA01</b></span>.</label>
<div class="input-group">
<input id="input-record" type="text" value="" placeholder="Your record or WCA ID" class="form-control" />
<div class="input-group-addon"><span class="unit-base">sec</span></div>
</div><!-- /.input-group -->
<input type="text" name="dummy" style="display:none;" />
</div><!-- /.form-group -->
<button type="button" id="get-cubjectives" class="btn btn-primary btn-lg" style="width:100%;">Get Cubjectives!</button>
</form>
</div></div><!-- /#panel-input-record -->
<div id="input-error" class="alert alert-danger" style="display:none;"></div>
<h3>Your Cubjectives</h3>
<div id="output-error" class="alert alert-danger" style="display:none;">Loading error. Please try again.</div>
<div id="output-loading" style="display:none;">Loading... Please wait for a moment.</div>
<div id="output" style="display:none;">
<p>Here is list of your cubjectives.<br>
Cubers like you (cubers who solve <i>{{ params.fullname_base }}</i> in <b class="cubjectives-record-{{ params.base }}"></b>)
likely have the ablities to solve all WCA events as shown below:</p>
<table id="cubjectives" class="table table-hover">
<thead>
<tr><th>Event</th><th>Computed Objective</th><th>More Info</th></tr>
</thead>
<tbody>
{% for event in params.wca_events %}
<tr class="cubjectives-{{ event[0] }}">
<th scope="row">{{ event[1] }}</th>
<td class="cubjectives-record-{{ event[0] }}"></td>
<td class="cubjectives-info-{{ event[0] }}">
<a class="btn btn-default" href="{{ url_for('chart') }}?ex={{ params.base }}&ey={{ event[0] }}" role="button">View chart</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div><!-- #output -->
<h3>Notes</h3>
{% include 'notes.html' %}
</div><!-- /.container -->
{% include 'footer.html' %}
<script src="{{ url_for('static', filename='flat-ui/dist/js/vendor/jquery.min.js') }}"></script>
<script src="{{ url_for('static', filename='flat-ui/dist/js/flat-ui.min.js') }}"></script>
<script src="{{ url_for('wcajs') }}"></script>
<script>
{% include 'functions.js' %}
var query_base = '{{ params.base }}';
</script>
<script src="{{ url_for('static', filename='index.js') }}"></script>
</body>
</html>