-
Notifications
You must be signed in to change notification settings - Fork 11
/
main.html
210 lines (192 loc) · 8.02 KB
/
main.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Sign in</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="/static/md5.js"></script>
<script type="text/javascript" src="/static/signin.js?v=9"></script>
<link rel="stylesheet" type="text/css" href="/static/signin.css" />
</head>
<body id="body">
{% if today_count_signigicant %}
<div style="text-align:center; font-size:18px; position:absolute; background:#f9f9f9; top:12px; right:12px; border:1px solid #ccc; padding:.5em; -webkit-border-radius: 7px; -moz-border-radius: 7px; border-radius: 7px;" id="banner">
<span id="todaycount">{{today_count}}</span> sign-ins today
<br />
~ {{day}} ~
</div>
{% endif %}
<div id="auto" class="corners" style="padding:1em; display:none; position:absolute; z-index:20; top:-12px; right:-12px; width:20%; border:2px solid #90900f; background:#ffffa0 ">
<center>
Auto Sign In
<img id="count" src="/static/countdown.gif" style="margin:1em" align="absmiddle" />
</center>
</div>
<div id="tos" class="corners" style="display:none; position:absolute; z-index:2; top:10%; left:10%; width:80%; height:80%; border:2px solid black; background:white ">
<iframe style="border:none" border=0 width=100% src="https://hackerdojo.pbworks.com/api_v2/op/GetPage/page/Policies/_type/html" height=80%>
</iframe>
<center>
<input style="margin:1em" type=button onclick="thanks();" value="I agree to the terms above" />
</center>
</div>
<div id="rfidwelcome" class="corners" style="display:none; position:absolute; z-index:2; top:05%; left:15%; width:70%; border:2px solid black; background:#dbf2dc; padding:1em">
<h2 style="margin:0">
Welcome
<span class="rfidname">Name</span>
</h2>
<p style="font-size:24px; margin-bottom:1em">Please choose a sign-in option.</p>
<table width="80%" align="center" border="0" cellspacing="0" cellpadding="0" id="rfidtable">
<tr class="hrow" onclick="go('Anonymous')">
<td>
</td>
<td width="84">
<img height="84" width="84" src="/static/anon.png">
</td>
<td>
<h3 style="margin:0">Anonymous</h3>
</td>
<td>
<input type="button" value="1" style="border:2px solid black" />
</td>
<td>
</td>
</tr>
<tr class="hrow" onclick="go('Member')">
<td>
</td>
<td>
<img height="80" width="80" src="/static/anon.png" class="rfidpic" style="border:2px solid orange">
</td>
<td>
<h3 style="margin:0">
<span class="rfidname">Name</span>
</h3>
<h4 style="margin:0">Member</h4>
</td>
<td>
<input type="button" value="2" style="border:2px solid orange" />
</td>
<td>
</td>
</tr>
<tr class="hrow" onclick="go('StaffKey')">
<td>
</td>
<td>
<img height="80" width="80" src="/static/anon.png" class="rfidpic" style="border:2px solid blue">
</td>
<td>
<h3 style="margin:0">
<span class="rfidname">Name</span>
</h3>
<h4 style="margin:0">Acting as staff</h4>
</td>
<td>
<input type="button" value="3" style="border:2px solid blue" />
</td>
<td>
</td>
</tr>
<tr class=hrow onclick="cancel()">
<td>
</td>
<td>
<img height="84" width="84" src="/static/x.png">
</td>
<td>
<h3 style="margin:0">Cancel</h3>
</td>
<td>
<input type="button" value="4" style="border:2px solid red" />
</td>
<td>
</td>
</tr>
</table>
</div>
<div id="ajaxloading" class="corners" style="padding:3em; display:none; position:absolute; z-index:2; top:35%; left:35%; width:20%; border:2px solid #90900f; background:#ffffa0 ">
<center>
Please Wait
<img src="/static/spin1.gif" style="margin:1em" width="32" height="32" align="absmiddle" />
</center>
</div>
<div id="thanks" class="corners" style="padding:2em; display:none; position:absolute; z-index:2; top:35%; left:29%; width:35%; border:2px solid #227b1b; background:#b5e5b2 ">
<img src="/static/check.png" height="130" width="130" align="left" style="margin-right:1em">
<p style="text-align:center" id="thanksmessage">Thank You</p>
</div>
<div id="denied" class="corners" style="padding:4em; display:none; color:black; position:absolute; z-index:2; top:35%; left:25%; width:40%; border:2px solid red; background:#faa ">
<h1>
<center>Access Denied</center>
</h1>
</div>
<div id="ccerror" class="corners" style="padding:4em; display:none; color:black; position:absolute; z-index:2; top:35%; left:25%; width:40%; border:2px solid red; background:#faa ">
<h1><center>Credit Card Error</center></h1>
<h3><p style="text-align:center" id="ccerrormessage"> </p></h3>
</h1>
</div>
<div id="ccthanks" class="corners" style="padding:2em; display:none; position:absolute; z-index:2; top:35%; left:29%; width:35%; border:2px solid #227b1b; background:#b5e5b2 ">
<img src="/static/check.png" height="130" width="130" align="left" style="margin-right:1em">
<p style="text-align:center; font-size:180%" id="ccamount"> </p>
<p style="text-align:center" >THANK YOU</p>
<p style="text-align:center; font-weight:normal; font-size:85%" id="ccthanksmessage"> </p>
</div>
<div id="dojodomain" class="corners" style="padding:2em; display:none; color:black; position:absolute; z-index:2; top:15%; left:15%; width:60%; border:2px solid red; background:#faa ">
<h2 style="margin-top:0">Please use your @hackerdojo.com address</h2>
<ul class="domainbenefits">
<li>Every member gets a <code>@hackerdojo.com</code> account
<li>Your <code>@hackerdojo.com</code> account is used for all kinds of things at the Dojo: e-mail, RFID keys, event hosting, signin, kudos, etc.
<li>You probably already have one in the form of <code>firstname.lastname@hackerdojo.com</code>
<li>If you need one, you can get one at <nobr><code>http://signup.hackerdojo.com/upgrade/needaccount</code></nobr>
</ul>
<p>
<a href="#" onclick="$('#dojodomain').fadeOut(); $('#em').focus();">OK</a>
</p>
</div>
<div id="privacy" class="corners" style="padding:1em; display:none; position:absolute; z-index:2; top:25%; left:25%; width:40%; border:2px solid black; background:#dbf2dc; font-size:80% ">
<h2>E-mail Privacy</h2>
<p>The Dojo will not sell, rent, or give out your e-mail address to
ANYONE.</p>
<p>The Dojo may send you a "welcome e-mail" telling you about
membership, and we may contact you in the future about interesting
events and other happenings (which of course, you can opt-out of).</p>
<p>We hate spam & we're not evil ;)</p>
<p>
<a href="#" onclick="$('#privacy').fadeOut(); $('#em').focus();">Close</a>
</p>
</div>
<center>
<form id="ajax_form" onsubmit="return false;">
{% if current_event %}
<table><tr>
<td><img style="margin:1.5em" src="{{current_event.logo_url}}" width="455" height="161" /></td>
<td>at</td>
<td><img style="margin:1.5em" src="/static/logo.png" width="455" height="161" /></td>
</tr></table>
{% else %}
<img style="margin:1.5em" src="/static/logo.png" width="690" height="244" />
{% endif %}
<h2>Please Sign In</h2>
{% if current_event.custom_html %}
{{current_event.custom_html}}
<br>
<input type="button" value="Event Attendee" onclick="go('Event')" />
<input type="button" value="Hacker Dojo Member" onclick="clickmember()" />
{% else %}
E-mail:
<input id="em" type="text" name="email" autocomplete="off" >
<a style="color:green; font-size:9px" href="#" onclick="$('#privacy').fadeIn();">E-mail Privacy</a>
<br>
<input type="button" value="Member" onclick="clickmember()" />
<input type="button" value="Guest" onclick="go('Guest')" />
<input type="button" value="Event Attendee" onclick="go('Event')" />
<div id="staffbuttons" style="display:none">
<input type=button value="Staff" onclick="go('StaffKey')" />
</div>
{% endif %}
<input id="ttt" type="hidden" name="type" value="" />
</form>
</center>
<audio autobuffer nocontrols>
<source src='/static/money.wav'>
</audio>
</body>
</html>