Spaces:
Running
Running
bugfix
Browse files- index.html +46 -9
index.html
CHANGED
|
@@ -41,30 +41,53 @@
|
|
| 41 |
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
| 42 |
}
|
| 43 |
.metadata-item {
|
| 44 |
-
margin-bottom:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
}
|
| 46 |
.metadata-key {
|
| 47 |
font-weight: bold;
|
| 48 |
margin-right: 8px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
}
|
| 50 |
.metadata-value {
|
| 51 |
word-break: break-word;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
}
|
| 53 |
.metadata-list {
|
| 54 |
-
margin: 5px 0 0
|
| 55 |
padding-left: 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
}
|
| 57 |
.metadata-header {
|
| 58 |
display: flex;
|
| 59 |
justify-content: space-between;
|
| 60 |
align-items: center;
|
| 61 |
-
margin-bottom:
|
| 62 |
border-bottom: 1px solid #e0e0e0;
|
| 63 |
-
padding-bottom:
|
| 64 |
}
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
margin-top: 20px;
|
| 68 |
}
|
| 69 |
#contentContainer {
|
| 70 |
padding-top: 10px;
|
|
@@ -333,8 +356,17 @@
|
|
| 333 |
activeTab = '';
|
| 334 |
originalFileName = '';
|
| 335 |
document.getElementById('fileInput').value = '';
|
| 336 |
-
|
| 337 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 338 |
}
|
| 339 |
|
| 340 |
function getVariantIds() {
|
|
@@ -410,15 +442,20 @@
|
|
| 410 |
|
| 411 |
// Initialize toggle functionality
|
| 412 |
const toggleBtn = document.getElementById('toggleMetadata');
|
|
|
|
| 413 |
toggleBtn.onclick = toggleMetadataVisibility;
|
| 414 |
}
|
| 415 |
|
| 416 |
function toggleMetadataVisibility() {
|
| 417 |
const content = document.getElementById('metadataContent');
|
|
|
|
|
|
|
| 418 |
if (content.style.display === 'none') {
|
| 419 |
content.style.display = 'block';
|
|
|
|
| 420 |
} else {
|
| 421 |
content.style.display = 'none';
|
|
|
|
| 422 |
}
|
| 423 |
}
|
| 424 |
|
|
|
|
| 41 |
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
| 42 |
}
|
| 43 |
.metadata-item {
|
| 44 |
+
margin-bottom: 15px;
|
| 45 |
+
padding-bottom: 15px;
|
| 46 |
+
border-bottom: 1px solid #f0f0f0;
|
| 47 |
+
}
|
| 48 |
+
.metadata-item:last-child {
|
| 49 |
+
border-bottom: none;
|
| 50 |
+
margin-bottom: 0;
|
| 51 |
+
padding-bottom: 0;
|
| 52 |
}
|
| 53 |
.metadata-key {
|
| 54 |
font-weight: bold;
|
| 55 |
margin-right: 8px;
|
| 56 |
+
color: #2196F3;
|
| 57 |
+
display: block;
|
| 58 |
+
margin-bottom: 5px;
|
| 59 |
+
font-size: 14px;
|
| 60 |
+
text-transform: uppercase;
|
| 61 |
}
|
| 62 |
.metadata-value {
|
| 63 |
word-break: break-word;
|
| 64 |
+
display: block;
|
| 65 |
+
padding: 5px;
|
| 66 |
+
background: #f9f9f9;
|
| 67 |
+
border-radius: 4px;
|
| 68 |
}
|
| 69 |
.metadata-list {
|
| 70 |
+
margin: 5px 0 0 0;
|
| 71 |
padding-left: 0;
|
| 72 |
+
list-style-type: none;
|
| 73 |
+
}
|
| 74 |
+
.metadata-list li {
|
| 75 |
+
margin-bottom: 6px;
|
| 76 |
+
padding: 5px 10px;
|
| 77 |
+
background: #f5f5f5;
|
| 78 |
+
border-radius: 4px;
|
| 79 |
+
border-left: 3px solid #2196F3;
|
| 80 |
}
|
| 81 |
.metadata-header {
|
| 82 |
display: flex;
|
| 83 |
justify-content: space-between;
|
| 84 |
align-items: center;
|
| 85 |
+
margin-bottom: 15px;
|
| 86 |
border-bottom: 1px solid #e0e0e0;
|
| 87 |
+
padding-bottom: 10px;
|
| 88 |
}
|
| 89 |
+
.metadata-content {
|
| 90 |
+
padding: 5px;
|
|
|
|
| 91 |
}
|
| 92 |
#contentContainer {
|
| 93 |
padding-top: 10px;
|
|
|
|
| 356 |
activeTab = '';
|
| 357 |
originalFileName = '';
|
| 358 |
document.getElementById('fileInput').value = '';
|
| 359 |
+
|
| 360 |
+
// Clear UI elements properly
|
| 361 |
+
const metadataContainer = document.getElementById('metadataContainer');
|
| 362 |
+
const metadataContent = document.getElementById('metadataContent');
|
| 363 |
+
const tabContainer = document.getElementById('tabContainer');
|
| 364 |
+
const contentContainer = document.getElementById('contentContainer');
|
| 365 |
+
|
| 366 |
+
if (metadataContainer) metadataContainer.style.display = 'none';
|
| 367 |
+
if (metadataContent) metadataContent.innerHTML = '';
|
| 368 |
+
if (tabContainer) tabContainer.innerHTML = '';
|
| 369 |
+
if (contentContainer) contentContainer.innerHTML = '';
|
| 370 |
}
|
| 371 |
|
| 372 |
function getVariantIds() {
|
|
|
|
| 442 |
|
| 443 |
// Initialize toggle functionality
|
| 444 |
const toggleBtn = document.getElementById('toggleMetadata');
|
| 445 |
+
toggleBtn.textContent = 'Hide';
|
| 446 |
toggleBtn.onclick = toggleMetadataVisibility;
|
| 447 |
}
|
| 448 |
|
| 449 |
function toggleMetadataVisibility() {
|
| 450 |
const content = document.getElementById('metadataContent');
|
| 451 |
+
const toggleBtn = document.getElementById('toggleMetadata');
|
| 452 |
+
|
| 453 |
if (content.style.display === 'none') {
|
| 454 |
content.style.display = 'block';
|
| 455 |
+
toggleBtn.textContent = 'Hide';
|
| 456 |
} else {
|
| 457 |
content.style.display = 'none';
|
| 458 |
+
toggleBtn.textContent = 'Show';
|
| 459 |
}
|
| 460 |
}
|
| 461 |
|