Spaces:
Sleeping
Sleeping
Update proxy/templates/index.html
Browse files- 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>
|