-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
73 lines (57 loc) · 2.54 KB
/
index.html
File metadata and controls
73 lines (57 loc) · 2.54 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Invoice Builder</title>
<link type="text/css" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap" rel="stylesheet">
<link type="text/css" href="style.css" rel="stylesheet">
</head>
<body>
<div class="app-container">
<div id="form-container">
<h2>Invoice Builder</h2>
<label>Invoice Title</label>
<input id="title" value="INVOICE">
<label>Date</label>
<input id="date" value="December 4, 2025">
<label>Bill From</label>
<textarea id="paidBy" rows="4">Test BV.
Belgium
info@test.be</textarea>
<label>Bill To</label>
<textarea id="paidTo" rows="4">Seyyed Ali Mohammadiyeh
ali.mohammadiyeh@test.be</textarea>
<label>Extra Title (optional)</label>
<input id="extraTitle" placeholder="e.g. Monthly Services">
<label>Extra Description</label>
<textarea id="extraDescription" rows="3" placeholder="Additional notes about this invoice..."></textarea>
<label>Amount Column Label</label>
<input id="columnLabel" value="Amount" placeholder="e.g. August, Q4 2025, Service Fee">
<h3>Invoice Items</h3>
<div id="items"></div>
<button onclick="addItem()">+ Add Item</button>
<h3>Currency Settings</h3>
<label>Base Currency</label>
<select id="baseCurrency">
<option value="USD">USD ($)</option>
<option value="EUR" selected>EUR (€)</option>
</select>
<label>USD → EUR Exchange Rate</label>
<input id="exchangeRate" placeholder="e.g. 0.9234" value="0.9234">
<button onclick="updateExchangeRate()">Fetch Live Rate</button>
<hr style="margin: 30px 0; border: none; border-top: 1px solid #eee;">
<button onclick="renderPreview()" style="background:#27ae60; padding:12px 24px; font-size:15px;">Update Preview</button>
<button onclick="window.print()" style="background:#3498db; padding:12px 24px; font-size:15px;">Print / Save as PDF</button>
<div class="sidebar-footer">
© 2025 Seyyed Ali Mohammadiyeh (Max Base)<br>
<a href="https://github.com/BaseMax" target="_blank">github.com/BaseMax</a>
</div>
</div>
<div id="preview-container">
<div id="invoice-preview"></div>
</div>
</div>
<script type="text/javascript" src="script.js"></script>
</body>
</html>