-
Notifications
You must be signed in to change notification settings - Fork 0
/
roommatepage.html
154 lines (126 loc) · 5.4 KB
/
roommatepage.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
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="roommatepage.css" type="text/css" rel="stylesheet" />
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css"/>
<script type="text/javascript" src="http://code.jquery.com/jquery.js"></script>
<script type="text/javascript" src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Project name</a>
</div>
<div class="navbarer navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<ul class="nav navbar-nav">
<li><a href="Home.html">Home</a></li>
<li><a href="roommatepage.html">Group Registration</a></li>
<li><a href="buildingselection.html">Pick Rooms</a></li>
<li><a href="aboutbuildings.html">Housing Info</a></li>
<li><a href="support.html">Support</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class ="row">
<div class="col-md-4"></div>
<div class="col-md-4 centered">
<form class="form-signin">
<h2 class="form-signin-heading">Please Submit Suite Members</h2>
<div class="form-group form-inline">
<input type="text" class="form-control" placeholder="Student Name" autofocus>
<input type="text" class="form-control" placeholder="ID Number">
</div>
<div class="form-group form-inline">
<input type="text" class="form-control" placeholder="Student Name" autofocus>
<input type="text" class="form-control" placeholder="ID Number">
</div>
<div class="form-group form-inline">
<input type="text" class="form-control" placeholder="Student Name" autofocus>
<input type="text" class="form-control" placeholder="ID Number">
</div>
<div class="form-group form-inline">
<input type="text" class="form-control" placeholder="Student Name" autofocus>
<input type="text" class="form-control" placeholder="ID Number">
</div>
<div class="form-group form-inline">
<input type="text" class="form-control" placeholder="Student Name" autofocus>
<input type="text" class="form-control" placeholder="ID Number">
</div>
<div class="form-group form-inline">
<input type="text" class="form-control" placeholder="Student Name" autofocus>
<input type="text" class="form-control" placeholder="ID Number">
</div>
<button class="btn btn-lg btn-primary btn-block" type="submit"><a href='Home.html'>Submit</a></button>
</form>
</div>
<div class ="col-md-4 pull-right" id="tablebackground">
<table class="table table-bordered">
<tr>
<td>Date</td>
<td>Room Size</td>
</tr>
<tr class="success">
<td>1 - 4/13/2014</td>
<td>6 person (Wilder, Anderson, Phase)</td>
</tr>
<tr>
<td>2 - 4/14/2014</td>
<td>4 person (O'Brien)</td>
</tr>
<tr>
<td>3 - 4/15/2014</td>
<td>3 person (Southside)</td>
</tr>
<tr>
<td>4 - 4/16/2014</td>
<td>2 person (Wilder, Anderson, Lovejoy, Burton, Crosby, Southside, Psi Upsilon, DLH, Drama House)</td>
</tr>
<tr>
<td>5 - 4/17/2014</td>
<td>1 person (Res Quad, Psi Upsilon, DLH, Drama House)</td>
</tr>
</table>
</div>
</div>
<div>
<script>
$.get('people.txt',function(data){
var perLine=data.split('\n');
var lotterynum=0;
var idnum = 0;
for(i=0;i<perLine.length;i++)
{
var line = String(perLine[i].split('\t'));
if(line[3] == "So"){
idnum = 1;
lotterynum = lotterynum + idnum;
}
else if(line[3] == "Jr"){
idnum = 2;
lotterynum = lotterynum + idnum;
}
else if(line[3] == "Sr"){
idnum = 3;
lotterynum = lotterynum + idnum;
}
}
});
</script>
</div>
</body>
</html>