-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Page will now only load stuff depending on the url parameters
- Loading branch information
1 parent
6d13879
commit 705f8d6
Showing
5 changed files
with
85 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,3 @@ | ||
.center-text { | ||
text-align: center; | ||
} | ||
|
||
.blue-text { | ||
color: blue; | ||
text-align: center; | ||
} | ||
|
||
.bordered-box { | ||
border: 1px solid black; | ||
padding: 10px; | ||
margin: 10px; | ||
.hidden { | ||
display: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,23 @@ | ||
document.addEventListener("DOMContentLoaded", function() { | ||
function updateHeader() { | ||
function updateHeaders() { | ||
fetch("/update-header") | ||
.then(response => response.text()) | ||
.then(text => { | ||
document.getElementById("header-text").innerText = text; | ||
.then(originalText => { | ||
document.getElementById("header-text").innerText = "Detected: " + originalText; | ||
}); | ||
|
||
fetch("/update-translated-header") | ||
.then(response => response.text()) | ||
.then(translatedText => { | ||
document.getElementById("translated-header").innerText = "Translated: " + translatedText; | ||
}); | ||
|
||
fetch("/update-transcribed-header") | ||
.then(response => response.text()) | ||
.then(transcribedText => { | ||
document.getElementById("transcribed-header").innerText = "Transcribed: " + transcribedText; | ||
}); | ||
} | ||
|
||
setInterval(updateHeader, 100); // Update every 3 seconds (adjust as needed) | ||
setInterval(updateHeaders, 100); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters