-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.htm
More file actions
46 lines (44 loc) · 1.53 KB
/
index.htm
File metadata and controls
46 lines (44 loc) · 1.53 KB
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
<!DOCTYPE html>
<html lang="en" dir="rtl" data-theme="light" >
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css">
<title>مدیریت هزینه ها</title>
<script src="Js/loging.js"></script>
</head>
<body>
<main class="container">
<h1>
<button id="light-btn" onclick="changingPageColor('light')">Light</button>
<button id="dark-btn" onclick="changingPageColor('dark')">Dark</button>
</h1>
<h1> مدیریت هزینه ها</h1>
<tbody>
<form name="formExpense" id="formExpense">
<label for="desc">شرح</label>
<input type="text" name="desc" id="desc" required> </input>
<label for="inputAmount">مبلغ</label>
<input type="number" id="inputAmount" name="inputAmount" required></input>
<button type="submit"> افزودن </button>
</form>
</tbody>
<h2>جمع کل<span id="totalAmnt"> 0 </span> تومان </h2>
<br>
<table>
<thead>
<tr>
<th>شرح</th>
<th>مبلغ</th>
<th>عملیات</th>
</tr>
</thead>
<tbody id="expanseBody"></tbody>
</table>
</main>
<script src="Js/action.js">
document.addEventListener("DOMContentLoaded", function() {
changingPageColor('dark');
});
</script>
</body>
</html>