From 3204a76983042e987d3e487b07657b6f2b32ae06 Mon Sep 17 00:00:00 2001 From: "Felix W. Dekker" Date: Sat, 14 Mar 2020 12:58:33 +0100 Subject: [PATCH] Add version number and best practices --- .editorconfig | 11 ++ README.md | 11 ++ index.html | 424 +++++++++++++++++++++++++------------------------- 3 files changed, 235 insertions(+), 211 deletions(-) create mode 100644 .editorconfig create mode 100644 README.md diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..fd1294f --- /dev/null +++ b/.editorconfig @@ -0,0 +1,11 @@ +root = true + +[*] +charset = utf-8 +trim_trailing_whitespace = true + +end_of_line = lf +insert_final_newline = true + +indent_style = space +indent_size = 4 diff --git a/README.md b/README.md new file mode 100644 index 0000000..c1fcfeb --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +# Random _Fallout 76_ records +Allows a user to retrieve a random record from the _Fallout 76_ game files. +The user can filter records by data type to avoid receiving uninteresting data types. + +The back end, `api.php`, communicates with an SQLite database, `fo76-dumps-ids.db`, containing only the `IDS.csv` dump +from [the _Fallout 76_ data dumps repository](https://github.com/FWDekker/fo76-dumps/). +The database is not included in this repository. + +The front end, `index.html`, sends asynchronous queries to the back end based on the user's settings. +Selected data types are stored in a cookie so the user doesn't have to redo their settings each time the page is +refreshed. diff --git a/index.html b/index.html index 24f3026..9f83b9a 100644 --- a/index.html +++ b/index.html @@ -10,247 +10,249 @@ Random Fallout 76 record - - - - + -
- -
-
-

Random Fallout 76 record

-

- On this page you can retrieve a random record from the Fallout 76 game files. - Simply select the signatures you want to include below, and then press the "Get random record" - button. -

-
-
+
+ +
+
+

Random Fallout 76 record

+ +

+ On this page you can retrieve a random record from the Fallout 76 game files. + Simply select the signatures you want to include below, and then press the "Get random record" + button. +

+
+
- + +
+

Settings

+
+ +
Loading... please wait.
+ + +
+
+ + + +
+

Record

+
+
+ + + +
-

Settings

-
- -
Loading... please wait.
+ Made by Felix W. Dekker. + Licensed under the + MIT License. + Source code available on git. - -
+
v1.0.6
+
+
+ + + + - - + }); +