-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjoined-poll.html
More file actions
88 lines (84 loc) · 3.18 KB
/
joined-poll.html
File metadata and controls
88 lines (84 loc) · 3.18 KB
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
<!DOCTYPE html>
<html>
<head>
<title>OpenARMS</title>
<!-- Bootstrap -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="css/bootstrap-responsive.min.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<!--link href="css/main.min.css" rel="stylesheet" media="screen"-->
<link rel="stylesheet/less" type="text/css" href="less/main.less">
</head>
<body>
<div class="navbar navbar-static-top">
<div class="navbar-inner">
<a class="brand" href="index.html">OpenARMS</a>
<ul class="nav pull-right">
<li class="divider-vertical"></li>
<li><a href="loggedin.html">Login</a></li>
</ul>
</div>
</div>
<form id="vote-form" class="container-fluid">
<!--div class="row-fluid question">
<div class="span10 offset1">
<h3>What is the question of life, the universe and everything?</h3>
</div>
</div -->
<div class="row-fluid question">
<div class="span10 offset1">
<div class="page-header">
<h3>What is the question of life, the universe and everything?</h3>
</div>
</div>
</div>
<div class="row-fluid choice">
<label for="choice-1-button">
<div class="span1 offset1 choice-button">
<input name="choice" type="radio" id="choice-1-button" title="This is a choice for the poll." />
</div>
<div class="span8 choice-text">
<h4>This is a choice for the poll.</h4>
</div>
</label>
</div>
<div class="row-fluid choice">
<label for="choice-2-button">
<div class="span1 offset1 choice-button">
<input name="choice" type="radio" id="choice-2-button" title="This is another choice for the same poll." />
</div>
<div class="span8 choice-text">
<h4>This is another choice for the same poll.</h4>
</div>
</label>
</div>
<div class="row-fluid choice">
<label for="choice-3-button">
<div class="span1 offset1 choice-button">
<input name="choice" type="radio" id="choice-3-button" title="This is a third and final choice for the poll, decide already." />
</div>
<div class="span8 choice-text">
<h4>This is a third and final choice for the poll, decide already.</h4>
</div>
</label>
</div>
<input type="submit" value="Vote!" class="btn btn-large" />
</form>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="js/bootstrap.min.js"></script>
<!-- Uncomment the following line, once in production -->
<script src="js/less-1.3.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
$(".choice input[type=radio]").live('change', function() {
$(this).closest(".choice").addClass('selected').siblings().removeClass('selected');
});
$("form#vote-form").submit(function(e) {
e.preventDefault();
location.href="voted.html";
});
});
</script>
</body>
</html>