-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
77 lines (68 loc) · 4.45 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
<!DOCTYPE html>
<head>
<title>Hour Calculator</title>
</head>
<body class="container" data-bind="attr: {id: parrotId}">
<h1>Calculate Your Hours</h1>
<div>
<label>Only show 1 day?</label>
<input type="checkbox" data-bind="checked: oneDayOnly" />
</div>
<p data-bind="text: totalHours"></p>
<div data-bind="foreach: weekdayArray" class="container-fluid">
<div class="row">
<div class="card" style="width: 20rem">
<h3 class="card-header" data-bind="text: weekdayName"></h3>
<div class="card-body">
<div>
<div data-bind="foreach: clockInTimes">
<div class="clockpicker input-group mb-3">
<input type="time" class="form-control" placeholder="Clock In Time" data-bind="css: {'is-invalid': !clockInValid() },textinput: clockIn, attr: {id: 'input_' + $index()}"/>
<div class="input-group-append" data-bind="click: focusTextBox.bind($data, 'input_' + $index())" style="cursor: pointer">
<span class="input-group-text">
<i class="fas fa-clock" id="clockAddon"></i>
</span>
</div>
<div class="invalid-feedback" data-bind="html: invalidTimeMessage"></div>
</div>
<div class="clockpicker input-group mb-3">
<input type="time" class="form-control" placeholder="Clock Out Time" data-bind="css: {'is-invalid': !clockOutValid() }, textinput: clockOut, attr: {id: 'clockOut_' + $index()}"
/>
<div class="input-group-append">
<span class="input-group-text" data-bind="click: focusTextBox.bind($data, 'clockOut_'+ $index())" style="cursor: pointer">
<i class="fas fa-clock" id="clockAddon"></i>
</span>
</div>
<div class="invalid-feedback" data-bind="html: invalidTimeMessage"></div>
</div>
</div>
</div>
<div>
<div type="button" class="btn btn-primary" data-bind="click: addNewTimeGroup">Add More Times</div>
<div type="button" class="btn btn-danger" data-bind="click: resetTimeGroup">Reset</div>
</div>
</div>
</div>
</div>
</div>
<br>
<div type="button" class="btn btn-info" data-bind="click: toggleParrotVisible">Surprise?</div>
</body>
<link rel="stylesheet" href="styles/parrot.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
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/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp"
crossorigin="anonymous">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.4.2/knockout-min.js"></script>
<script type="text/javascript" src="https://rawgit.com/weareoutman/clockpicker/gh-pages/src/clockpicker.js"></script>
<link rel="stylesheet" type="text/css" href="https://rawgit.com/weareoutman/clockpicker/gh-pages/src/clockpicker.css" />
<script type="text/javascript" src="Scripts/PunchGroup.js"></script>
<script type="text/javascript" src="Scripts/Day.js"></script>
<script type="text/javascript" src="Scripts/TimeCardCalculator.js"></script>
</html>