diff --git a/.specstory/history/2026-01-21_20-35Z-justice-gov-blank-html-project.md b/.specstory/history/2026-01-21_20-35Z-justice-gov-blank-html-project.md index 00f323b..baa0047 100644 --- a/.specstory/history/2026-01-21_20-35Z-justice-gov-blank-html-project.md +++ b/.specstory/history/2026-01-21_20-35Z-justice-gov-blank-html-project.md @@ -582,3 +582,96 @@ put it to the right, actually --- +_**Agent (model default, mode Agent)**_ + + +Moving the upload button to the right: + + +--- + + + +
Tool use: **edit_file_v2** • Edit file: Assets/DOJ/index.html + +
+ +
+ +--- + + + +
Tool use: **edit_file_v2** • Edit file: Assets/DOJ/index.html + +
+ +
+ +--- + + +Moved the upload button to the right. It's now aligned to the right edge of the zip file container, positioned to the right of the zip file icon. + +--- + +_**User**_ + +good. let's make it so when the user clicks upload, it displays an quick uploading bar. + +--- + +_**Agent (model default, mode Agent)**_ + + +Adding a progress bar that appears when the upload button is clicked. + + +--- + + +
Tool use: **read_file_v2** • Read file: Assets/DOJ/index.html + +
+
+ +--- + + +Adding CSS for the progress bar, then JavaScript to handle the upload click: + + +--- + + + +
Tool use: **edit_file_v2** • Edit file: Assets/DOJ/index.html + +
+ +
+ +--- + + + +
Tool use: **edit_file_v2** • Edit file: Assets/DOJ/index.html + +
+ +
+ +--- + + +Added an upload progress bar that appears when the upload button is clicked. It: + +1. **Disables the button** and changes the text to "UPLOADING..." while uploading +2. **Shows a progress bar** below the button, aligned to the right +3. **Animates progress** from 0% to 100% with random increments to simulate upload +4. **Resets** after completion, hiding the progress bar and restoring the button + +The progress bar uses a blue gradient matching the upload button and displays the percentage as it fills. Click the upload button to see it in action. + +--- + diff --git a/Assets/DOJ/index.html b/Assets/DOJ/index.html index d4ce990..73fcac0 100644 --- a/Assets/DOJ/index.html +++ b/Assets/DOJ/index.html @@ -239,6 +239,46 @@ transform: translateY(1px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); } + + .upload-button:disabled { + opacity: 0.6; + cursor: not-allowed; + } + + .progress-container { + display: none; + width: 400px; + margin-top: 20px; + align-self: flex-end; + margin-right: calc(50% - 300px); + } + + .progress-container.show { + display: block; + } + + .progress-bar-wrapper { + width: 100%; + height: 30px; + background-color: #e0e0e0; + border-radius: 15px; + overflow: hidden; + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); + } + + .progress-bar { + height: 100%; + background: linear-gradient(90deg, #0066cc 0%, #0052a3 100%); + width: 0%; + transition: width 0.3s ease; + border-radius: 15px; + display: flex; + align-items: center; + justify-content: center; + color: white; + font-weight: bold; + font-size: 14px; + } @@ -292,8 +332,52 @@
EpsteinFiles.zip
- + +
+
+
+
+
+ + \ No newline at end of file