Added warning about starting from disk location

This commit is contained in:
erew123 authored and GitHub committed 2024-01-15 11:36:29 +00:00
1 parent c78927b80a
commit 08a04ba506
1 file changed
+8 -7
@@ -6,7 +6,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="./favicon.ico" type="image/x-icon">
<title>AllTalk TTS Generator</title>
<style>
body,
textarea,
@@ -679,9 +678,9 @@
progressText.textContent = ''; // Reset progress text
}
}
}
}
window.exportMP3 = exportMP3;
window.exportMP3 = exportMP3;
@@ -1556,9 +1555,9 @@ window.exportMP3 = exportMP3;
};
input.click();
}
}
function updatePaginationControls() {
function updatePaginationControls() {
const lastPage = Math.ceil(ttsList.length / itemsPerPage);
const pageIndicator = document.getElementById('pageIndicator');
if (pageIndicator) {
@@ -1577,7 +1576,7 @@ function updatePaginationControls() {
// Similar updates for any additional pagination controls if you have them
// ...
}
}
@@ -1985,9 +1984,11 @@ function updatePaginationControls() {
window.onload = function () {
setupPage();
hideProgress(); // Ensure the progress indicator is hidden on page load
if (window.location.protocol !== 'http:' && window.location.protocol !== 'https:') {
alert('AllTalk TTS Generator is not designed to be run from your disk folder. Please run it from the correct URL e.g. http://127.0.0.1:7851/static/tts_chunk_player/tts_chunk_player.html');
}
};
</script>
</body>