-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
134 lines (123 loc) · 5.09 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<link rel="stylesheet" href="./style.css">
<title>Document</title>
</head>
<body>
<div class="intro">
<div class="icontext">
<h1>EXPENSE TRACKER</h1>
<div class="buttongrp">
<a href="#addtransaction"><button type="button">ADD TRANSACTION</button></a>
<a href="#alltransaction"><button type="button">VIEW TRANSACTION HISTORY</button></a>
<a href="#overview"><button type="button">OVERVIEW</button></a>
</div>
</div>
<div class="bgi">
</div>
</div>
<div class="addform" id="addtransaction">
<h1>ADD TRANSACTION</h1>
<form action="">
<div class="radiogrp">
<div>
<input type="radio" name="choice" id="income">
<label for="income">INCOME</label>
</div>
<div>
<input type="radio" name="choice" id="expense">
<label for="income">EXPENSE</label>
</div>
</div>
<div>
<label for="tname">TRANSACTION TYPE</label>
<select name="tname" id="tname">
<option value="SHOPPING">SHOPPING</option>
<option value="GAS">GAS</option>
<option value="CAR WASH">CAR WASH</option>
<option value="HOUSE RENT">HOUSE RENT</option>
<option value="PARTY">PARTY</option>
<option value="TRANSPORTATION">TRANSPORTATION</option>
<option value="SUBSCRIPTIONS">SUBSCRIPTIONS</option>
<option value="CELLPHONE">CELLPHONE</option>
<option value="INSURANCE">INSURANCE</option>
<option value="TRADING">TRADING</option>
<option value="PART TIME JOB">PART TIME JOB</option>
<option value="OTHERS">OTHERS</option>
</select>
</div>
<div>
<label for="tamount">TRANSACTION AMOUNT</label>
<input type="number" id="tamount">
</div>
<div>
<label for="tdate">DATE OF TRANSACTION</label>
<input type="date" name="tdate" id="tdate">
</div>
<div>
<label for="tdescription">DESCRIPTION</label>
<textarea name="tdescription" id="tdescription" cols="30" rows="5" placeholder="5 pizza,2 drinks,......"></textarea>
</div>
<button class="addbtn" type="submit">ADD TRANSACTION</button>
</form>
</div>
<div id="alltransaction">
<h1>TRANSACTION HISTORY</h1>
<div class="transaction">
<div class="income" id="income">
</div>
<div class="content">
<h2>SAMPLE DATA 1</h2>
<h4>DOESN'T ADD UP ON TOTAL AND DISPLAY ON GRAPH</h4>
<p>Lorem, ipsum dolor impedit quia, libero distinctio corrupti ea nesciunt iure nemo, alias explicabo quod excepturi tenetur. Voluptatem tempora nobis quisquam veniam neque corrupti eveniet, et, inventore modi magni molestias sed error delectus harum amet cumque similique. Molestias!</p>
</div>
<div>
<h1>$12345</h1>
</div>
<button class="deletebtn" onclick="removeelem(this)">X</button>
</div>
<div class="transaction">
<div class="expense" id="expense">
</div>
<div class="content">
<h2>SAMPLE DATA 2</h2>
<h4>DOESN'T ADD UP ON TOTAL AND DISPLAY ON GRAPH</h4>
<p>Lorem, ipsum dolor impedit quia, libero distinctio corrupti ea nesciunt iure nemo, alias explicabo quod excepturi tenetur. Voluptatem tempora nobis quisquam veniam neque corrupti eveniet, et, inventore modi magni molestias sed error delectus harum amet cumque similique. Molestias!</p>
</div>
<div>
<h1>$12345</h1>
</div>
<button class="deletebtn" onclick="removeelem(this)">X</button>
</div>
</div>
<!-- main display -->
<div id="overview" class="overview">
<h1>OVERVIEW</h1>
<div class="maindisplay">
<div>
<h3>INCOME</h3>
<h1 class="incomedisplay"></h1>
</div>
<div>
<h3>EXPENSE</h3>
<h1 class="expensedisplay"></h1>
</div>
<div>
<h3>TOTAL</h3>
<h1 class="totaldisplay"></h1>
</div>
</div>
<div class="graph">
<h1>INCOME</h1>
<h1>EXPENSE</h1>
<div id="piechart1"></div>
<div id="piechart2"></div>
</div>
</div>
<script src="./app.js"></script>
</body>
</html>