-
Notifications
You must be signed in to change notification settings - Fork 2
/
event_submit.html
205 lines (165 loc) · 6.14 KB
/
event_submit.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
Hack Submission
</title>
<!-- CSS -->
<link rel="stylesheet" href="/static/dynamic.12380.css" type="text/css" />
<link rel="stylesheet" href="/static/power.12380.css" type="text/css" />
<link rel="stylesheet" href="/static/jquery.facebook.multifriend.select.css" />
<style>
#hack_form {
display: none;
}
#login {
margin: 10px 1%;
}
#error {
background-color: #FFEBE8;
border: #DD3C10 1px solid;
padding: 10px;
text-align: center;
display: none;
}
div#jfmfs-friend-selector {
width: 100%;
}
/* overwrite the wufoo thing */
span#jfmfs-selected-count {
width: auto;
display: inline;
float: none;
}
</style>
<!-- JavaScript -->
<script type="text/javascript" src="/static/dynamic.12380.js"></script>
</head>
<div id="container">
<form id="form1" name="form1" class="wufoo topLabel page1" autocomplete="off" enctype="multipart/form-data" method="post" action="">
<div class="info">
<h2>Hack Submission</h2>
<div>Submit your hack</div>
</div>
<div id="login">
<fb:login-button show-faces="true" width="600" scope="publish_stream"></fb:login-button>
</div>
<div id="error">
You aren't "Attending" the <a href="event">event</a>. Go do that, then reload this page.
</div>
<ul id="hack_form">
<li id="fo1li12" class=" ">
Hackathon Event
<div>
<a href="event">{{ event.name }}</a>
<input type="hidden" name="eid" id="eid" value="{{ eid }}" />
</div>
</li>
<li id="fo1li3" class=" ">
<label class="desc" id="title3" for="name">
Hack Name
<span id="req_3" class="req">*</span>
</label>
<div>
<input id="name" name="name" type="text" class="field text large" value="" maxlength="255" tabindex="2" onkeyup="handleInput(this); validateRange(3, 'character');" onchange="handleInput(this);" />
</div>
<p class="instruct" id="instruct3"><small>Short and catchy.</small></p>
</li>
<li id="fo1li4"
class=" ">
<label class="desc" id="title4" for="description">
Description
<span id="req_4" class="req">*</span>
</label>
<div>
<textarea id="description" name="description" class="field textarea small" rows="10" cols="50" tabindex="3"
onkeyup="handleInput(this); validateRange(4, 'character');"
onchange="handleInput(this);"
></textarea>
</div>
<p class="instruct" id="instruct4"><small>What does it do?</small></p>
</li>
<li id="fo1li6" class=" ">
<label class="desc" id="title6" for="hack_url">
Hack URL
<span id="req_6" class="req">*</span>
</label>
<div>
<input id="hack_url" name="hack_url" type="text" class="field text large" value="http://" maxlength="255" tabindex="4" onkeyup="handleInput(this);" onchange="handleInput(this);" />
</div>
<p class="instruct" id="instruct6"><small>Where can we try your hack? If it doesn't have a URL, just put a link to a page describing it.</small></p>
</li>
<li id="fo1li7" class=" ">
<label class="desc" id="title7" for="source_url">
Open Source URL
</label>
<div>
<input id="source_url" name="source_url" type="text" class="field text large" value="http://github.com/.../..." maxlength="255" tabindex="5" onkeyup="handleInput(this);" onchange="handleInput(this);" />
</div>
<p class="instruct" id="instruct7"><small>We like Open Source. Put it on github if you can.</small></p>
</li>
<li id="fo1li8" class=" ">
<label class="desc" id="title8" for="screenshot_url">
Screenshot URL
<span id="req_8" class="req">*</span>
</label>
<div>
<input id="screenshot_url" name="screenshot_url" type="text" class="field text large" value="http://" maxlength="255" tabindex="6" onkeyup="handleInput(this);" onchange="handleInput(this);" />
</div>
<p class="instruct" id="instruct8"><small>A picture is worth a thousand words. You can upload your screenshot to <a target="_blank" href="http://tinypic.com/">tinypic</a> and post the raw url.</small></p>
</li>
<li id="fo1li9" class=" ">
<label class="desc" id="title9" for="other_hackers">
Other Hackers
</label>
<div id="jfmfs-container" name="other_hackers"></div>
<p class="instruct" id="instruct9"><small>Who else built this with you?</small></p>
</li>
<li class="buttons ">
<div>
<input class="btTxt submit" type="submit" value="Submit" tabindex="8" />
</div>
</li>
</ul>
</form>
</div><!--container-->
<img id="bottom" src="/static/bottom.png" alt="" />
<a class="powertiny" href="http://wufoo.com?t=h2j6h2" title="Powered by Wufoo"
style="display:block !important;visibility:visible !important;text-indent:0 !important;position:relative !important;height:auto !important;width:95px !important;overflow:visible !important;text-decoration:none;cursor:pointer !important;margin:0 auto !important">
<span style="background:url(/static/powerlogo.png) no-repeat center 7px;margin:0 auto;display:inline-block !important;visibility:visible !important;text-indent:-9000px !important;position:static !important;overflow: auto !important;width:62px !important;height:30px !important">Wufoo</span>
<b style="display:block !important;visibility:visible !important;text-indent:0 !important;position:static !important;height:auto !important;width:auto !important;overflow: auto !important;font-weight:normal;font-size:9px;color:#777;padding:0 0 0 3px;">Powered</b>
</a>
<script src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script src="/static/jquery.facebook.multifriend.select.min.js"></script>
<div id="fb-root"></div>
<script>
var constants = {
eid: '{{ eid }}',
name: '{{ me.name }}'
};
</script>
<script>
window.fbAsyncInit = function() {
FB.init({appId: '136348336398305', status: true, cookie: true, xfbml: true});
FB.getLoginStatus(function(response) {
if (response.status === 'connected') {
onLogin();
}
});
FB.Event.subscribe('auth.login', function(response) {
if (response.authResponse || response.session) {
onLogin();
}
});
var onLogin = function() {
{% if isAttending %}
jQuery('#hack_form').show();
jQuery("#jfmfs-container").jfmfs();
{% else %}
jQuery('#error').show();
{% endif %}
}
};
</script>
<script src="/static/event_submit.js"></script>