-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
82 lines (75 loc) · 3.6 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
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
<!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">
<meta name="description" content="Easy average calculator">
<meta name="author" content="Eduardo San Martin Morote">
<link rel="shortcut icon" href="favicon.ico">
<title>Average Calculator</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<br>
<div class="container">
<div id="marks">
</div>
<div class="center-block">
<div class="col-xs-offset-0">
<ul class="list-group btn-group-vertical col-xs-12">
<li class="btn btn-primary btn-lg btn-block disabled" onclick="addMark();" rel="tooltip" data-toggle="tooltip" title="Add a new value"><span class="glyphicon glyphicon-plus"> Row</span></li>
<li class="list-group-item text-center" rel="tooltip" data-toggle="tooltip" title="Here is the average!"><span id="average" class="glyphicon glyphicon-stats"></span></li>
<!--<a class="list-group-item text-center bg-info text-success" href="#" onclick="exportJSON();"><span class="glyphicon glyphicon-download h5"> Export as JSON</span></a>-->
<li class="list-group-item hidden-xs hidden-sm">
<div class="text-center text-info">
<a data-toggle="collapse" data-parent="#accordion" href="">
<span class="glyphicon glyphicon-edit h5 "> Edit JSON</span>
</a>
</div>
<div id="json-edit" class="collapse form-group">
<br>
<textarea class="form-control" rows="10" onkeyup="updateFromJSON();"></textarea>
<label class="checkbox">
<input type="checkbox" id="use-tabs" value="" onchange="updateJSON();">
Use tab based indentation
</label>
</label>
</div>
</li>
<li class="list-group-item hidden-md hidden-lg">
<div class="text-center text-info">
<a data-toggle="collapse" data-parent="#accordion" href="">
<span class="glyphicon glyphicon-wrench h5"> Options</span>
</a>
</div>
<div id="options" class="collapse form-group">
<label class="checkbox">
<input type="checkbox" id="tel-key" value="" onchange="updateInputs('tel');">
Use telephone keyboard instead of numeric one
</label>
<label class="checkbox">
<input type="checkbox" id="display-json" value="" onchange="updateInputs('json');">
Display JSON editor
</label>
</label>
</div>
</li>
<li class="btn btn-danger btn-lg btn-block disabled" onclick="delAllMark();" rel="tooltip" data-toggle="tooltip" title="Delete all the values"><span class="glyphicon glyphicon-trash"> Clear</span></li>
</ul>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="avg-mark.js"></script>
</body>
</html>