Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
136 lines (120 loc) · 6.35 KB
/
Copy pathindex.html
File metadata and controls
136 lines (120 loc) · 6.35 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
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
135
136
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PayTooling - Contractor Pay Stub Generator</title>
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/dark-mode.css">
<link rel="stylesheet" href="css/family.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<link rel="icon" href="favicon.ico" sizes="32x32">
<link rel="icon" href="icons/favicon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="icons/apple-touch-180.png">
</head>
<body>
<header>
<div class="container">
<div class="header-content">
<div class="header-title">
<img class="family-mark" src="icons/favicon.svg" alt="" width="40" height="40">
<div class="family-title">
<h1>PayTooling</h1>
<div class="title-and-toggle">
<p>Contractor pay stubs with a mileage record · Click Plumbing and Electrical</p>
<div class="theme-toggle">
<span id="darkModeToggle" aria-label="Toggle dark mode">
<i class="fas fa-moon"></i>
</span>
</div>
</div>
</div>
</div>
<nav class="main-nav">
<ul>
<li class="indent-1"><a href="index.html" class="active">Pay Stub Generator</a></li>
<li class="indent-2"><a href="reverse-invoice.html">Reverse Invoice</a></li>
<li class="indent-3"><a href="how-to-use.html">How to Use</a></li>
</ul>
</nav>
</div>
</div>
</header>
<main class="container">
<div class="card">
<form id="paystubForm">
<div class="header-with-action">
<h2>Contractor Information</h2>
<button type="button" id="fillSampleData" class="btn">Fill with Sample Data</button>
</div>
<div class="form-group">
<label for="contractorName">Contractor Name:</label>
<input type="text" id="contractorName" name="contractorName" required>
</div>
<div class="form-group">
<label for="paymentAmount">Payment Amount ($):</label>
<input type="number" id="paymentAmount" name="paymentAmount" step="0.01" min="0" required>
</div>
<div class="form-group">
<label for="milesDriven">Miles Driven During This Period For Company:</label>
<input type="number" id="milesDriven" name="milesDriven" min="0" step="0.1">
</div>
<div class="form-row">
<div class="form-group">
<label for="payPeriodStart">Pay Period Start:</label>
<input type="date" id="payPeriodStart" name="payPeriodStart" required>
</div>
<div class="form-group">
<label for="payPeriodEnd">Pay Period End:</label>
<input type="date" id="payPeriodEnd" name="payPeriodEnd" required>
</div>
</div>
<div class="form-group">
<label for="paymentDate">Payment Date:</label>
<input type="date" id="paymentDate" name="paymentDate" required>
</div>
<div class="form-group">
<label for="mileageRate"><a href="https://www.irs.gov/tax-professionals/standard-mileage-rates" target="_blank" title="View current IRS mileage rates">IRS standard mileage rate for business use</a> — check IRS.gov; it changes each January:</label>
<input type="number" id="mileageRate" name="mileageRate" min="0" step="0.001" value="0.70">
</div>
<div class="form-group">
<label for="notes">Notes:</label>
<textarea id="notes" name="notes" rows="3"></textarea>
</div>
<h2>Company Information</h2>
<div class="form-group">
<label for="companyName">Company Name:</label>
<input type="text" id="companyName" name="companyName" required>
</div>
<div class="form-group">
<label for="companyAddress">Company Address:</label>
<textarea id="companyAddress" name="companyAddress" rows="2" required></textarea>
</div>
<div class="form-actions">
<button type="button" id="generatePDF" class="btn primary">Generate Pay Stub</button>
<button type="button" id="generateLink" class="btn secondary">Generate Pre-fill Link</button>
<button type="reset" class="btn">Reset Form</button>
</div>
</form>
</div>
<div class="card" id="linkSection" style="display: none;">
<h2>Pre-fill Link</h2>
<p>Use this link to pre-fill the form with the current information:</p>
<div class="link-container">
<input type="text" id="prefillLink" readonly>
<button id="copyLink" class="btn"><i class="fas fa-copy"></i> Copy</button>
</div>
</div>
</main>
<footer>
<div class="container">
<p>© <span id="currentYear"></span> <span class="company-name">Click Plumbing and Electrical</span>. All rights reserved.</p>
</div>
</footer>
<!-- Scripts -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
<script src="js/app.js?v=1.0.2"></script>
<script src="js/stub-helpers.js?v=1.0.0"></script>
</body>
</html>