-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
146 lines (127 loc) · 4.28 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Basic Page Needs
?????????????????????????????????????????????????? -->
<meta charset="utf-8">
<title>Chess Opening Recommender</title>
<meta name="description" content="Based on your playing style, our engine recommends chess openings which are a perfect match for you. You can find openings which are aggressive, passive, positional, tactical, theory heavy, simple, open, closed, and anywhere in between!">
<meta name="author" content="Peter">
<!-- Mobile Specific Metas
?????????????????????????????????????????????????? -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- FONT
?????????????????????????????????????????????????? -->
<link href="https://fonts.googleapis.com/css?family=Raleway:400,300,600" rel="stylesheet" type="text/css">
<!-- CSS
?????????????????????????????????????????????????? -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/skeleton.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/slider.css">
<!-- Favicon
?????????????????????????????????????????????????? -->
<link rel="icon" type="image/jpg" href="images/Logo.jpg">
</head>
<body>
<!-- Primary Page Layout
?????????????????????????????????????????????????? -->
<div class="container">
<div class="row">
<div class="one-half column header">
<div align="left">
<h2>Chess Opening Recommender</h2>
<br/>
</div>
</div>
<div class="one-half column header">
<img src="images/Logo.jpg" width="40%"/>
</div>
</div>
<div class="row" align="center">
<form>
<input type="text" style="width: 40vw;" name="keywords" id="keywords" placeholder="Enter search terms here (i.e. modern)">
</form>
</div>
<!-- Positional/Aggressive slider -->
<div class="row">
<div class="three columns">
<p> I am a positional player </p>
</div>
<div class="six columns">
<div class="slidecontainer">
<input type="range" min="-100" max="100" value="0" class="slider" id="positionalAttackingRange">
</div>
</div>
<div class="three columns" align="right">
<p> I am an attacking player </p>
</div>
</div>
<!-- Closed slider -->
<div class="row">
<div class="three columns">
<p> I prefer closed games </p>
</div>
<div class="six columns">
<div class="slidecontainer">
<input type="range" min="-100" max="100" value="0" class="slider" id="openClosedGameRange">
</div>
</div>
<div class="three columns" align="right">
<p> I prefer open games </p>
</div>
</div>
<!-- Gambits slider -->
<div class="row">
<div class="three columns">
<p> I hate gambits </p>
</div>
<div class="six columns">
<div class="slidecontainer">
<input type="range" min="-100" max="100" value="0" class="slider" id="gambitRange">
</div>
</div>
<div class="three columns" align="right">
<p> I love gambits </p>
</div>
</div>
<!-- Theory slider -->
<div class="row">
<div class="three columns">
<p> I hate complex theory </p>
</div>
<div class="six columns">
<div class="slidecontainer">
<input type="range" min="-100" max="100" value="0" class="slider" id="theoryRange">
</div>
</div>
<div class="three columns" align="right">
<p> I love studying theory </p>
</div>
</div>
<div class="row">
<div class="twelve columns social" align="center">
<button class="button buttonLink green" id="submitButton">Find Chess Openings</button>
</div>
</div>
<div class="row" id="results" align="center">
</div>
<!-- End Document
?????????????????????????????????????????????????? -->
</body>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css">
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/recommender.js"></script>
<script>
$(document).ready(function(){
$('#keywords').keypress(function(e){
console.log('here');
if(e.keyCode==13){
event.preventDefault();
$('#submitButton').click();
}
});
});
</script>
</html>