-
Notifications
You must be signed in to change notification settings - Fork 0
/
code_camp.html
106 lines (101 loc) · 3.57 KB
/
code_camp.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>UCONN ACM Boston Code Camp</title>
<meta charset="UTF-8">
<meta name="robots" content="noindex">
<link rel="stylesheet" href="css/style.css" type="text/css" />
<link rel="stylesheet" href="css/bootstrap.css" type="text/css" />
<link rel="stylesheet" href="css/signup.css" type="text/css" />
<link rel="shortcut icon" href="img/icon.ico">
<script src="js/lib/jquery.js"></script>
<script src="js/lib/bootstrap.min.js"></script>
<script src="js/header.js"></script>
<script src="js/footer.js"></script>
<script src="js/googleanalytics.js"></script>
<script type="text/javascript">
function validateForm(){
var isValid = true;
$("input").each(function(){
if ($(this).attr("id") === "inputEmail"){
if (!validateEmail()){
isValid = false;
}
}else{
if ($.trim($(this).val()).length == 0){
$(this).next().show("slow");
isValid = false;
}else{
$(this).next().hide("slow");
}
}
});
return isValid;
}
function validateEmail(){
var x = $("#inputEmail").val();
var atpos = x.indexOf("@");
var dotpos = x.lastIndexOf(".");
if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length){
$("#inputEmail").next().show("slow");
return false;
}
$("#inputEmail").next().hide("slow");
return true;
}
$(document).ready(function(){
displayHeader("");
displayFooter("");
});
</script>
</head>
<body>
<div class="page-wrapper">
<div class="content-wrapper">
<div id="page-header" class="row-fluid">
<div class="span12 hero-unit black">
<h1>ACM Boston Code Camp Trip</h1>
<p>A series of seminars by software development professionals on new and upcoming technologies.</p>
</div>
</div>
<div class="content-padded">
<div class="alert alert-info">
<p>Remember to also register for a ticket <a href="http://bostoncodecamp18.eventbrite.com/">here</a>!</p>
</div>
<div class="signup-box well">
<form class="form-horizontal" action="php/code_camp.php" method="post" onsubmit="return validateForm()">
<legend>Sign Up</legend>
<div class="control-group">
<label class="control-label" for="inputFirst">First Name:</label>
<div class="controls">
<input type="text" id="inputFirst" name="inputFirst" placeholder="Bill" />
<span class="label label-important" style="display: none;">Please enter your first name</span>
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputLast">Last Name:</label>
<div class="controls">
<input type="text" id="inputLast" name="inputLast" placeholder="Gates" />
<span class="label label-important" style="display: none;">Please enter your last name</span>
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputEmail">Email:</label>
<div class="controls">
<input type="text" id="inputEmail" name="inputEmail" placeholder="bill.gates@microsoft.com" />
<span class="label label-important" style="display: none;">Please enter a valid email</span>
</div>
</div>
<div class="control-group">
<div class="controls">
<button type="submit" class="btn btn-primary">Sign Up</button>
</div>
</div>
</form>
</div>
</div>
</div>
<footer></footer>
</div>
</body>
</html>