-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
111 lines (98 loc) · 4.21 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Petty Cash</title>
<link rel="stylesheet" href="styles.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.4.0/jspdf.umd.min.js"></script>
</head>
<body>
<header>
<h1>Petty Cash</h1>
<h2>Split bills without the drama 💸</h2>
</header>
<main class="main-content">
<!-- Button to toggle between light and dark themes -->
<button class="theme-button" id="theme-toggle">☀️/🌙</button>
<!-- Tax and Tip Section -->
<section id="tax-tip-section">
<label for="tax">Tax (%):</label>
<input id="tax" placeholder="Enter tax percentage" type="number">
<label for="tip">Tip (%):</label>
<input id="tip" placeholder="Enter tip percentage" type="number">
<label for="currency">Currency:</label>
<select id="currency">
<option value="usd">💵 USD</option>
<option value="gbp">💷 GBP</option>
<option value="eur">💶 EUR</option>
<option value="jpy">💴 JPY</option>
</select>
</section>
<!-- Participants Section -->
<section id="participants-section" class="section">
<h2 class="section-title">Participants</h2>
<div id="participants-container" class="participants-container"></div>
<button id="add-participant" class="button">+ Add Participant</button>
</section>
<!-- Items Section -->
<section id="items-section" class="section">
<h2 class="section-title">Items</h2>
<div id="items-container" class="items-container"></div>
<button id="add-item" class="button">+ Add Item</button>
</section>
<!-- Split Method Section -->
<section id="split-method-section" class="section">
<h2 class="section-title">Select Split Method</h2>
<label for="split-method">Select Split Method:</label>
<select id="split-method" class="dropdown">
<option value="itemized">Itemized (Your Food Only)</option>
<option value="dutch">Dutch (Equal Split)</option>
<option value="attendance">Attendance-Based</option>
<option value="custom">Custom Percentages</option>
</select>
<div id="custom-percentages" class="hidden custom-percentages">
<h3 class="subsection-title">Custom Percentages</h3>
<div id="custom-percentages-container" class="custom-percentages-container"></div>
</div>
</section>
<!-- Summary Section -->
<section id="summary-section" class="section">
<h2 class="section-title">Payment Summary</h2>
<ul id="summary-container" class="summary-container"></ul>
<button id="calculate-button" class="button">Calculate</button>
</section>
<!-- Hidden Templates -->
<template id="participant-template">
<div class="participant-row">
<label for="participant-name">Participant Name:</label>
<input type="text" id="participant-name" class="participant-name" placeholder="Participant Name">
<label class="toggle" for="participant-present-1">
<input class="participant-present" id="participant-present-1" type="checkbox">
<span class="toggle-slider"></span>
</label>
<span>Present</span>
<button class="remove-button">Remove</button>
</div>
</template>
<template id="item-template">
<div class="item-row">
<label for="item-name">Item Name:</label>
<input type="text" id="item-name" class="item-name" placeholder="Item Name">
<label for="item-price">Price:</label>
<input type="number" id="item-price" class="item-price" placeholder="Price">
<div class="assign-container">
<span>Assign to:</span>
</div>
<button class="remove-button">Remove</button>
</div>
</template>
<!-- Export Section -->
<section id="export-section">
<button id="export-pdf">Export as PDF</button>
<button id="export-csv">Export as CSV</button>
</section>
</main>
<script src="script.js"></script>
</body>
</html>