forked from badnatho/RaidCalculator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
71 lines (69 loc) · 3.31 KB
/
index.html
File metadata and controls
71 lines (69 loc) · 3.31 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css" integrity="sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<title>Natho's Raid Calculator</title>
</head>
<body onr>
<main role="main" class="container">
<div class="mt-1">
<h1>Raid Calculator</h1>
</div>
<p class="lead">Calculate disk space in GB with RAID.</p>
<div class="row">
<div class="col-sm-6">
<form>
<div class="form-group">
<label for="diskCount" class="col-form-label" >Disk Count</label>
<input type="number" style="-moz-appearance:textfield;" class="form-control" id="diskCount" value="5">
</div>
<div class="form-group">
<label for="diskCapacity" class="col-form-label">Single Disk Capacity <small class="text-muted">(GB)</small></label>
<input type="number" style="-moz-appearance:textfield;" class="form-control" id="diskCapacity" value="1000">
</div>
<div class="form-group">
<label for="raidType" class="col-form-label">Raid Type <small class="text-muted"><a href="https://en.wikipedia.org/wiki/Standard_RAID_levels" target="_blank">More Info</a></small></label>
<select class="form-control" id="raidType" onchange="trigger()">
<option value="0">RAID 0 - Stripe Set</option>
<option value="1">RAID 1 - Mirror</option>
<option value="2">RAID 5 - Parity</option>
<option value="3">RAID 6 - Double Parity</option>
<option value="4">RAID 10 - Mirror + Stripe</option>
</select>
</div>
</form>
</div>
<div class="col-sm-6">
<div class="card">
<div class="card-body">
<h5 class="card-title">Capacity</h5>
<span id="gbCapacityResult" class="card-text">--</span> GB /
<span id="gibCapacityResult" class="card-text">--</span> GiB
</div>
</div>
<br>
<div class="card">
<div class="card-body">
<h5 class="card-title">Fault Tolerance</h5>
<span id="toleranceResult" class="card-text">--</span>
</div>
</div>
</div>
</div>
<br><br>
<p id="errorText" class="lead text-danger"></p>
</main>
<footer class="footer">
<div class="container">
<!-- <span class="text-muted">Available on <a href="https://github.com/nathantowell/RaidCalculator">Github</a></span> -->
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/js/bootstrap.min.js" integrity="sha384-a5N7Y/aK3qNeh15eJKGWxsqtnX/wWdSZSKp+81YjTmS15nvnvxKHuzaWwXHDli+4" crossorigin="anonymous"></script>
<script src="script.js"></script>
</body>
</html>