privateuserh commited on
Commit
f30282f
·
verified ·
1 Parent(s): 7dba84d

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +352 -19
  3. prompts.txt +1 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Fffund Containerarbitrage Db1mod
3
- emoji: 📉
4
- colorFrom: green
5
- colorTo: indigo
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: fffund-containerarbitrage-db1mod
3
+ emoji: 🐳
4
+ colorFrom: gray
5
+ colorTo: blue
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,352 @@
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>Trade Tariff Window Calculator</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
+ .info-icon {
11
+ cursor: pointer;
12
+ transition: all 0.3s;
13
+ }
14
+ .info-icon:hover {
15
+ transform: scale(1.1);
16
+ color: #3b82f6;
17
+ }
18
+ .dropdown-content {
19
+ opacity: 0;
20
+ transform: translateY(-10px);
21
+ transition: all 0.3s;
22
+ pointer-events: none;
23
+ }
24
+ .dropdown-open .dropdown-content {
25
+ opacity: 1;
26
+ transform: translateY(0);
27
+ pointer-events: auto;
28
+ }
29
+ #progress-tracker {
30
+ transition: all 0.5s ease;
31
+ }
32
+ </style>
33
+ </head>
34
+ <body class="bg-gray-100 min-h-screen">
35
+ <div class="container mx-auto px-4 py-8 max-w-4xl">
36
+ <div class="bg-white rounded-xl shadow-lg overflow-hidden">
37
+ <!-- Header -->
38
+ <div class="bg-blue-600 p-6 text-white">
39
+ <h1 class="text-2xl md:text-3xl font-bold">Trade Tariff Window Calculator</h1>
40
+ <p class="mt-2 opacity-90">Manage your tariff periods under Section 122 of the Trade Act</p>
41
+ </div>
42
+
43
+ <!-- Main content -->
44
+ <div class="p-6">
45
+ <!-- Tariff Window Selection -->
46
+ <div class="mb-8">
47
+ <h2 class="text-xl font-semibold mb-4 flex items-center">
48
+ Tariff Window Selection
49
+ <span class="info-icon ml-2 relative group">
50
+ <i class="fas fa-info-circle"></i>
51
+ <div class="absolute hidden group-hover:block bg-gray-800 text-white text-sm rounded p-2 w-72 z-10 left-full ml-2">
52
+ <p>Select between the standard 37.5-day tariff window or the extended 150-day option under Section 122 of the Trade Act of 1974.</p>
53
+ </div>
54
+ </span>
55
+ </h2>
56
+
57
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
58
+ <!-- Option 1: Standard window -->
59
+ <div
60
+ class="border-2 rounded-lg p-4 cursor-pointer transition-all duration-200 hover:border-blue-400 tariff-option"
61
+ data-days="37.5"
62
+ onclick="selectTariffOption(this, 37.5)"
63
+ >
64
+ <div class="flex items-center">
65
+ <div class="h-6 w-6 rounded-full border-2 border-gray-300 mr-3 flex items-center justify-center">
66
+ <div class="h-3 w-3 rounded-full bg-blue-600 hidden"></div>
67
+ </div>
68
+ <h3 class="font-medium">Standard Window</h3>
69
+ <span class="ml-auto bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded">Default</span>
70
+ </div>
71
+ <p class="mt-2 text-gray-600 text-sm ml-9">37.5 days with 3 renewal periods</p>
72
+ </div>
73
+
74
+ <!-- Option 2: Extended window -->
75
+ <div
76
+ class="border-2 rounded-lg p-4 cursor-pointer transition-all duration-200 hover:border-blue-400 tariff-option"
77
+ data-days="150"
78
+ onclick="selectTariffOption(this, 150)"
79
+ >
80
+ <div class="flex items-center">
81
+ <div class="h-6 w-6 rounded-full border-2 border-gray-300 mr-3 flex items-center justify-center">
82
+ <div class="h-3 w-3 rounded-full bg-blue-600 hidden"></div>
83
+ </div>
84
+ <h3 class="font-medium">Extended Section 122 Window</h3>
85
+ </div>
86
+ <p class="mt-2 text-gray-600 text-sm ml-9">150 days limit - temporary measure for balance of payments</p>
87
+ </div>
88
+ </div>
89
+ </div>
90
+
91
+ <!-- Renewal Configuration -->
92
+ <div class="mb-8">
93
+ <div class="flex items-center justify-between mb-4">
94
+ <h2 class="text-xl font-semibold">Renewal Periods</h2>
95
+ <div class="relative">
96
+ <button
97
+ id="renewal-dropdown-btn"
98
+ class="bg-gray-100 hover:bg-gray-200 px-4 py-2 rounded-lg flex items-center"
99
+ onclick="toggleDropdown('renewal-dropdown')"
100
+ >
101
+ <span id="renewal-display">3 renewals (standard)</span>
102
+ <i class="fas fa-chevron-down ml-2 text-sm"></i>
103
+ </button>
104
+ <div id="renewal-dropdown" class="dropdown-content absolute bg-white shadow-lg rounded-lg mt-1 w-full z-10 overflow-hidden">
105
+ <div
106
+ class="px-4 py-2 hover:bg-blue-50 cursor-pointer"
107
+ onclick="setRenewals(1, '1 renewal')"
108
+ >1 renewal</div>
109
+ <div
110
+ class="px-4 py-2 hover:bg-blue-50 cursor-pointer"
111
+ onclick="setRenewals(2, '2 renewals')"
112
+ >2 renewals</div>
113
+ <div
114
+ class="px-4 py-2 hover:bg-blue-50 cursor-pointer bg-blue-100"
115
+ onclick="setRenewals(3, '3 renewals (standard)')"
116
+ >3 renewals (standard)</div>
117
+ </div>
118
+ </div>
119
+ </div>
120
+
121
+ <div class="bg-blue-50 p-4 rounded-lg">
122
+ <p class="text-sm text-gray-700 mb-2" id="renewal-details">
123
+ Standard configuration allows for up to 3 renewal periods of 37.5 days each.
124
+ Total possible duration: 112.5 days.
125
+ </p>
126
+ <p class="text-sm text-gray-700 hidden" id="extended-details">
127
+ Section 122 allows for a maximum continuous period of 150 days (approximately 5 months).
128
+ After this period, a new quote is required which may be subject to changed tariff rates.
129
+ </p>
130
+ </div>
131
+ </div>
132
+
133
+ <!-- Date Selection -->
134
+ <div class="mb-8">
135
+ <h2 class="text-xl font-semibold mb-4">Activation Date</h2>
136
+ <div class="flex flex-col md:flex-row gap-4">
137
+ <div class="flex-1">
138
+ <label class="block text-sm font-medium text-gray-700 mb-1">Start Date</label>
139
+ <input
140
+ type="date"
141
+ id="start-date"
142
+ class="w-full p-2 border rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500"
143
+ >
144
+ </div>
145
+ <div class="flex-1 opacity-0 h-0 md:h-auto md:opacity-100 transition-opacity duration-300" id="end-date-container">
146
+ <label class="block text-sm font-medium text-gray-700 mb-1">Estimated End Date</label>
147
+ <input
148
+ type="date"
149
+ id="end-date"
150
+ class="w-full p-2 border rounded-lg bg-gray-100"
151
+ disabled
152
+ >
153
+ </div>
154
+ </div>
155
+ </div>
156
+
157
+ <!-- Save and Progress -->
158
+ <div class="flex flex-col md:flex-row gap-4 items-stretch">
159
+ <button
160
+ id="save-btn"
161
+ class="bg-blue-600 hover:bg-blue-700 text-white py-3 px-6 rounded-lg flex-1 flex items-center justify-center transition-all"
162
+ onclick="saveConfiguration()"
163
+ >
164
+ <i class="fas fa-save mr-2"></i>
165
+ Save Configuration
166
+ </button>
167
+
168
+ <div
169
+ id="progress-tracker"
170
+ class="bg-white border rounded-lg p-4 flex-1 opacity-0 h-0 md:h-auto overflow-hidden transition-all duration-300"
171
+ >
172
+ <h3 class="font-medium mb-2">Current Progress</h3>
173
+ <div class="h-2 bg-gray-200 rounded-full overflow-hidden">
174
+ <div id="progress-bar" class="h-full bg-green-500 w-0"></div>
175
+ </div>
176
+ <p id="progress-text" class="text-sm mt-2 text-gray-600">No active tariff window configured.</p>
177
+ </div>
178
+ </div>
179
+ </div>
180
+
181
+ <!-- Info section -->
182
+ <div class="bg-gray-50 p-6 border-t">
183
+ <h2 class="text-lg font-semibold mb-3">About Section 122 Tariff Windows</h2>
184
+ <div class="space-y-3 text-sm text-gray-600">
185
+ <p>The <strong>150-day period</strong> in tariffs regulations refers to a time limit on using certain trade laws. Specifically, Section 122 of the Trade Act of 1974 allows for the imposition of tariffs of up to 15% for a period of 150 days in response to a balance of payments deficit.</p>
186
+ <p>This is a temporary measure to address trade imbalances before a longer-term process can be initiated.</p>
187
+ <p><strong>Key Features:</strong></p>
188
+ <ul class="list-disc pl-5 space-y-1">
189
+ <li><strong>15% Tariff Limit:</strong> The tariffs imposed under Section 122 cannot exceed 15%.</li>
190
+ <li><strong>150-Day Time Limit:</strong> Provides a limited window for addressing trade imbalances.</li>
191
+ <li><strong>Temporary Measure:</strong> Allows time to consider other options like longer-term negotiations.</li>
192
+ </ul>
193
+ <p><strong>Why 150 days?</strong> This limit encourages swift response to trade issues while allowing for thorough investigation and negotiation.</p>
194
+ </div>
195
+ </div>
196
+ </div>
197
+ </div>
198
+
199
+ <script>
200
+ // Global variables
201
+ let selectedDays = 37.5;
202
+ let renewalPeriods = 3;
203
+ let savedConfigurations = [];
204
+
205
+ // Initialize date picker with today's date
206
+ document.addEventListener('DOMContentLoaded', function() {
207
+ const today = new Date();
208
+ const formattedDate = today.toISOString().split('T')[0];
209
+ document.getElementById('start-date').value = formattedDate;
210
+ document.getElementById('start-date').min = formattedDate;
211
+
212
+ // Set default selection
213
+ selectTariffOption(document.querySelector('.tariff-option[data-days="37.5"]'), 37.5);
214
+
215
+ // Close dropdowns when clicking outside
216
+ document.addEventListener('click', function(e) {
217
+ if (!e.target.closest('.relative') && !e.target.closest('#renewal-dropdown-btn')) {
218
+ closeAllDropdowns();
219
+ }
220
+ });
221
+ });
222
+
223
+ // Select tariff option
224
+ function selectTariffOption(element, days) {
225
+ // Update visual selection
226
+ document.querySelectorAll('.tariff-option').forEach(opt => {
227
+ opt.classList.remove('border-blue-600', 'bg-blue-50');
228
+ const radio = opt.querySelector('div > div > div');
229
+ radio.classList.add('hidden');
230
+ });
231
+
232
+ element.classList.add('border-blue-600', 'bg-blue-50');
233
+ element.querySelector('div > div > div').classList.remove('hidden');
234
+
235
+ // Update selected days
236
+ selectedDays = days;
237
+
238
+ // Update details display
239
+ document.getElementById('renewal-details').classList.toggle('hidden', days === 150);
240
+ document.getElementById('extended-details').classList.toggle('hidden', days !== 150);
241
+
242
+ // Show/hide end date container based on selection
243
+ document.getElementById('end-date-container').classList.toggle('opacity-0', days !== 150);
244
+ document.getElementById('end-date-container').classList.toggle('h-0', days !== 150);
245
+
246
+ // Update end date if start date is set
247
+ updateEndDate();
248
+ }
249
+
250
+ // Toggle dropdown
251
+ function toggleDropdown(id) {
252
+ const dropdown = document.getElementById(id);
253
+ dropdown.classList.toggle('dropdown-open');
254
+
255
+ // Close other dropdowns
256
+ const allDropdowns = document.querySelectorAll('.dropdown-content');
257
+ allDropdowns.forEach(dd => {
258
+ if (dd.id !== id) {
259
+ dd.classList.remove('dropdown-open');
260
+ }
261
+ });
262
+ }
263
+
264
+ // Close all dropdowns
265
+ function closeAllDropdowns() {
266
+ document.querySelectorAll('.dropdown-content').forEach(dd => {
267
+ dd.classList.remove('dropdown-open');
268
+ });
269
+ }
270
+
271
+ // Set renewals
272
+ function setRenewals(num, displayText) {
273
+ renewalPeriods = num;
274
+ document.getElementById('renewal-display').textContent = displayText;
275
+ closeAllDropdowns();
276
+ updateEndDate();
277
+ }
278
+
279
+ // Update end date based on start date and selected days
280
+ function updateEndDate() {
281
+ const startDateInput = document.getElementById('start-date');
282
+ if (!startDateInput.value) return;
283
+
284
+ const startDate = new Date(startDateInput.value);
285
+ const daysToAdd = selectedDays;
286
+
287
+ const endDate = new Date(startDate);
288
+ endDate.setDate(endDate.getDate() + daysToAdd);
289
+
290
+ const formattedEndDate = endDate.toISOString().split('T')[0];
291
+ document.getElementById('end-date').value = formattedEndDate;
292
+ }
293
+
294
+ // Save configuration
295
+ function saveConfiguration() {
296
+ const startDate = document.getElementById('start-date').value;
297
+ if (!startDate) {
298
+ alert('Please select a start date.');
299
+ return;
300
+ }
301
+
302
+ const config = {
303
+ days: selectedDays,
304
+ renewals: renewalPeriods,
305
+ startDate: startDate,
306
+ endDate: document.getElementById('end-date').value || 'N/A',
307
+ timestamp: new Date().toLocaleString()
308
+ };
309
+
310
+ savedConfigurations.push(config);
311
+
312
+ // Update progress tracker
313
+ const progressTracker = document.getElementById('progress-tracker');
314
+ const progressBar = document.getElementById('progress-bar');
315
+ const progressText = document.getElementById('progress-text');
316
+
317
+ progressTracker.classList.remove('opacity-0', 'h-0');
318
+
319
+ if (selectedDays === 150) {
320
+ progressBar.classList.remove('bg-green-500', 'bg-yellow-500');
321
+ progressBar.classList.add('bg-blue-500');
322
+ progressBar.style.width = '100%';
323
+
324
+ const endDate = new Date(config.endDate);
325
+ const options = { year: 'numeric', month: 'long', day: 'numeric' };
326
+
327
+ progressText.innerHTML = `Active <strong>150-day Section 122 tariff window</strong> until ${endDate.toLocaleDateString(undefined, options)}.`;
328
+ } else {
329
+ const totalDays = 37.5 * renewalPeriods;
330
+ const progressPercentage = Math.min(100, (1 / renewalPeriods) * 100);
331
+
332
+ progressBar.classList.remove('bg-blue-500', 'bg-green-500');
333
+ progressBar.classList.add('bg-yellow-500');
334
+ progressBar.style.width = `${progressPercentage}%`;
335
+
336
+ progressText.innerHTML = `Active standard tariff window (${renewalPeriods} renewals). Using first of ${renewalPeriods} periods (${37.5} days each).`;
337
+ }
338
+
339
+ // Show success message
340
+ alert('Configuration saved successfully!');
341
+
342
+ // For demo purposes, log saved configurations
343
+ console.log('Saved Configurations:', savedConfigurations);
344
+ }
345
+
346
+ // Update end date when start date changes
347
+ document.getElementById('start-date').addEventListener('change', function() {
348
+ updateEndDate();
349
+ });
350
+ </script>
351
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=privateuserh/fffund-containerarbitrage-db1mod" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
352
+ </html>
prompts.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ Keep the site working and add the following options Add an indicator and optional dropdown for a 150 day tariff window. All up to 3 renewal periods. Official Tarrifs window 37.5 Days Renewals periods 3 renewals option Tariffs window Expire 150 Days New Quote needed after 150 days. All quotes subject to any new renewal tariffs rate. Save selection and entry untill deleted. In the The 150-day period in tariffs regulations refers to a time limit on using certain trade laws. Specifically, Section 122 of the Trade Act of 1974 allows for the imposition of tariffs of up to 15% for a period of 150 days in response to a balance of payments deficit. This is a temporary measure to address trade imbalances before a longer-term process can be initiated. Detailed explanation: Section 122 of the Trade Act of 1974: This law allows the President to impose tariffs for up to 150 days to address a balance of payments deficit. 15% Tariff Limit: The tariffs imposed under Section 122 cannot exceed 15%. 150-Day Time Limit: The 150-day period is a crucial aspect of this law. It provides a limited window for addressing trade imbalances before a more comprehensive approach can be implemented. Temporary Measure: The 150-day period is intended to be a temporary measure to allow the administration time to consider other options, such as longer-term negotiations or other trade remedies. Why the 150-day limit? The 150-day limit is designed to encourage a swift response to trade issues while allowing for more thorough investigation and negotiation. It provides a temporary buffer Official Tarrifs window 37.5 Days Renewals periods 3 renewals option Tariffs window Expire 150 Days New Quote needed after 150 days. All quotes subject to any new renewal tariffs rate.