From e3d655793f9162d702aaf0a1e596176ac9a42ccf Mon Sep 17 00:00:00 2001 From: Thomas Renger Date: Tue, 10 Jan 2023 14:04:52 +0100 Subject: [PATCH] Move istschonwiedervollmond.de source here. --- .dockerignore | 2 + Dockerfile | 2 + wwwroot/favicon.ico | Bin 0 -> 1406 bytes wwwroot/index.php | 120 ++++++++++++++++++++++++++++++++++++++++++++ wwwroot/mond.css | 55 ++++++++++++++++++++ 5 files changed, 179 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile create mode 100644 wwwroot/favicon.ico create mode 100644 wwwroot/index.php create mode 100644 wwwroot/mond.css diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..9b63d53 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +LICENSE +README.md \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..954ee80 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,2 @@ +FROM php:7-apache +COPY wwwroot /var/www/html \ No newline at end of file diff --git a/wwwroot/favicon.ico b/wwwroot/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..41ec4dcad623b2b3f159181c332e193c97e30b7b GIT binary patch literal 1406 zcmeH@%}Z2a6vls(O=>pIWciVm`87I?Q)8xT~%W-sidJeeXRlxb*S)(3-;=HxvN@ zMI*`;JO97l>8q#`R}#t(WfQMAhR2h{m!G7xBt1ko+qcA%w%zgU9{JgNRpezdU_yJ3w5BRcj#Omr1iNrB$ zYr^`v@cr8{8yiA0Dg4?Jwv_E{A)OX789_vJ)+=4zz~#LGW6VFptFJj5s5jTn20Sz` zJ$F^$_6NOnPu+J+MeFNV5iogKt@d%|QK7x#{u9V?yeYPQW4#t*ZYq!O>9V29PF4De zqHK5(a@IcEx0Jy1XO6#Nds7PeVfB%=>kmwIZJ_+N?z@HlYwpPe1zETP&1H7)i7K_* PIr}tlo%2mj!v)J + + + + 2) { + $jahr = $c - 4716; +} +else { + $jahr = $c - 4715; +} + +$datum = mktime($stunde,$minute,$sekunde,$monat,$tag,$jahr); + +/* +echo "Naechster Vollmond (".$phase.") ".$tag; +echo "\n\n"; +echo $tag_temp." ".$datum." ".date('j.n.Y, H:i', $datum)." ".time(); +echo "\n\n"; +echo $stunde." ".$minute." ".$sekunde." ".$monat." ".$tag." ".$jahr; +echo "\n\n"; +echo abs($datum-time()); +echo "\n\n"; +*/ +$vollmond=(abs($datum-time())<43200); +?> +Ist schon wieder Vollmond? - <?php echo($vollmond?"Ja":"Nein"); ?> + + + + + + + +

Ist schon wieder Vollmond?

+
+ +
+

Ja!

+
+ +
+

Nein

+

Einfach nur so #allebekloppt.

+
+ + + + diff --git a/wwwroot/mond.css b/wwwroot/mond.css new file mode 100644 index 0000000..c009e72 --- /dev/null +++ b/wwwroot/mond.css @@ -0,0 +1,55 @@ + +body, input, textarea, select, option { +font-family: Futura, Futura-Medium, "Futura Medium", "Century Gothic", CenturyGothic, "Apple Gothic", AppleGothic, "URW Gothic L", "Avant Garde", sans-serif; +color: #000; +} + +body { +background: #eaeaec; +} + +a { +color: #c40000; +} + +a:link, a:visited { +text-decoration: none; +} + +a:link:hover, +a:visited:hover { +text-decoration: underline; +} + +a img{ +border: 0; +} + +.main { +text-align: center; +min-height: 350px; +} + +.answer { +padding-top: 15%; +font-size: 7em; +} + +.yes { +color: #00cf00; +} + +.no { +color: #ff0000; +line-height: 0; +} + +.footer { +position: fixed; +bottom: 0; +width: 100%; +font-size: 0.7em; +color: #c0c0c0; +text-align: center; +background: #eaeaec; +}