Juna190825 commited on
Commit
f6af6e7
·
verified ·
1 Parent(s): 5b2432b

Update proxy/templates/index.html

Browse files
Files changed (1) hide show
  1. proxy/templates/index.html +10 -0
proxy/templates/index.html CHANGED
@@ -30,6 +30,9 @@
30
  </head>
31
  <body>
32
  <h1>ConlluEditor Online</h1>
 
 
 
33
 
34
  <!-- Drag-and-drop upload panel -->
35
  <div id="dropzone">
@@ -149,6 +152,13 @@
149
 
150
  // Initial load
151
  refreshFileList();
 
 
 
 
 
 
 
152
  </script>
153
  </body>
154
  </html>
 
30
  </head>
31
  <body>
32
  <h1>ConlluEditor Online</h1>
33
+ <button id="debugBtn">Debug</button>
34
+ <pre id="debugOutput" style="white-space: pre-wrap; background:#f7f7f7; padding:1rem; border:1px solid #ccc; margin-top:1rem;"></pre>
35
+
36
 
37
  <!-- Drag-and-drop upload panel -->
38
  <div id="dropzone">
 
152
 
153
  // Initial load
154
  refreshFileList();
155
+
156
+ document.getElementById("debugBtn").addEventListener("click", async () => {
157
+ const res = await fetch("/api/debug");
158
+ const text = await res.text();
159
+ document.getElementById("debugOutput").textContent = text;
160
+ });
161
+
162
  </script>
163
  </body>
164
  </html>