coyotte508 commited on
Commit
0fe50fd
·
1 Parent(s): 831a83f
Files changed (1) hide show
  1. app.js +8 -8
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
- const spaceName = window.document.querySelector("#space-name");
5
- const buildCommand = window.document.querySelector("#build-command");
6
- const hfToken = window.document.querySelector("#hf-token");
7
- const outputPath = window.document.querySelector("#output-path");
 
8
 
9
- const output = window.document.querySelector("#output");
10
- const logOuput = window.document.querySelector("#log-output");
11
- const eventOutput = window.document.querySelector("#event-output");
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 = "";