fist commit
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
|||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
ARG GAME_URL
|
||||||
|
ARG GAME_ARGS
|
||||||
|
|
||||||
|
WORKDIR site
|
||||||
|
RUN wget https://js-dos.com/6.22/current/js-dos.js && \
|
||||||
|
wget https://js-dos.com/6.22/current/wdosbox.js && \
|
||||||
|
wget https://js-dos.com/6.22/current/wdosbox.wasm.js && \
|
||||||
|
wget -O game.zip "$GAME_URL"
|
||||||
|
|
||||||
|
RUN apk add darkhttpd
|
||||||
|
|
||||||
|
COPY index.html bg.jpg ./
|
||||||
|
RUN sed -i s/GAME_ARGS/$GAME_ARGS/ index.html
|
||||||
|
|
||||||
|
ENTRYPOINT ["/usr/bin/darkhttpd", "/site", "--port", "8000"]
|
||||||
+29
@@ -0,0 +1,29 @@
|
|||||||
|
<html>
|
||||||
|
<style type="text/css" media="screen">
|
||||||
|
canvas {
|
||||||
|
width: 800px;
|
||||||
|
height: 600px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<head>
|
||||||
|
<title>Number Munchers Online</title>
|
||||||
|
<script src="js-dos.js"></script>
|
||||||
|
</head>
|
||||||
|
<body background="bg.jpg" text="white">
|
||||||
|
<canvas id="jsdos" width="800" height="600" ></canvas>
|
||||||
|
<script>
|
||||||
|
Dos(document.getElementById("jsdos"), {
|
||||||
|
}).ready((fs, main) => {
|
||||||
|
fs.extract("game.zip").then(() => {
|
||||||
|
main(["-c", GAME_ARGS])
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<br><br><br><br><br>
|
||||||
|
<center><form>
|
||||||
|
<input type="button" value="Go back!" onclick="history.back()">
|
||||||
|
</form></center>
|
||||||
|
<h3>Number Munchers</h3>
|
||||||
|
<p>Learn basic math skills with Number Munchers. Keep your Muncher away from the Troggles by munching on multiples, factors, prime numbers, equalities, and inequalities. If you can stay away from the Troggles and earn enough points, you'll be part of the Muncher Hall of Fame.</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Binary file not shown.
Reference in New Issue
Block a user