-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsurprise-k.html
95 lines (73 loc) · 2.99 KB
/
surprise-k.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
<!DOCTYPE html>
<html>
<head>
<!-- <title>Standard 41 Surprise Methods</title> -->
<!-- <title>Cambridge-Above Surprise Methods</title> -->
<title>Carlisle-Above Surprise Methods</title>
<!-- <title>London-Above Surprise Methods</title> -->
<!-- <title>Norwich-Above Surprise Methods</title> -->
<script>
// ------------------------------------------------------------
// DATA
// List of works, arranged by column, each given as Id/Name
var workTable=
[['C/CAMBRIDGE','K/CARLISLE','L/LONDON','N/NORWICH'],
['Cm/Cambridge','Ip/Ipswich','Cu/Cunecastre','Bv/Beverley','Su/Surfleet',
'No/Norwich','Bo/Bourne','Lo/London','We/Wells',
'Ws/Westminster','Ad/Allendale','Ke/Kelso','Wk/Warkworth'],
['2/2nds','6/6ths']
];
// false: gray-out works not included in any method
var includeAll=false;
// List of methods, given as Name/Work 1/Work 2/...
var methodTable=
[
//'Cambridge/C/Cm/2','Primrose/C/Cm/6','Ipswich/C/Ip/2','Norfolk/C/Ip/6',
//'Beverley/C/Bv/2','Berwick/C/Bv/6','Surfleet/C/Su/2','Hexham/C/Su/6',
//'Bourne/C/Bo/2','Hull/C/Bo/6','York/C/Lo/2','Durham/C/We/2',
'Carlisle/K/Cm/2','Northumberland/K/Ip/2','Whitley/K/Ip/6',
'Chester/K/Bv/2','Munden/K/Su/2','Sandiacre/K/Bo/2','Wooler/K/Bo/6',
'Alnwick/K/Lo/2','Canterbury/K/Lo/6','Newcastle/K/We/2','Morpeth/K/We/6',
//'London/L/Lo/2','Wells/L/We/2','Lincoln/L/Ws/2','Coldstream/L/Ad/2',
//'Cunecastre/L/Cu/2','Kelso/L/Ke/2',
//'Norwich/N/No/6','Warkworth/N/Wk/6','Westminster/N/Ws/2','Allendale/N/Ad/2',
//'Netherseale/N/Cu/2',"Annable's London/N/Cu/6",'Bamborough/N/Ke/2','Bacup/N/Ke/6',
//'Lightfoot/N/Lo/2','Rossendale/N/Lo/6','Wearmouth/N/We/2','Stamford/N/We/6'
];
// Parameters
var initialweight=25; // initial score (in seconds) assigned to each method
var penalty=10; // penalty (in seconds) for each error
var inertia=.5; // relative weighting given to previous vs new score
var progressstretch=2; // power applied to percentage to emphasise initial progress
// ----------------------------------------------------------------
</script>
<!-- ------------------------------------------------------------ -->
<!-- STYLE -->
<link rel="stylesheet" type="text/css" href="methods.css">
</head>
<!-- ------------------------------------------------------------ -->
<!-- PAGE -->
<body>
<table class=main>
<tr height=12%>
<td class=head colspan=100%> <table style="height:100%;width:100%;"> <tr>
<td id='percentage' width=15%>
<!-- percentage will go here -->
</td>
<td id='method' class=question>
<!-- method will go here -->
</td>
<td id='pause' onMouseDown='pausemousedown()' class=normal width=12%>
▐ ▌ <!-- pause symbol -->
</td>
</tr> </table> </td>
</tr>
<tr id='works'>
<!-- works will be inserted here -->
</tr>
</table>
<!-- ------------------------------------------------------------ -->
<!-- SCRIPT -->
<script src="methods.js"></script>
</body>
</html>