Spaces:
Runtime error
Runtime error
Update templates/index.html
Browse files- templates/index.html +4 -3
templates/index.html
CHANGED
|
@@ -128,8 +128,8 @@
|
|
| 128 |
<h1>Visiting Card Data Extractor</h1>
|
| 129 |
|
| 130 |
<div class="tab">
|
| 131 |
-
<button class="tablinks" onclick="openLink('https://webashalarforml-imagedataextractor2.hf.space/')">Visiting Card Data Extractor</button>
|
| 132 |
-
<button class="tablinks
|
| 133 |
</div>
|
| 134 |
|
| 135 |
<div class="file-upload-section">
|
|
@@ -168,6 +168,7 @@
|
|
| 168 |
// Loader functionality
|
| 169 |
document.getElementById('fileUploadForm').onsubmit = function () {
|
| 170 |
document.getElementById('loader').style.display = 'block';
|
|
|
|
| 171 |
};
|
| 172 |
|
| 173 |
// Flash message auto-hide
|
|
@@ -182,7 +183,7 @@
|
|
| 182 |
|
| 183 |
// Function to open links
|
| 184 |
function openLink(url, element) {
|
| 185 |
-
window.open(url
|
| 186 |
|
| 187 |
// Remove "active" class from all buttons
|
| 188 |
const buttons = document.querySelectorAll('.tab button');
|
|
|
|
| 128 |
<h1>Visiting Card Data Extractor</h1>
|
| 129 |
|
| 130 |
<div class="tab">
|
| 131 |
+
<button class="tablinks active" onclick="openLink('https://webashalarforml-imagedataextractor2.hf.space/')">Visiting Card Data Extractor</button>
|
| 132 |
+
<button class="tablinks" onclick="openLink('https://webashalarforml-resumeextractor2.hf.space/')">Resume Data Extractor</button>
|
| 133 |
</div>
|
| 134 |
|
| 135 |
<div class="file-upload-section">
|
|
|
|
| 168 |
// Loader functionality
|
| 169 |
document.getElementById('fileUploadForm').onsubmit = function () {
|
| 170 |
document.getElementById('loader').style.display = 'block';
|
| 171 |
+
document.getElementById('tablinks').style.display =
|
| 172 |
};
|
| 173 |
|
| 174 |
// Flash message auto-hide
|
|
|
|
| 183 |
|
| 184 |
// Function to open links
|
| 185 |
function openLink(url, element) {
|
| 186 |
+
window.open(url); // Opens the link in a new tab
|
| 187 |
|
| 188 |
// Remove "active" class from all buttons
|
| 189 |
const buttons = document.querySelectorAll('.tab button');
|