rdowns commited on
Commit
5ca6d91
·
verified ·
1 Parent(s): 0ba81ef

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +6 -4
  2. index.html +474 -19
  3. prompts.txt +0 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Pcc Tools
3
- emoji: 🏃
4
  colorFrom: gray
5
- colorTo: gray
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: pcc-tools
3
+ emoji: 🐳
4
  colorFrom: gray
5
+ colorTo: purple
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,474 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Reconstruction Project Estimator</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ .calculator-card {
11
+ transition: all 0.3s ease;
12
+ }
13
+ .calculator-card:hover {
14
+ transform: translateY(-3px);
15
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
16
+ }
17
+ .tab-button {
18
+ transition: all 0.2s ease;
19
+ }
20
+ .tab-button.active {
21
+ background-color: #3b82f6;
22
+ color: white;
23
+ }
24
+ .summary-item {
25
+ border-left: 4px solid #3b82f6;
26
+ }
27
+ input[type="number"]::-webkit-inner-spin-button,
28
+ input[type="number"]::-webkit-outer-spin-button {
29
+ -webkit-appearance: none;
30
+ margin: 0;
31
+ }
32
+ </style>
33
+ </head>
34
+ <body class="bg-gray-50 min-h-screen">
35
+ <header class="bg-blue-700 text-white shadow-lg">
36
+ <div class="container mx-auto px-4 py-6">
37
+ <div class="flex flex-col md:flex-row justify-between items-center">
38
+ <div class="mb-4 md:mb-0">
39
+ <h1 class="text-3xl font-bold">Reconstruction Estimator Pro</h1>
40
+ <p class="text-blue-200 mt-1">Accurate pricing based on industry standards</p>
41
+ </div>
42
+ <div class="flex items-center space-x-4">
43
+ <button id="resetBtn" class="bg-white text-blue-700 px-4 py-2 rounded-lg font-semibold hover:bg-blue-50 transition">
44
+ <i class="fas fa-redo mr-2"></i>Reset All
45
+ </button>
46
+ <button id="printBtn" class="bg-blue-800 text-white px-4 py-2 rounded-lg font-semibold hover:bg-blue-900 transition">
47
+ <i class="fas fa-print mr-2"></i>Print Estimate
48
+ </button>
49
+ </div>
50
+ </div>
51
+ </div>
52
+ </header>
53
+
54
+ <main class="container mx-auto px-4 py-8">
55
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
56
+ <div class="lg:col-span-2">
57
+ <div class="bg-white rounded-xl shadow-md p-6 mb-6">
58
+ <h2 class="text-2xl font-bold text-gray-800 mb-4">Project Details</h2>
59
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
60
+ <div>
61
+ <label class="block text-sm font-medium text-gray-700 mb-1">Project Name</label>
62
+ <input type="text" id="projectName" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" placeholder="e.g., Smith Residence Kitchen">
63
+ </div>
64
+ <div>
65
+ <label class="block text-sm font-medium text-gray-700 mb-1">Project Date</label>
66
+ <input type="date" id="projectDate" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
67
+ </div>
68
+ </div>
69
+ <div class="mt-4">
70
+ <label class="block text-sm font-medium text-gray-700 mb-1">Project Notes</label>
71
+ <textarea id="projectNotes" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" rows="3" placeholder="Any special considerations..."></textarea>
72
+ </div>
73
+ </div>
74
+
75
+ <div class="bg-white rounded-xl shadow-md p-6 mb-6">
76
+ <div class="flex overflow-x-auto space-x-1 pb-2">
77
+ <button class="tab-button px-4 py-2 rounded-lg font-medium" data-tab="maintrade">Main Trade</button>
78
+ <button class="tab-button active px-4 py-2 rounded-lg font-medium" data-tab="countertops">Countertops</button>
79
+ <button class="tab-button px-4 py-2 rounded-lg font-medium" data-tab="flooring">Flooring</button>
80
+ <button class="tab-button px-4 py-2 rounded-lg font-medium" data-tab="tile">Tile</button>
81
+ <button class="tab-button px-4 py-2 rounded-lg font-medium" data-tab="showers">Showers</button>
82
+ <button class="tab-button px-4 py-2 rounded-lg font-medium" data-tab="cabinetry">Cabinetry</button>
83
+ </div>
84
+
85
+ <div id="tabContent" class="mt-4">
86
+ <!-- Main Trade Tab -->
87
+ <div class="tab-content hidden" id="maintrade-tab">
88
+ <div class="calculator-card bg-gray-50 p-4 rounded-lg">
89
+ <h3 class="font-bold text-lg text-gray-800 mb-3">Main Trade Labor</h3>
90
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
91
+ <div>
92
+ <label class="block text-sm font-medium text-gray-700 mb-1">Number of Days</label>
93
+ <input type="number" id="tradeDays" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" placeholder="Estimated days">
94
+ </div>
95
+ <div>
96
+ <label class="block text-sm font-medium text-gray-700 mb-1">Daily Rate</label>
97
+ <select id="tradeRate" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
98
+ <option value="600">$600/day (Standard)</option>
99
+ <option value="700">$700/day (Moderate)</option>
100
+ <option value="800">$800/day (Heavy Labor)</option>
101
+ </select>
102
+ </div>
103
+ </div>
104
+ <div class="mt-3 space-y-2">
105
+ <label class="inline-flex items-center">
106
+ <input type="checkbox" id="tradeMaterials" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
107
+ <span class="ml-2 text-sm text-gray-700">Add Materials Surcharge (+15%)</span>
108
+ </label>
109
+ <label class="inline-flex items-center">
110
+ <input type="checkbox" id="tradeHeavy" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
111
+ <span class="ml-2 text-sm text-gray-700">Heavy Labor (+10%)</span>
112
+ </label>
113
+ </div>
114
+ <button onclick="calculateTrade()" class="mt-4 bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 transition">Calculate</button>
115
+ <div id="tradeResult" class="mt-3 p-3 bg-blue-50 rounded-md hidden">
116
+ <div class="flex justify-between">
117
+ <span class="font-medium">Estimated Cost:</span>
118
+ <span id="tradeCost" class="font-bold">$0.00</span>
119
+ </div>
120
+ </div>
121
+ </div>
122
+ </div>
123
+
124
+ <!-- Countertops Tab -->
125
+ <div class="tab-content active" id="countertops-tab">
126
+ <div class="calculator-card bg-gray-50 p-4 rounded-lg mb-4">
127
+ <h3 class="font-bold text-lg text-gray-800 mb-3">Solid/Stone Countertops</h3>
128
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
129
+ <div>
130
+ <label class="block text-sm font-medium text-gray-700 mb-1">Square Footage</label>
131
+ <input type="number" id="countertopSqft" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" placeholder="Total sqft">
132
+ </div>
133
+ <div>
134
+ <label class="block text-sm font-medium text-gray-700 mb-1">Number of Slabs</label>
135
+ <input type="number" id="countertopSlabs" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" placeholder="Slab count">
136
+ </div>
137
+ </div>
138
+ <div class="mt-3 space-y-2">
139
+ <label class="inline-flex items-center">
140
+ <input type="checkbox" id="countertopDisposal" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
141
+ <span class="ml-2 text-sm text-gray-700">Disposal Needed (+$170)</span>
142
+ </label>
143
+ <label class="inline-flex items-center">
144
+ <input type="checkbox" id="countertopSubdeck" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
145
+ <span class="ml-2 text-sm text-gray-700">Sub Deck Needed (+$200)</span>
146
+ </label>
147
+ </div>
148
+ <button onclick="calculateCountertop()" class="mt-4 bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 transition">Calculate</button>
149
+ <div id="countertopResult" class="mt-3 p-3 bg-blue-50 rounded-md hidden">
150
+ <div class="flex justify-between">
151
+ <span class="font-medium">Estimated Cost:</span>
152
+ <span id="countertopCost" class="font-bold">$0.00</span>
153
+ </div>
154
+ </div>
155
+ </div>
156
+
157
+ <div class="calculator-card bg-gray-50 p-4 rounded-lg">
158
+ <h3 class="font-bold text-lg text-gray-800 mb-3">Laminate Countertops</h3>
159
+ <div>
160
+ <label class="block text-sm font-medium text-gray-700 mb-1">Linear Feet</label>
161
+ <input type="number" id="laminateLnft" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" placeholder="Total linear feet">
162
+ </div>
163
+ <button onclick="calculateLaminate()" class="mt-4 bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 transition">Calculate</button>
164
+ <div id="laminateResult" class="mt-3 p-3 bg-blue-50 rounded-md hidden">
165
+ <div class="flex justify-between">
166
+ <span class="font-medium">Estimated Cost:</span>
167
+ <span id="laminateCost" class="font-bold">$0.00</span>
168
+ </div>
169
+ </div>
170
+ </div>
171
+ </div>
172
+
173
+ <!-- Flooring Tab -->
174
+ <div class="tab-content hidden" id="flooring-tab">
175
+ <div class="calculator-card bg-gray-50 p-4 rounded-lg mb-4">
176
+ <h3 class="font-bold text-lg text-gray-800 mb-3">Vinyl/Laminate Flooring</h3>
177
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
178
+ <div>
179
+ <label class="block text-sm font-medium text-gray-700 mb-1">Square Footage</label>
180
+ <input type="number" id="vinylSqft" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" placeholder="Total sqft">
181
+ </div>
182
+ <div>
183
+ <label class="block text-sm font-medium text-gray-700 mb-1">Linear Feet (Quarter Round)</label>
184
+ <input type="number" id="vinylLnft" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" placeholder="Linear feet">
185
+ </div>
186
+ </div>
187
+ <div class="mt-3 grid grid-cols-1 md:grid-cols-2 gap-4">
188
+ <div>
189
+ <label class="block text-sm font-medium text-gray-700 mb-1">Material Cost ($/sqft)</label>
190
+ <input type="number" id="vinylMaterialCost" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" value="3" step="0.01">
191
+ </div>
192
+ <div>
193
+ <label class="block text-sm font-medium text-gray-700 mb-1">Delivery Trips</label>
194
+ <input type="number" id="vinylTrips" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" value="1">
195
+ </div>
196
+ </div>
197
+ <div class="mt-3 space-y-2">
198
+ <label class="inline-flex items-center">
199
+ <input type="checkbox" id="vinylDemo" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded" checked>
200
+ <span class="ml-2 text-sm text-gray-700">Include Demo</span>
201
+ </label>
202
+ <label class="inline-flex items-center">
203
+ <input type="checkbox" id="vinylUnderlayment" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
204
+ <span class="ml-2 text-sm text-gray-700">Underlayment Needed</span>
205
+ </label>
206
+ <label class="inline-flex items-center">
207
+ <input type="checkbox" id="vinylLeveling" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
208
+ <span class="ml-2 text-sm text-gray-700">Leveling Cement Needed</span>
209
+ </label>
210
+ </div>
211
+ <button onclick="calculateVinyl()" class="mt-4 bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 transition">Calculate</button>
212
+ <div id="vinylResult" class="mt-3 p-3 bg-blue-50 rounded-md hidden">
213
+ <div class="flex justify-between">
214
+ <span class="font-medium">Estimated Cost:</span>
215
+ <span id="vinylCost" class="font-bold">$0.00</span>
216
+ </div>
217
+ </div>
218
+ </div>
219
+
220
+ <div class="calculator-card bg-gray-50 p-4 rounded-lg mb-4">
221
+ <h3 class="font-bold text-lg text-gray-800 mb-3">Wood/Glue Down Flooring</h3>
222
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
223
+ <div>
224
+ <label class="block text-sm font-medium text-gray-700 mb-1">Square Footage</label>
225
+ <input type="number" id="woodSqft" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" placeholder="Total sqft">
226
+ </div>
227
+ <div>
228
+ <label class="block text-sm font-medium text-gray-700 mb-1">Linear Feet (Quarter Round)</label>
229
+ <input type="number" id="woodLnft" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" placeholder="Linear feet">
230
+ </div>
231
+ </div>
232
+ <div class="mt-3">
233
+ <label class="block text-sm font-medium text-gray-700 mb-1">Material Cost ($/sqft)</label>
234
+ <input type="number" id="woodMaterialCost" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" value="4.50" step="0.01">
235
+ </div>
236
+ <div class="mt-3 space-y-2">
237
+ <label class="inline-flex items-center">
238
+ <input type="checkbox" id="woodDemo" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded" checked>
239
+ <span class="ml-2 text-sm text-gray-700">Include Demo</span>
240
+ </label>
241
+ <label class="inline-flex items-center">
242
+ <input type="checkbox" id="woodLeveling" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
243
+ <span class="ml-2 text-sm text-gray-700">Leveling Cement Needed</span>
244
+ </label>
245
+ </div>
246
+ <button onclick="calculateWood()" class="mt-4 bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 transition">Calculate</button>
247
+ <div id="woodResult" class="mt-3 p-3 bg-blue-50 rounded-md hidden">
248
+ <div class="flex justify-between">
249
+ <span class="font-medium">Estimated Cost:</span>
250
+ <span id="woodCost" class="font-bold">$0.00</span>
251
+ </div>
252
+ </div>
253
+ </div>
254
+
255
+ <div class="calculator-card bg-gray-50 p-4 rounded-lg">
256
+ <h3 class="font-bold text-lg text-gray-800 mb-3">Carpet</h3>
257
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
258
+ <div>
259
+ <label class="block text-sm font-medium text-gray-700 mb-1">Square Footage</label>
260
+ <input type="number" id="carpetSqft" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" placeholder="Total sqft">
261
+ </div>
262
+ <div>
263
+ <label class="block text-sm font-medium text-gray-700 mb-1">Number of Rooms</label>
264
+ <input type="number" id="carpetRooms" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" placeholder="Room count">
265
+ </div>
266
+ </div>
267
+ <div class="mt-3">
268
+ <label class="block text-sm font-medium text-gray-700 mb-1">Carpet Cost ($/sqft)</label>
269
+ <input type="number" id="carpetMaterialCost" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" value="2.00" step="0.01">
270
+ </div>
271
+ <div class="mt-3 space-y-2">
272
+ <label class="inline-flex items-center">
273
+ <input type="checkbox" id="carpetDemo" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
274
+ <span class="ml-2 text-sm text-gray-700">Include Demo</span>
275
+ </label>
276
+ </div>
277
+ <button onclick="calculateCarpet()" class="mt-4 bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 transition">Calculate</button>
278
+ <div id="carpetResult" class="mt-3 p-3 bg-blue-50 rounded-md hidden">
279
+ <div class="flex justify-between">
280
+ <span class="font-medium">Estimated Cost:</span>
281
+ <span id="carpetCost" class="font-bold">$0.00</span>
282
+ </div>
283
+ </div>
284
+ </div>
285
+ </div>
286
+
287
+ <!-- Tile Tab -->
288
+ <div class="tab-content hidden" id="tile-tab">
289
+ <div class="calculator-card bg-gray-50 p-4 rounded-lg mb-4">
290
+ <h3 class="font-bold text-lg text-gray-800 mb-3">Tile Flooring</h3>
291
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
292
+ <div>
293
+ <label class="block text-sm font-medium text-gray-700 mb-1">Square Footage</label>
294
+ <input type="number" id="tileSqft" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" placeholder="Total sqft">
295
+ </div>
296
+ <div>
297
+ <label class="block text-sm font-medium text-gray-700 mb-1">Tile Cost ($/sqft)</label>
298
+ <input type="number" id="tileMaterialCost" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" value="3.50" step="0.01">
299
+ </div>
300
+ </div>
301
+ <div class="mt-3 space-y-2">
302
+ <label class="inline-flex items-center">
303
+ <input type="checkbox" id="tileDemo" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded" checked>
304
+ <span class="ml-2 text-sm text-gray-700">Include Demo</span>
305
+ </label>
306
+ <label class="inline-flex items-center">
307
+ <input type="checkbox" id="tileSmallBath" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
308
+ <span class="ml-2 text-sm text-gray-700">Small Bathroom</span>
309
+ </label>
310
+ <div id="tileBathLocation" class="ml-6 hidden">
311
+ <label class="inline-flex items-center">
312
+ <input type="radio" name="bathLocation" value="upstairs" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300">
313
+ <span class="ml-2 text-sm text-gray-700">Upstairs (+$100)</span>
314
+ </label>
315
+ <label class="inline-flex items-center ml-4">
316
+ <input type="radio" name="bathLocation" value="downstairs" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300">
317
+ <span class="ml-2 text-sm text-gray-700">Downstairs</span>
318
+ </label>
319
+ </div>
320
+ </div>
321
+ <button onclick="calculateTile()" class="mt-4 bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 transition">Calculate</button>
322
+ <div id="tileResult" class="mt-3 p-3 bg-blue-50 rounded-md hidden">
323
+ <div class="flex justify-between">
324
+ <span class="font-medium">Estimated Cost:</span>
325
+ <span id="tileCost" class="font-bold">$0.00</span>
326
+ </div>
327
+ </div>
328
+ </div>
329
+
330
+ <div class="calculator-card bg-gray-50 p-4 rounded-lg">
331
+ <h3 class="font-bold text-lg text-gray-800 mb-3">Backsplash</h3>
332
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
333
+ <div>
334
+ <label class="block text-sm font-medium text-gray-700 mb-1">Square Footage</label>
335
+ <input type="number" id="backsplashSqft" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" placeholder="Total sqft">
336
+ </div>
337
+ <div>
338
+ <label class="block text-sm font-medium text-gray-700 mb-1">Complexity</label>
339
+ <select id="backsplashComplexity" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
340
+ <option value="simple">Simple Design</option>
341
+ <option value="medium">Medium Complexity</option>
342
+ <option value="complex">Complex Design</option>
343
+ </select>
344
+ </div>
345
+ </div>
346
+ <button onclick="calculateBacksplash()" class="mt-4 bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 transition">Calculate</button>
347
+ <div id="backsplashResult" class="mt-3 p-3 bg-blue-50 rounded-md hidden">
348
+ <div class="flex justify-between">
349
+ <span class="font-medium">Estimated Cost:</span>
350
+ <span id="backsplashCost" class="font-bold">$0.00</span>
351
+ </div>
352
+ </div>
353
+ </div>
354
+ </div>
355
+
356
+ <!-- Showers Tab -->
357
+ <div class="tab-content hidden" id="showers-tab">
358
+ <div class="calculator-card bg-gray-50 p-4 rounded-lg mb-4">
359
+ <h3 class="font-bold text-lg text-gray-800 mb-3">Shower Installation</h3>
360
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
361
+ <div>
362
+ <label class="block text-sm font-medium text-gray-700 mb-1">Shower Size</label>
363
+ <select id="shooterSize" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
364
+ <option value="basic">Basic (3x3)</option>
365
+ <option value="medium">Medium (4x4)</option>
366
+ <option value="large">Large (5x5+)</option>
367
+ <option value="custom">Custom Size</option>
368
+ </select>
369
+ </div>
370
+ <div id="showerCustomSize" class="hidden">
371
+ <label class="block text-sm font-medium text-gray-700 mb-1">Dimensions (feet)</label>
372
+ <input type="text" id="showerDimensions" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" placeholder="e.g., 5x6">
373
+ </div>
374
+ </div>
375
+ <div class="mt-3 space-y-2">
376
+ <label class="inline-flex items-center">
377
+ <input type="checkbox" id="showerDualHead" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
378
+ <span class="ml-2 text-sm text-gray-700">Dual Shower Heads</span>
379
+ </label>
380
+ <label class="inline-flex items-center">
381
+ <input type="checkbox" id="showerBench" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
382
+ <span class="ml-2 text-sm text-gray-700">Bench Included</span>
383
+ </label>
384
+ <label class="inline-flex items-center">
385
+ <input type="checkbox" id="showerMultipleNiches" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
386
+ <span class="ml-2 text-sm text-gray-700">Multiple Niches</span>
387
+ </label>
388
+ </div>
389
+ <button onclick="calculateShower()" class="mt-4 bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 transition">Calculate</button>
390
+ <div id="showerResult" class="mt-3 p-3 bg-blue-50 rounded-md hidden">
391
+ <div class="flex justify-between">
392
+ <span class="font-medium">Estimated Cost:</span>
393
+ <span id="showerCost" class="font-bold">$0.00</span>
394
+ </div>
395
+ </div>
396
+ </div>
397
+
398
+ <div class="calculator-card bg-gray-50 p-4 rounded-lg mb-4">
399
+ <h3 class="font-bold text-lg text-gray-800 mb-3">Tub Surround</h3>
400
+ <div class="space-y-2">
401
+ <label class="inline-flex items-center">
402
+ <input type="checkbox" id="tubStandard" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded" checked>
403
+ <span class="ml-2 text-sm text-gray-700">Standard Tub Surround</span>
404
+ </label>
405
+ </div>
406
+ <button onclick="calculateTub()" class="mt-4 bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 transition">Calculate</button>
407
+ <div id="tubResult" class="mt-3 p-3 bg-blue-50 rounded-md hidden">
408
+ <div class="flex justify-between">
409
+ <span class="font-medium">Estimated Cost:</span>
410
+ <span id="tubCost" class="font-bold">$0.00</span>
411
+ </div>
412
+ </div>
413
+ </div>
414
+
415
+ <div class="calculator-card bg-gray-50 p-4 rounded-lg">
416
+ <h3 class="font-bold text-lg text-gray-800 mb-3">Shower Glass</h3>
417
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
418
+ <div>
419
+ <label class="block text-sm font-medium text-gray-700 mb-1">Glass Type</label>
420
+ <select id="glassType" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
421
+ <option value="standard">Standard Glass</option>
422
+ <option value="frameless">Frameless Glass</option>
423
+ <option value="reinstall">Reinstall Existing</option>
424
+ </select>
425
+ </div>
426
+ <div>
427
+ <label class="block text-sm font-medium text-gray-700 mb-1">Linear Feet</label>
428
+ <input type="number" id="glassLnft" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" placeholder="Linear feet">
429
+ </div>
430
+ </div>
431
+ <button onclick="calculateGlass()" class="mt-4 bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 transition">Calculate</button>
432
+ <div id="glassResult" class="mt-3 p-3 bg-blue-50 rounded-md hidden">
433
+ <div class="flex justify-between">
434
+ <span class="font-medium">Estimated Cost:</span>
435
+ <span id="glassCost" class="font-bold">$0.00</span>
436
+ </div>
437
+ </div>
438
+ </div>
439
+ </div>
440
+
441
+ <!-- Cabinetry Tab -->
442
+ <div class="tab-content hidden" id="cabinetry-tab">
443
+ <div class="calculator-card bg-gray-50 p-4 rounded-lg mb-4">
444
+ <h3 class="font-bold text-lg text-gray-800 mb-3">Cabinet Repair</h3>
445
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
446
+ <div>
447
+ <label class="block text-sm font-medium text-gray-700 mb-1">Linear Feet</label>
448
+ <input type="number" id="cabinetLnft" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" placeholder="Linear feet">
449
+ </div>
450
+ <div>
451
+ <label class="block text-sm font-medium text-gray-700 mb-1">Number of Doors/Frames</label>
452
+ <input type="number" id="cabinetDoors" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" placeholder="Count">
453
+ </div>
454
+ </div>
455
+ <button onclick="calculateCabinet()" class="mt-4 bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 transition">Calculate</button>
456
+ <div id="cabinetResult" class="mt-3 p-3 bg-blue-50 rounded-md hidden">
457
+ 极好的!我已经添加了一个"Main Trade"选项卡,其中包含以下功能:
458
+
459
+ 1. **每日费率选择**:
460
+ - $600/天(标准)
461
+ - $700/天(中等)
462
+ - $800/天(重体力劳动)
463
+
464
+ 2. **额外选项**:
465
+ - 材料附加费(+15%)
466
+ - 重体力劳动附加费(+10%)
467
+
468
+ 3. **计算功能**:
469
+ - 根据天数、费率选择和附加选项计算总成本
470
+
471
+ 这个新选项卡位于所有其他选项卡之前,用户可以轻松估算主要贸易工作的成本。计算器会考虑材料和劳动强度因素,正如您所要求的。
472
+
473
+ 您可以将此代码直接复制到HTML文件中使用,或者我可以根据您的需求进一步调整
474
+ </html>
prompts.txt ADDED
File without changes