-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcontact.html
154 lines (140 loc) · 6.22 KB
/
contact.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Who Let's Play</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Raleway:400,200" rel="stylesheet" type="text/css">
<link href="css/wholetsplay.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">Who Let's Play</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li class="active"><a href="#">Contact & Support</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<div id="main_content" class="container">
<div id="support">
<h1>Supporting Who Let's Play</h1>
<p>
If you want to help, you can:
<ol>
<li>Get in touch, use the contact form below</li>
<li><a href="#donate">Donate some money</a></li>
<li>Volunteer your time: we need web devs and lawyers. I've got some of both, but the more the merrier.</li>
<li>Developers -- add your name to the list, and make your permission status known. <a href="https://github.com/larsiusprime/wholetsplay.com">Pull request prefered.</a></li>
<li>Journalists -- write an article about #WhoLetsPlay!</li>
<li>Youtubers -- talk about #WhoLetsPlay on your show.</li>
<li>Everyone -- get the word out about #WhoLetsPlay. Tweet, share, etc.</li>
</ol>
</p>
</div>
<div class="contact">
<h1>Contact Us</h1>
<form name="contact" method="post" action="contactengine.php">
<table>
<tr>
<td class="left"><label for="name">Name:</label></td>
<td><input type="text" name="name" required="true" /></td>
</tr>
<tr>
<td class="left"><label for="email">Email:</label></td>
<td><input type="email" name="email" required="true" /></td>
</tr>
<tr>
<td class="left"><label for="message">Message:</label></td>
<td><textarea name="message" required="true" rows="8"></textarea></td>
</tr>
<tr>
<td class="left"><label for="check">2+4:</label></td>
<td><input type="number" name="check" required="true" /></td>
</tr>
</table>
<input type="submit" name="submit" value="Submit" class="submit-button" onclick="return validate();">
<script type="text/javascript">
function validate() {
var emailRegEx = /^.*@.*$/;
var name = document.forms["contact"]["name"].value;
var email = document.forms["contact"]["email"].value;
var message = document.forms["contact"]["message"].value;
var check = document.forms["contact"]["check"].value;
var returnVal = true;
var errorMessage = "";
if(name.length < 1)
{
returnVal = false;
errorMessage += "- Name can't be empty"
}
if(!emailRegEx.test(email))
{
returnVal = false;
if(errorMessage.length > 0)
errorMessage += "\n";
errorMessage += "- Email address is not valid"
}
if(message.length < 1)
{
returnVal = false;
if(errorMessage.length > 0)
errorMessage += "\n";
errorMessage += "- Message can't be empty"
}
if(check.length < 1)
{
returnVal = false;
if(errorMessage.length > 0)
errorMessage += "\n";
errorMessage += "- Check can't be empty"
}
if(returnVal)
return returnVal
alert(errorMessage);
return false;
}
</script>
</form>
</div>
</div>
<div class="footer">
© All rights reserved Who Let's Play 2014-2016
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-79253022-1', 'auto');
ga('send', 'pageview');
</script>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>