-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate-event.html
61 lines (57 loc) · 2.1 KB
/
create-event.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
<html>
<head>
<meta charset=utf-8 />
<title>Event Creation Page</title>
<link rel="stylesheet" type="text/css" href="/style/css/styles.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
</head>
<body>
<header class="padding">
<img src="assets/logo.svg" alt="HackPass" />
</header>
<section id="eventPic"><img src="public/images/swag.jpg" /></section>
<section class="main padding">
<article>
<h1>Event Name:</h1>
<form id="createEventForm" action="ENDPOINT." method="POST">
<input id="0" type="text"></br>
<div style="width: 120px; margin: 0 auto;">
<input type="submit" href="#" class="myButton"></input>
</form>
</div>
</article>
</section>
<section class="main padding shiftup">
<article>
<h2 class="titleBar">Login</h2>
<h1>Event ID:</h1>
<form id="createEventForm" action="ENDPOINT." method="POST">
<input id="0" type="text"></br>
<div style="width: 120px; margin: 0 auto;">
<input type="submit" href="#" class="myButton"></input>
</form>
</div>
</article>
</section>
<script>
function getQueryVariable(variable)
{
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if(pair[0] == variable){
return string = pair[1];
}
}
return(false);
}
var eventId = getQueryVariable('event_id');
console.log(eventId);
</script>
</body>
</html>