-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (67 loc) · 2.26 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 name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Equal Pay</title>
<link rel="stylesheet" href="./public/main.css" />
<script src="./src/ui-utilities.js"></script>
<meta
name="description"
content="Distribute pay impact across different payees and incomes" />
<meta name="og:title" content="Equal Pay" />
<meta name="og:type" content="website" />
<meta name="og:image" content="" />
<meta
name="og:url"
content="https://jofaval.github.io/equal-shared-pay-ts/" />
<meta
name="og:description"
content="Distribute pay impact across different payees and incomes" />
</head>
<body class="form">
<template id="payee-template">
<div class="payee">
<caption>
Payee
</caption>
<div class="payee-name__container payee-container">
<label for="">Name:</label>
<input type="text" name="" required />
</div>
<div class="payee-income__container payee-container">
<label for="">Income:</label>
<input type="number" name="" required />
</div>
</div>
</template>
<div class="tabs">
<button class="tab" id="tab-form" onclick="onFormTabClick()">Form</button>
<button class="tab" id="tab-result" onclick="onResultTabClick()">
Result
</button>
</div>
<div id="result"></div>
<form id="equalPayForm" class="payee-form">
<button id="addPayeeButton">+ Add payee</button>
<div class="payee-name__container payee-container">
<label for="amount">Amount:</label>
<input type="number" name="amount" required />
</div>
<div id="equalPayFormPayees" class="payee-form__elements"></div>
<input type="submit" value="O Get value" />
</form>
</body>
<script>
function onFormTabClick() {
document.body.classList.add("form");
document.body.classList.remove("result");
}
function onResultTabClick() {
document.body.classList.add("result");
document.body.classList.remove("form");
}
</script>
<script src="./src/form-handler.js" type="module"></script>
<script src="./src/main.js"></script>
</html>