Spaces:
Running
Running
Update index.html
Browse files- index.html +3 -4
index.html
CHANGED
|
@@ -132,7 +132,6 @@
|
|
| 132 |
document.getElementById('output').classList.remove('hidden');
|
| 133 |
});
|
| 134 |
|
| 135 |
-
// Facet Explorer JavaScript
|
| 136 |
$(document).ready(function() {
|
| 137 |
let isResultShown = false;
|
| 138 |
let facetData = [];
|
|
@@ -151,8 +150,8 @@
|
|
| 151 |
const $dynamicBoxes = $('#dynamicBoxes').empty();
|
| 152 |
facetArray.forEach((facetObj, index) => {
|
| 153 |
const [key, values] = Object.entries(facetObj)[0];
|
| 154 |
-
const $box = $('<div>').addClass('bg-white rounded-lg shadow-md p-
|
| 155 |
-
const $title = $('<div>').addClass('flex items-center justify-between mb-
|
| 156 |
.append($('<h2>').addClass('text-xl font-semibold').text(key))
|
| 157 |
.append($('<input>').attr({
|
| 158 |
type: 'checkbox',
|
|
@@ -160,7 +159,7 @@
|
|
| 160 |
'data-index': index,
|
| 161 |
class: 'form-checkbox h-5 w-5 text-blue-600'
|
| 162 |
}));
|
| 163 |
-
const $content = $('<div>').addClass('space-y-
|
| 164 |
values.forEach(value => {
|
| 165 |
$content.append($('<p>').addClass('text-gray-600').text(value));
|
| 166 |
});
|
|
|
|
| 132 |
document.getElementById('output').classList.remove('hidden');
|
| 133 |
});
|
| 134 |
|
|
|
|
| 135 |
$(document).ready(function() {
|
| 136 |
let isResultShown = false;
|
| 137 |
let facetData = [];
|
|
|
|
| 150 |
const $dynamicBoxes = $('#dynamicBoxes').empty();
|
| 151 |
facetArray.forEach((facetObj, index) => {
|
| 152 |
const [key, values] = Object.entries(facetObj)[0];
|
| 153 |
+
const $box = $('<div>').addClass('bg-white rounded-lg shadow-md p-6 fade-in');
|
| 154 |
+
const $title = $('<div>').addClass('flex items-center justify-between mb-4')
|
| 155 |
.append($('<h2>').addClass('text-xl font-semibold').text(key))
|
| 156 |
.append($('<input>').attr({
|
| 157 |
type: 'checkbox',
|
|
|
|
| 159 |
'data-index': index,
|
| 160 |
class: 'form-checkbox h-5 w-5 text-blue-600'
|
| 161 |
}));
|
| 162 |
+
const $content = $('<div>').addClass('space-y-2');
|
| 163 |
values.forEach(value => {
|
| 164 |
$content.append($('<p>').addClass('text-gray-600').text(value));
|
| 165 |
});
|