-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcubingweek.html
225 lines (178 loc) · 9.64 KB
/
cubingweek.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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<!DOCTYPE html>
<html>
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<!--Css Doodle-->
<script src="https://unpkg.com/css-doodle@0.8.5/css-doodle.min.js"></script>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="./main.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="/vendors/formvalidation/dist/css/formValidation.min.css">
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<link rel="icon" href="{{ url_for('static', filename='cubetitle.png') }}" sizes="96x96" type="image/png">
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<title>Cubing Week - DAY3</title>
<style>
table, th,tr,td{
width:200px;
}
td{
height: 40px;
}
</style>
</head>
<body style="overflow: hidden;height: 100vh;">
<nav class="navbar navbar-expand-md navbar-dark bg-steel fixed-top lappy" >
<div class="container-fluid">
<a class="navbar-brand mr-8" href="/" style="padding-top: 0px;padding-bottom: 0px;"><img src="./cubelogo.png" width="80px" height="35px"></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarToggle" aria-controls="navbarToggle" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarToggle">
<div class="navbar-nav mr-auto">
</div>
<div class="navbar-nav">
<h6 style="color: white;">C.U.B.E VIT welcomes you all!</h6>
</div>
</div>
</div>
</nav>
<div class="container">
<div style="display: flex;flex-direction: column;justify-content: center;align-items: center; background-color: rgb(19, 19, 19);border-radius: 10px;padding: 1em 0;box-shadow: inset 0px 0px 5px 2px rgba(0,0,0,0.8);">
<div style="margin: 2em auto;">
<h2><b>FANTASTIC 4x4</b></h2>
</div>
<div style="width: 50%;border: 4px solid black;box-shadow: inset 2px 2px 3px 2px rgba(0,0,0,0.6)">
<div style="background-color: black;height: 100%;">
<div>
<table class="table table-bordered table-dark" style="margin-bottom:0;">
<thead style="background-color: white;border: 2px solid black">
<tr style="color: black;font-weight: 600;box-shadow: inset 2px 2px 3px 2px rgba(0,0,0,0.6);font-size: large;">
<!-- Aryan Chabbra
Nikhil Soares
Akshaansh Chilakapati
Kunal Oak
Anish Rajesh -->
<th style="border:1px solid black" scope="col" id="p1">Aryan Chabbra</th>
<th style="border:1px solid black" scope="col" id="p2">Nikhil Soares</th>
</tr>
</thead>
<tbody>
<tr>
<td style="border: 1px solid black;" id="p1s1">32.71</td>
<td style="border: 1px solid black;" id="p2s1">40.17</td>
</tr>
<tr>
<td style="border: 1px solid black;" id="p1s2">31.85</td>
<td style="border: 1px solid black;" id="p2s2">37.05</td>
</tr>
<tr>
<td style="border: 1px solid black;" id="p1s3">31.89</td>
<td style="border: 1px solid black;" id="p2s3">37.92</td>
</tr>
<tr>
<td style="border: 1px solid black;" id="p1s4">34.20</td>
<td style="border: 1px solid black;" id="p2s4">35.16</td>
</tr>
<tr>
<td style="border: 1px solid black;" id="p1s5">35.03</td>
<td style="border: 1px solid black;" id="p2s5">29.10</td>
</tr>
<tr style="background-color: rgb(86,96,158);box-shadow: inset 2px 2px 3px 2px rgba(0,0,0,0.6);">
<b><td style="border: 1px solid black;font-weight: 700;color: yellow;letter-spacing: 2px;" id="player1"></td></b>
<b><td style="border: 1px solid black;font-weight: 700;color: yellow;letter-spacing:2px;" id="player2"></td></b>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div style="display: flex;justify-content: space-around;align-items: center;margin-top: 1em;width: 50%;">
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#exampleModalCenter" >
<b style="color: black">Results</b>
</button>
<button type="button" class="btn btn-warning" id="scorecard" onclick="sendJSON()">
<b style="color: black">Scorecard</b>
</button>
</div>
<!-- Modal -->
<div class="modal fade" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true" id="starshine" >
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content" style="box-shadow: inset 0px 0px 4px 2px rgba(0,0,0,0.8);">
<div class="modal-header" style="display: flex;justify-content: center;align-items: center;">
<h3 class="modal-title" id="exampleModalLongTitle" style="color: green;text-align: center;"><b>CONGRATULATIONS!</b></h3>
</div>
<div class="modal-body" style="line-height: 5px;word-spacing: 3px;">
<h5>The winner of this round is <b><span id="avgname" style="color: red;"></span></b> with an average of <b><span id="avgwin"></span></b></h5>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal"><b style="color: black">Close</b></button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script>
AOS.init();
</script>
<script>
var data = {
getUserDataFromSession: function() {
var userData = window.sessionStorage.getItem('userObject');
return JSON.parse(userData);
}
}
var userDataObject=data.getUserDataFromSession();
function storeUserDataInSession(userData) {
var userObjectString = JSON.stringify(userData);
window.sessionStorage.setItem('userObject',JSON.stringify(userData));
}
$("#scorecard").click(function(){
let sortBy = [{
prop:'Won',
direction: -1
},{
prop:'Bestavg',
direction: 1
}];
storeUserDataInSession(userDataObject.sort(function(a,b){let i = 0, result = 0;
while(i < sortBy.length && result === 0) {
result = sortBy[i].direction*(a[ sortBy[i].prop ].toString() < b[ sortBy[i].prop ].toString() ? -1 : (parseFloat(a[ sortBy[i].prop ]) > parseFloat(b[ sortBy[i].prop ]) ? 1 : 0));
i++;
}
return result;}));
window.location = './scorecard.html';
});
</script>
<script src="./main.js"></script>
<script
src="https://code.jquery.com/jquery-3.5.1.js"
integrity="sha256-QWo7LDvxbWT2tbbQ97B53yJnYU3WhH/C8ycbRAkjPDc="
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script src="{{ url_for('static', filename='main1.js') }}"></script>
<script>
function showNav(){
document.getElementById('burger').classList.toggle('is-open');
document.getElementById('main-nav').classList.toggle('is-open');
}
</script>
<script>
$(function () {
setTimeout(function () {
$('#preloader').fadeOut('slow', function () {
$(this).remove();
});
}, 2000);
});
</script>
</body>
</html>