-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (64 loc) · 2.43 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
<html>
<head>
<title>JS Dude Salary App2</title>
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.png" />
<script src="scripts/d3.js"></script>
<script src="scripts/nv.d3.js"></script>
<link rel="stylesheet" href="styles/bootstrap.css">
<link rel="stylesheet" href="styles/nv.d3.css">
<link rel="stylesheet" href="scripts/jquery-ui-1.11.4/jquery-ui.min.css">
<style>
#chart{
height: 400px;
}
.dialog p{
font-size: 1.2em;
}
#dialog-last-item span{
font-size: 2em;
}
#dialog-error span{
font-size: 1.3em;
}
#dialog-record-count span{
font-size: 2.5em;
}
</style>
<script src="scripts/jquery-2.1.4.min.js"></script>
<script src="scripts/jquery-ui-1.11.4/jquery-ui.min.js"></script>
<script defer src="./salaryData.js"></script>
<script defer src="salaryApp.js"></script>
<script src="scripts/findEventHandlers.js"></script>
</head>
<body>
<div class="text-center">
<h1 class="text-primary"><strong>JS Dude Salary App</strong></h1>
<p>Salary, the Promised amount you never get</small>
</div>
<div class="form-inline text-center">
<div class="form-group">
<input class="form-control" type='text' id='name' placeholder='Name'>
<input class="form-control" type='text' id='salary' placeholder='Salary'>
<button class="btn btn-success form-control" id="AddRecord">Add Record</button>
<button class="btn btn-info" id="showLast">Show Last</button>
<button class="btn btn-info" id="recordCount">Record Count</button>
</div>
</div>
<div id="chart">
<svg></svg>
</div>
<div id="dialog-last-item" class="hide dialog" title="Last Item in the Chart" >
<p>Name: <span id="showName" class="text-success"></span></p>
<p>Salary: <span id="showSalary" class="text-success"></span></p>
</div>
<div id="dialog-error" class="hide dialog" title="Be careful Dude !" >
<p id="newNameLine">Name: <span id="newName" class="text-warning"></span></p>
<p id="newSalaryLine">Salary: <span id="newSalary" class="text-warning"></span></p>
<h2 class="text-danger">Your Boss is watching!</h2>
</div>
<div id="dialog-record-count" class="hide dialog" title="Number of Records" >
<p>Record count: <span id="numberOfRecords" class="text-success"></span></p>
</div>
<h3 class="text-primary hide">Initial Count: <span id="initial-count"></span></h3>
</body>
</html>