From a7a1a67c0b132ea2a1349b01ddf41716661ab326 Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Thu, 7 Nov 2024 12:29:04 +0100 Subject: UI tweaks --- public/index.php | 136 ++++++++++++++++++++++++++++++++----------------------- 1 file changed, 79 insertions(+), 57 deletions(-) (limited to 'public/index.php') diff --git a/public/index.php b/public/index.php index dc421b9..1fb9479 100644 --- a/public/index.php +++ b/public/index.php @@ -47,6 +47,10 @@ if (isset($_POST["code"]) && strlen($_POST["code"]) <= 16383) { if (is_string($resultStr)) { $result = json_decode($resultStr, true); } + + header("Content-Type: application/json"); + echo json_encode($result); + exit; } ?> @@ -59,77 +63,95 @@ if (isset($_POST["code"]) && strlen($_POST["code"]) <= 16383) { + +

☕️ Java Compiler

Powered by Eclipse Temurin


- -
- Compilation:
-
- Status: "green", - default => "red", - } ?>"> "Successful", - "124" => "Compilation timed out", - default => "Failed (Status " . $result["compile"]["status"] . ")", - } ?>
- - Output:
-
- - - Error output:
-
- -
-
- Execution:
- -
- Status: "green", - default => "red", - } ?>"> "Successful", - "124" => "Execution timed out", - default => "Failed (Status " . $result["run"]["status"] . ")", - } ?>
- - Output:
-
- - - Error output:
-
- -
- - Did not execute - -
- Runner ID:
-
+ -- cgit v1.2.3