Skip to content

Commit 598e47a

Browse files
novas0x2aroot
authored and
root
committed
commit recent changes from the welcome system
in prep for retiring svn forever
1 parent 9f3eb2f commit 598e47a

File tree

8 files changed

+34
-17
lines changed

8 files changed

+34
-17
lines changed

badge/completed/.keep

Whitespace-only changes.

badge/configuration/1x1.png

95 Bytes
Loading

badge/configuration/print_badge.config.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"font_path" : "./configuration/fonts/",
1212
"remove_accents" : true,
1313
"color" : [255, 255, 255],
14-
"design" : ["background","sponsor","shdh_number","first_name","last_name","tags"]
14+
"design" : ["background","shdh_number","first_name","last_name","tags","sponsor"]
1515
},
1616
"background" : {
1717
"file" : "./configuration/background.png",
@@ -20,8 +20,8 @@
2020
},
2121
"sponsor" : {
2222
"file" : "./configuration/sponsor.png",
23-
"x" : 390,
24-
"y" : 344
23+
"x" : 420,
24+
"y" : 324
2525
},
2626
"shdh_number" : {
2727
"height" : 110,
@@ -59,4 +59,4 @@
5959
"x" : 10,
6060
"y" : 305
6161
}
62-
}
62+
}

badge/configuration/sponsor.png

-8.8 KB
Binary file not shown.

badge/configuration/sponsor.png

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1x1.png

consumers/twitter_consumer.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python
12
#
23
# Copyright (c) 2008, 2009 Adam Marshall Smith
34
#

data/dump.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env python
2+
3+
import pprint
4+
import pickle
5+
6+
cards = pickle.load(file('rolodex.dat', 'r+b'))
7+
pprint.pprint(cards)

run_event

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
#!/bin/sh
2-
python core.py data/rolodex.dat $*
1+
#!/bin/bash
2+
3+
# Pop off the exe name
4+
shift 1
5+
6+
if [[ $# -eq 1 ]]; then
7+
python core.py data/rolodex.dat $1
8+
else
9+
python core.py $*
10+
fi

static/welcome.html

+12-11
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
border:none;
6767
}
6868
.buttonSubmitHovered {background-position:left bottom;}
69-
.buttonImg {vertical-align:bottom;}
69+
.buttonImg {vertical-align:bottom; border: 0px;}
7070
</style>
7171
<script type="text/javascript" src="prototype.js"></script>
7272
<script type="text/javascript" src="effects.js"></script>
@@ -235,7 +235,8 @@
235235
event_submitEmail: function(event) {
236236
Event.stop(event);
237237
var email = $F('email');
238-
if (email.match(/^[0-9a-zA-Z][-_\.0-9a-zA-Z+]*[0-9a-zA-Z]+@([0-9a-zA-Z]+[-_\.0-9a-zA-Z]*[0-9a-zA-Z]+)+\.[a-zA-Z]{2,6}$/)) {
238+
email = email.strip();
239+
if (email.length > 1) {
239240
this.key = email;
240241
new Ajax.Request(this.BASE_PATH+'prefill'+this.PATH_SEPERATOR+this.key, {
241242
method: 'get',
@@ -293,10 +294,10 @@
293294
<form id="email_form" action="#" style="display: none;">
294295
<div class="pane">
295296
<div>
296-
<label for="email">Email:</label><br />
297-
<img src="images/input_left.gif" alt="" /><input type="text" id="email" value="" class="textinput" autocomplete="off" /><img src="images/input_right.gif" alt="" />
297+
<label for="email">Unique ID (Email?):</label><br />
298+
<nobr><img src="images/input_left.gif" alt="" /><input type="text" id="email" value="" class="textinput" autocomplete="off" /><img src="images/input_right.gif" alt="" /></nobr>
298299
</div>
299-
<div><img src="images/button_left.jpg" alt="" class="buttonImg"/><input type="submit" value="Get this party started!" class="buttonSubmit"/><img src="images/button_right.jpg" alt="" class="buttonImg"/>
300+
<div><nobr><img src="images/button_left.jpg" alt="" class="buttonImg"/><input type="submit" value="Get this party started!" class="buttonSubmit"/><img src="images/button_right.jpg" alt="" class="buttonImg"/></nobr>
300301
</div>
301302
</div>
302303
</form>
@@ -307,25 +308,25 @@
307308
<td>
308309
<div>
309310
<label for="first_name">First:</label><br />
310-
<img src="images/input_left.gif" alt="" /><input type="text" id="first_name" value="" class="textinput" autocomplete="off" /><img src="images/input_right.gif" alt="" />
311+
<nobr><img src="images/input_left.gif" alt="" /><input type="text" id="first_name" value="" class="textinput" autocomplete="off" /><img src="images/input_right.gif" alt="" /></nobr>
311312
</div>
312313
</td>
313314
<td>&nbsp;</td>
314315
<td>
315316
<div>
316317
<label for="last_name">Last:</label><br />
317-
<img src="images/input_left.gif" alt="" /><input type="text" id="last_name" value="" class="textinput" autocomplete="off" /><img src="images/input_right.gif" alt="" />
318+
<nobr><img src="images/input_left.gif" alt="" /><input type="text" id="last_name" value="" class="textinput" autocomplete="off" /><img src="images/input_right.gif" alt="" /></nobr>
318319
</div>
319320
</td>
320321
</tr>
321322
</table>
322323
<div>
323-
<label for="tags">Tags:</label><br />
324-
<img src="images/input_left.gif" alt="" /><input type="text" id="tags" value="" class="textinput" autocomplete="off" /><img src="images/input_right.gif" alt="" />
324+
<label for="tags">Tags / Interests:</label><br />
325+
<nobr><img src="images/input_left.gif" alt="" /><input type="text" id="tags" value="" class="textinput" autocomplete="off" /><img src="images/input_right.gif" alt="" /></nobr>
325326
</div>
326327
<div>
327-
<img src="images/button_left.jpg" alt="" class="buttonImg"/><input type="button" value="&lt;&lt; Oops!" onclick="WelcomeSystem.startOver();" class="buttonSubmit"/><img src="images/button_right.jpg" alt="" class="buttonImg"/>
328-
<img src="images/button_left.jpg" alt="" class="buttonImg"/><input type="submit" value="Finish this up!" class="buttonSubmit"/><img src="images/button_right.jpg" alt="" class="buttonImg"/>
328+
<nobr><img src="images/button_left.jpg" alt="" class="buttonImg"/><input type="button" value="&lt;&lt; Oops!" onclick="WelcomeSystem.startOver();" class="buttonSubmit"/><img src="images/button_right.jpg" alt="" class="buttonImg"/></nobr>
329+
<nobr><img src="images/button_left.jpg" alt="" class="buttonImg"/><input type="submit" value="Finish this up!" class="buttonSubmit"/><img src="images/button_right.jpg" alt="" class="buttonImg"/></nobr>
329330
</div>
330331
</div>
331332
</form>

0 commit comments

Comments
 (0)