Spaces:
Running
Running
coyotte508
commited on
Commit
·
0fe50fd
1
Parent(s):
831a83f
fix js?
Browse files
app.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
| 1 |
// On loaded, add event listeners
|
| 2 |
window.document.addEventListener("DOMContentLoaded", () => {
|
| 3 |
const form = window.document.querySelector("form");
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
|
|
|
| 8 |
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
|
| 13 |
-
form.addEventListener("submit", async (event) => {
|
| 14 |
event.preventDefault();
|
| 15 |
|
| 16 |
output.textContent = "";
|
|
|
|
| 1 |
// On loaded, add event listeners
|
| 2 |
window.document.addEventListener("DOMContentLoaded", () => {
|
| 3 |
const form = window.document.querySelector("form");
|
| 4 |
+
form.addEventListener("submit", async (event) => {
|
| 5 |
+
const spaceName = window.document.querySelector("#space-name");
|
| 6 |
+
const buildCommand = window.document.querySelector("#build-command");
|
| 7 |
+
const hfToken = window.document.querySelector("#hf-token");
|
| 8 |
+
const outputPath = window.document.querySelector("#output-path");
|
| 9 |
|
| 10 |
+
const output = window.document.querySelector("#output");
|
| 11 |
+
const logOuput = window.document.querySelector("#log-output");
|
| 12 |
+
const eventOutput = window.document.querySelector("#event-output");
|
| 13 |
|
|
|
|
| 14 |
event.preventDefault();
|
| 15 |
|
| 16 |
output.textContent = "";
|