Spaces:
Running
Running
Update index.html
Browse files- index.html +11 -10
index.html
CHANGED
|
@@ -48,23 +48,24 @@
|
|
| 48 |
<div class="container mx-auto px-4 py-12 flex">
|
| 49 |
<!-- Sidebar Content -->
|
| 50 |
<div class="box-format w-1/4 sticky-sidebar bg-white rounded-lg shadow-md p-6 min-h-screen">
|
| 51 |
-
<h1 class="text-2xl font-bold mb-6 text-center">
|
| 52 |
|
| 53 |
-
<!-- Input for API
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
<div class="mb-4">
|
| 55 |
<button type="button" class="btn btn-info mt-2 w-full flex items-center justify-center" onclick="fetchSuggestion()">
|
| 56 |
<svg class="w-5 h-5 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
| 57 |
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 21a2 2 0 01-2-2V5a2 2 0 012-2h6a2 2 0 012 2v14a2 2 0 01-2 2h-6z"></path>
|
| 58 |
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 14a2 2 0 100-4 2 2 0 000 4z"></path>
|
| 59 |
</svg>
|
| 60 |
-
|
| 61 |
</button>
|
| 62 |
</div>
|
| 63 |
|
| 64 |
-
|
| 65 |
-
<div class="mb-4">
|
| 66 |
-
<input type="password" id="apiKeyInput" class="form-control border border-gray-300 p-2 rounded-md w-full" placeholder="Enter your API key" />
|
| 67 |
-
</div>
|
| 68 |
|
| 69 |
<!-- Loading Indicator -->
|
| 70 |
<div id="loadingIndicator" class="mb-4 hidden">
|
|
@@ -84,8 +85,8 @@
|
|
| 84 |
</div>
|
| 85 |
</div>
|
| 86 |
<div class="flex justify-between space-x-4">
|
| 87 |
-
<button type="button" class="btn btn-primary" onclick="addInput()">Add
|
| 88 |
-
<button type="submit" class="btn btn-success">
|
| 89 |
<button type="button" class="btn btn-secondary" onclick="resetForm()">Reset</button>
|
| 90 |
</div>
|
| 91 |
</form>
|
|
@@ -145,7 +146,7 @@
|
|
| 145 |
|
| 146 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
| 147 |
<script>
|
| 148 |
-
$(document).ready(function() {
|
| 149 |
let isResultShown = false;
|
| 150 |
let facetData = [];
|
| 151 |
$('#submit').click(function() {
|
|
|
|
| 48 |
<div class="container mx-auto px-4 py-12 flex">
|
| 49 |
<!-- Sidebar Content -->
|
| 50 |
<div class="box-format w-1/4 sticky-sidebar bg-white rounded-lg shadow-md p-6 min-h-screen">
|
| 51 |
+
<h1 class="text-2xl font-bold mb-6 text-center">Output Generator 2</h1>
|
| 52 |
|
| 53 |
+
<!-- Input for API key -->
|
| 54 |
+
<div class="mb-4">
|
| 55 |
+
<input type="password" id="apiKeyInput" class="form-control border border-gray-300 p-2 rounded-md w-full" placeholder="Enter your API key" />
|
| 56 |
+
</div>
|
| 57 |
+
<!-- Suggestions -->
|
| 58 |
<div class="mb-4">
|
| 59 |
<button type="button" class="btn btn-info mt-2 w-full flex items-center justify-center" onclick="fetchSuggestion()">
|
| 60 |
<svg class="w-5 h-5 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
| 61 |
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 21a2 2 0 01-2-2V5a2 2 0 012-2h6a2 2 0 012 2v14a2 2 0 01-2 2h-6z"></path>
|
| 62 |
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 14a2 2 0 100-4 2 2 0 000 4z"></path>
|
| 63 |
</svg>
|
| 64 |
+
Find Facets
|
| 65 |
</button>
|
| 66 |
</div>
|
| 67 |
|
| 68 |
+
|
|
|
|
|
|
|
|
|
|
| 69 |
|
| 70 |
<!-- Loading Indicator -->
|
| 71 |
<div id="loadingIndicator" class="mb-4 hidden">
|
|
|
|
| 85 |
</div>
|
| 86 |
</div>
|
| 87 |
<div class="flex justify-between space-x-4">
|
| 88 |
+
<button type="button" class="btn btn-primary" onclick="addInput()">Add Facets</button>
|
| 89 |
+
<button type="submit" class="btn btn-success">Facet List</button>
|
| 90 |
<button type="button" class="btn btn-secondary" onclick="resetForm()">Reset</button>
|
| 91 |
</div>
|
| 92 |
</form>
|
|
|
|
| 146 |
|
| 147 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
| 148 |
<script>
|
| 149 |
+
$(document).ready(function() {
|
| 150 |
let isResultShown = false;
|
| 151 |
let facetData = [];
|
| 152 |
$('#submit').click(function() {
|