commit ef26eab330a8b93e9aa601a38938528812a8cc68 Author: Tristan Schneider Date: Thu May 7 22:27:26 2020 +0200 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5fb8549 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/data/ +.htaccess* diff --git a/OWE_Logo.png b/OWE_Logo.png new file mode 100644 index 0000000..f15addf Binary files /dev/null and b/OWE_Logo.png differ diff --git a/archiv.php b/archiv.php new file mode 100644 index 0000000..9bf7ea3 --- /dev/null +++ b/archiv.php @@ -0,0 +1,19 @@ + + + OWE Archiv + + + + +

One Word Each Archiv

+

Startseite

+

+ +

+ + diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..33ef44b Binary files /dev/null and b/favicon.ico differ diff --git a/index.php b/index.php new file mode 100644 index 0000000..c101255 --- /dev/null +++ b/index.php @@ -0,0 +1,151 @@ +> 3) % 51))."%, "; + $css .= (50 + (($number >> 5) % 51))."%);"; + + return $css; +} + +//header("refresh: 28"); +header("Cache-Control: no-cache, no-store, must-revalidate"); + +if (array_key_exists("submitted", $_REQUEST)) { + $word = urldecode($_REQUEST["submitted"]); + //print("Jemand schreibt ".$word."
"); + $sentences = fopen("./data/sentences.txt", "a") or die("unable to open sentences file"); + $content = ""; + + $ends_of_sentence = ['.', '!', '?']; + if (preg_match("/\p{L}/", $word[0])) { // check if first character is letter (including ä, ê, ß stuff) + $content .= " "; + } + $content .= htmlentities($word); + + $content .= ""; + + if (in_array($word[-1], $ends_of_sentence)) { + $content .= "
\n"; + } + + fwrite($sentences, $content); + fclose($sentences); + header("location: ".htmlentities($_SERVER['PHP_SELF'])); +} + +?> + + + + One Word Each + + + + + + + + + +

One Word Each Seite

+ +

+ Archiveintrag 30. März 2020
+ Archiveintrag 31. März bis 9. April 2020
+ Archiveintrag 9. bis 28. April 2020 +

+ +

+ +

+ +

+ +
+ + +
Nächstes Wort:
+ + + + + diff --git a/service-worker.js b/service-worker.js new file mode 100644 index 0000000..13b4335 --- /dev/null +++ b/service-worker.js @@ -0,0 +1,4 @@ + +self.addEventListener('install', function(event) {}); + +self.addEventListener('activate', function(event) {}); diff --git a/style.css b/style.css new file mode 100644 index 0000000..93b0b2b --- /dev/null +++ b/style.css @@ -0,0 +1,24 @@ +body, input, button { + width: auto; + font-size: xx-large; + background-color: black; + color: white; + font-family: "Courier New", Courier, monospace; +} + +input, button { + border: 2px solid white; + padding: 0px 5px 0px; +} + +a { + color: royalblue; +} + +.sentences { + color: black; +} + +table { + font-size: inherit; +}