/
index.html
55 lines (55 loc) · 2.58 KB
/
index.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
<!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">
<!-- some libraries -->
<!-- jquery and jquery migrate -->
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-migrate/1.2.1/jquery-migrate.min.js"></script>
<!-- bootstrap -->
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<!-- the library that handles all the functionality -->
<script src="/js/lib.js"></script>
</head>
<body>
<div class="container">
<div class="col-xs-12">
<h1 class="jumbotron">Roman Numerals</h1>
<form class="form" id="numberForm" method="post" action="">
<fieldset>
<legend>Please input your value: eg 2014</legend>
<p>
<!-- we could use a number field for this, but I've kept as a text input so that I can show validation in the php code -->
<label for="number">Number:</label> <input class="form-control" id="number" name="number" type="text" required />
</p>
<p class="alert alert-success">
<b>Result: </b><span id="number_results"></span>
</p>
</fieldset>
</form>
<form class="form" id="stringForm" method="post" action="">
<fieldset>
<legend>Please input your value: eg MMXIV</legend>
<p>
<label for="string">String:</label> <input class="form-control" id="string" name="string" type="text" required />
</p>
<p class="alert alert-success">
<b>Result: </b><span id="string_results"></span>
</p>
</fieldset>
</form>
</div>
<div class="col-xs-12">
<ul class="list-unstyled">
<li>Build Process on <a href="https://travis-ci.org/localhost8080/roman-numerals">Travis-ci</a></li>
<li>Version control at <a href="https://github.com/localhost8080/roman-numerals">Github</a></li>
<li>See Readme.md on github for details</li>
<li>Built using Eclipse, Brackets, jQuery, bootstrap and php</li>
</ul>
</div>
</div>
</body>
</html>