-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.html
147 lines (141 loc) · 5.61 KB
/
main.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!DOCTYPE html>
<html lang="en">
<head>
<title>calc v3.0</title>
<meta charset="utf-8">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div id="summary-container" class="container-sm">
<table id="summary" class="table table-bordered table-dark">
<tr>
<th class="align-middle" style="width: 50%;">B profit</th>
<td class="align-middle" style="width: 50%;">
<span id="b-total-profit"></span>
<span id="b-profit-delta" hidden></span>
</td>
</tr>
<tr>
<th class="align-middle">A profit</th>
<td class="align-middle">
<span id="a-total-profit"></span>
<span id="a-profit-delta" hidden></span>
</td>
</tr>
<tr>
<th class="align-middle">+1% B vip</th>
<td class="align-middle">
<span id="b-vip-profit"></span>
<span id="b-vip-profit-delta" hidden></span>
</td>
</tr>
<tr>
<th class="align-middle">+1% A vip</th>
<td class="align-middle">
<span id="a-vip-profit"></span>
<span id="a-vip-profit-delta" hidden></span>
</td>
</tr>
</table>
</div>
<div id="vip-container" class="container-sm">
<table id="vip" class="table table-bordered table-dark">
<tr>
<th style="width: 50%;" class="align-middle">B vip</th>
<td style="width: 50%;" class="align-middle">
<input id="b-vip" type="number" class="form-control form-control-lg text-light bg-dark" data-type="b">
<span id="b-vip-delta"></span>
</td>
</tr>
<tr>
<th class="align-middle">A vip</th>
<td class="align-middle">
<input id="a-vip" type="number" class="form-control form-control-lg text-light bg-dark" data-type="a">
<span id="a-vip-delta"></span>
</td>
</tr>
</table>
</div>
<div id="items-container">
<ul class="nav nav-tabs" id="items-tab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="a-tab" data-toggle="tab" href="#a-items" role="tab" aria-controls="a-items" aria-selected="true">A Items</a>
</li>
<li class="nav-item">
<a class="nav-link" id="b-tab" data-toggle="tab" href="#b-items" role="tab" aria-controls="b-items" aria-selected="false">B Items</a>
</li>
</ul>
<div class="tab-content" id="items-tab-content">
<div id="a-items" class="table-wrapper-scroll-y my-custom-scrollbar tab-pane active" role="tabpanel" aria-labelledby="a-tab">
<table class="table table-bordered table-dark">
<thead>
<tr>
<th class="align-middle" style="width: 5%;">ID</th>
<th class="align-middle" style="width: 20%;">Name</th>
<th class="align-middle" style="width: 30%;">Quantity</th>
<th class="align-middle" style="width: 10%;">Bonus</th>
<th class="align-middle" style="width: 35%;">Profit</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div id="b-items" class="table-wrapper-scroll-y my-custom-scrollbar tab-pane" role="tabpanel" aria-labelledby="b-tab">
<table class="table table-bordered table-dark">
<thead>
<tr>
<th class="align-middle" style="width: 5%;">ID</th>
<th class="align-middle" style="width: 20%;">Name</th>
<th class="align-middle" style="width: 30%;">Quantity</th>
<th class="align-middle" style="width: 10%;">Bonus</th>
<th class="align-middle" style="width: 35%;">Profit</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
<div id="calculate-container" class="container-sm">
<input id="calculate-money" type="text" class="form-control form-control-lg text-light bg-dark" placeholder="Money">
<button id="calculate1-button" type="button" class="btn btn-dark">CALCULATE I</button>
<button id="calculate2-button" type="button" class="btn btn-dark">CALCULATE II</button>
<table id="calculate-result" class="table table-bordered table-dark">
<thead>
<tr>
<th style="width: 45%;">A cost</th>
<td id="a-cost" class="align-middle">-</td>
</tr>
<tr>
<th>B cost</th>
<td id="b-cost" class="align-middle">-</td>
</tr>
<tr>
<th>Total cost</th>
<td id="total-cost" class="align-middle">-</td>
</tr>
<tr>
<th>Total profit</th>
<td id="total-profit" class="align-middle">-</td>
</tr>
</thead>
<tbody>
</tbody>
</table>
<button id="a-json" type="button" class="btn btn-dark">A JSON</button>
<button id="b-json" type="button" class="btn btn-dark">B JSON</button>
<button id="apply" type="button" class="btn btn-dark">APPLY</button>
<button id="save" type="button" class="btn btn-dark">SAVE</button>
</div>
<script src="js/jquery.js"></script>
<script src="js/item.js"></script>
<script src="js/globals.js"></script>
<script src="js/calcu.js"></script>
<script src="js/calcu_display.js"></script>
<script src="js/main.js"></script>
<!-- <script src="bootstrap-4.4.1-dist/js/bootstrap.min.js"></script> -->
</body>
</html>