From 5a5bae2e929fd37751476f4a7aa8ac1b7555d78f Mon Sep 17 00:00:00 2001 From: Jonas Hinterdorfer Date: Mon, 17 Mar 2025 13:13:08 +0100 Subject: [PATCH] implemend a simple webeditor for prolog --- Dockerfile | 15 ++ index.html | 534 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 549 insertions(+) create mode 100644 Dockerfile create mode 100644 index.html diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e8abed3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +# Use an official Nginx image as the base image +FROM nginx:alpine + +# Set the working directory inside the container +WORKDIR /usr/share/nginx/html + +# Copy the index.html and adventure.pl files into the Nginx directory +COPY index.html /usr/share/nginx/html/ + +# Expose port 80 to allow access to the web server +EXPOSE 80 + +# Start the Nginx server +CMD ["nginx", "-g", "daemon off;"] + diff --git a/index.html b/index.html new file mode 100644 index 0000000..4dd0021 --- /dev/null +++ b/index.html @@ -0,0 +1,534 @@ + + + + + + Prolog Editor and Console + + + + + + + + + + + + + +
+

Prolog Editor and Console

+
+ +
+ +
+

Editor

+ +
+ + + + + +
+ + +
+ + +
+

Console

+ +
Ready to load Prolog program
+ +
+ + +
+ +
Welcome to the Prolog Console! +System initialized and ready. +
+ +
+ ?- + +
+
+
+ + + +