From a791bca1225bd6d9db2810aba3ce5ce687641755 Mon Sep 17 00:00:00 2001 From: "@jehovahsays" Date: Fri, 28 Jun 2024 01:24:54 -0400 Subject: [PATCH] faster page loading speeds For full experience visit home http://morgansbyers.scienceontheweb.net/index.html --- README.md | 5 +- action.php | 94 +--- browser.html | 664 ++++++++++++++++++++++++ css/edit.css | 52 -- css/style.css | 128 ----- delete.php | 30 -- en/about.html | 1 + en/cookies.html | 1 + en/home.html | 1 + en/playlist.html | 32 -- en/privacy.html | 1 + en/site_map.html | 1 + en/terms.html | 1 + en/tv.html | 33 -- en/txt/edit.html | 24 - en/txt/playlist.txt | 2 - en/txt/tv.txt | 2 - files/Inter-Regular.woff2 | Bin 0 -> 88804 bytes files/Inter-SemiBold.woff2 | Bin 0 -> 95120 bytes files/RobotoMono-Medium.woff2 | Bin 0 -> 10780 bytes files/RobotoMono-Regular.woff2 | Bin 0 -> 10660 bytes files/arkit.png | Bin 0 -> 8959 bytes files/favicon.ico | Bin 0 -> 1150 bytes files/favicon_white.ico | Bin 0 -> 16958 bytes files/ic_arrow_drop_down_black_24dp.svg | 4 + files/ic_close_black_24dp.svg | 4 + files/ic_code_black_24dp.svg | 4 + files/ic_menu_black_24dp.svg | 4 + files/ic_mode_edit_black_24dp.svg | 4 + files/ic_search_black_24dp.svg | 4 + files/icon.svg | 11 + files/main.css | 629 ++++++++++++++++++++++ files/thumbnails.svg | 7 + index.html | 252 ++++----- js/Backup.json | 14 + js/chatbot.js | 11 +- js/edit.js | 29 -- js/merge.js | 10 +- js/search.js | 25 + js/search.json | 12 + 40 files changed, 1544 insertions(+), 552 deletions(-) create mode 100644 browser.html delete mode 100644 css/edit.css delete mode 100644 css/style.css delete mode 100644 delete.php create mode 100644 en/about.html create mode 100644 en/cookies.html create mode 100644 en/home.html delete mode 100644 en/playlist.html create mode 100644 en/privacy.html create mode 100644 en/site_map.html create mode 100644 en/terms.html delete mode 100644 en/tv.html delete mode 100644 en/txt/edit.html delete mode 100644 en/txt/playlist.txt delete mode 100644 en/txt/tv.txt create mode 100644 files/Inter-Regular.woff2 create mode 100644 files/Inter-SemiBold.woff2 create mode 100644 files/RobotoMono-Medium.woff2 create mode 100644 files/RobotoMono-Regular.woff2 create mode 100644 files/arkit.png create mode 100644 files/favicon.ico create mode 100644 files/favicon_white.ico create mode 100644 files/ic_arrow_drop_down_black_24dp.svg create mode 100644 files/ic_close_black_24dp.svg create mode 100644 files/ic_code_black_24dp.svg create mode 100644 files/ic_menu_black_24dp.svg create mode 100644 files/ic_mode_edit_black_24dp.svg create mode 100644 files/ic_search_black_24dp.svg create mode 100644 files/icon.svg create mode 100644 files/main.css create mode 100644 files/thumbnails.svg create mode 100644 js/Backup.json delete mode 100644 js/edit.js create mode 100644 js/search.js create mode 100644 js/search.json diff --git a/README.md b/README.md index 011a19a..9d1cbf9 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # manual
+unfinished still working on the loggers
+these loggers write real-time user input data to pages
+the loggers usually break because of human developer errors
bot is 3d visualization of search engine database
the opacity animation is random base on input value
the 3d data visualization is random animation
@@ -17,7 +20,7 @@ visit https://morgansbyers.scienceontheweb.net/index.html
fix what you find was incorrect.
if you know how to fix it just fix it.
-if file exsist php api rest shows link to file.
+if file exsist php api shows link to file.
if file does not exist php api rest creates the file and link.
i removed text to speech from the website.
i added a delete button at bottom of every page a user creates.
diff --git a/action.php b/action.php index 8da39d9..2764a1c 100644 --- a/action.php +++ b/action.php @@ -45,18 +45,6 @@ . "" - . "" . "" . $value . "" @@ -67,26 +55,9 @@ . "../index.html" . "\"" . ">

" - . "" - . "" - . "

" - . "" - . "
" . "

" - . "click here to define the keyword\n" . $value . "

" - . "
" . "" . ""); } @@ -114,7 +85,8 @@ } foreach($_POST as $variable => $value) -{ +{ + $value = str_replace(' ', '_', $value); $handle = fopen("./js/merge.js", "a"); // load the data and delete the line from the array $lines = file('./js/merge.js'); @@ -133,7 +105,8 @@ } foreach($_POST as $variable => $value) -{ +{ + $value = str_replace(' ', '_', $value); $handle = fopen("./js/chatbot.js", "a"); // load the data and delete the line from the array $lines = file('./js/chatbot.js'); @@ -143,54 +116,41 @@ file_put_contents('./js/chatbot.js', $lines); $value = str_replace(' ', '_', $value); fwrite($handle, - "\"" + "\"" . $value . "\"" . "," . "\n" . "];return responses[Math.floor(Math.random() * responses.length)];}window.onblur = function (tabs) {alert('switch tabs alert');};"); } - - echo "successfully created $value"; - + foreach($_POST as $variable => $value) -{ - $handle = fopen("./en/txt/edit.html", "a"); +{ + $value = str_replace(' ', '_', $value); + $handle = fopen("./js/search.json", "a"); // load the data and delete the line from the array - $lines = file('./en/txt/edit.html'); + $lines = file('./js/search.json'); $last = sizeof($lines) - 1 ; unset($lines[$last]); // write the new data to the file - file_put_contents('./en/txt/edit.html', $lines); - - fwrite($handle, - "\n" - ."
  • " - .$value - ."
  • \n" - ."" - ."\r\n"); - - $handle = fopen("./en/txt/".$value.".txt", "a"); - fwrite($handle, - "\n" - .$value - ."\r\n"); + file_put_contents('./js/search.json', $lines); + $value = str_replace(' ', '_', $value); + fwrite($handle, + "," + . "\"" + . $value + . "\"" + . ":" + . "\"" + . "en/" + . $value + . "\"" + . "\n" + . "}}}"); +} - echo ""; -} +//echo "successfully created $value"; +echo ""; fclose($handle); exit(); ?> \ No newline at end of file diff --git a/browser.html b/browser.html new file mode 100644 index 0000000..6b69373 --- /dev/null +++ b/browser.html @@ -0,0 +1,664 @@ + + + + + index + + + + + + + + +
    + + + +
    + +
    +
    + +
    + +
    +
    +
    + +
    + +
    + +
    + + + + + + + + + + diff --git a/css/edit.css b/css/edit.css deleted file mode 100644 index 5cb7e07..0000000 --- a/css/edit.css +++ /dev/null @@ -1,52 +0,0 @@ -html { - font-family: sans-serif; -} - -h1, -h2 { - text-align: center; -} - -article { - width: 300px; - min-height: 200px; - margin: 0 auto; - padding: 15px; - background-image: repeating-linear-gradient( - to bottom, - transparent 1px, - transparent 20px, - rgb(0, 0, 150) 21px - ), - linear-gradient(to bottom right, white, #ccc); - border-radius: 20px; - box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.7); - line-height: 2.5; -} - -ul { - list-style-type: none; - padding-left: 0; - width: 380px; - margin: 0 auto; - padding-bottom: 30px; -} - -li { - float: right; - width: 50%; - height: 50px; -} - -ul li a { - display: block; - text-align: center; - color: blue; - text-decoration: underline; - cursor: pointer; -} - -ul li a:hover, -ul li a:focus { - text-decoration: none; -} diff --git a/css/style.css b/css/style.css deleted file mode 100644 index 3d7ae30..0000000 --- a/css/style.css +++ /dev/null @@ -1,128 +0,0 @@ -/* mobile */ - -.chatbot-container { - width: 80%; - margin: 0 auto; - background-color: white; - } - -#chatbot { - background-color: white; - } - - #header { - background-color: white; - color: #ffffff; - padding: 20px; - font-size: 1em; - font-weight: bold; - } - - message-container { - background: gray; - width: 100%; - height: 20px; - display: flex; - align-items: center; - } - - - - #conversation { - height: 30px; - overflow-y: auto; - padding: 50px; - display: flex; - flex-direction: column; - } - - @keyframes message-fade-in { - from { - opacity: 0; - transform: translateY(-20px); - } - to { - opacity: 1; - transform: translateY(0); - } - } - /* id=input-field => id=nodes */ - nodes { - display: flex; - align-items: flex-start; - position: relative; - font-size: 15px; - line-height: 20px; - - word-wrap: break-word; - white-space: pre-wrap; - max-width: 100%; - padding: 15px; - } - - .user-message { - justify-content: flex-end; - } - - -.edges { - font-size: 1.1em; - top: 15px; - } - - #input-form { - - - border: 1px solid black; - margin: 0px; - padding: 0px; - position: fixed; - top: 150px; - left: 75px; - - width: 55%; - - } - - #nodes { - flex: 1; - height: 60px; - border: 1px solid #7f9bbe; - border-radius: 4px; - padding: 0 10px; - font-size: 14px; - transition: border-color 0.3s; - background: white; - color: #000000; - border: none; - } - - p[sentTime]:hover::after { - edges: attr(sentTime); - position: absolute; - top: -3px; - font-size: 14px; - color: gray; - } - - .chatbot p[sentTime]:hover::after { - -left: 15px; - } - - .user-message p[sentTime]:hover::after { - right: 15px; - } - - /* extra */ - -.chatbot-text { - background-color: rgb(234, 237, 238); - color: #000000; - font-size: 1.1em; - padding: 15px; - border-radius: 5px; - box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); - } - - diff --git a/delete.php b/delete.php deleted file mode 100644 index bda10f6..0000000 --- a/delete.php +++ /dev/null @@ -1,30 +0,0 @@ -$totalCorrect / 1 correct"; -// user has clicked a delete hyperlink -if($_GET['action'] && $_GET['action'] == 'delete') { - unlink($_GET['filename']); - header("Location: ./index.html"); -} -?> \ No newline at end of file diff --git a/en/about.html b/en/about.html new file mode 100644 index 0000000..0abf251 --- /dev/null +++ b/en/about.html @@ -0,0 +1 @@ +about

    about

    \ No newline at end of file diff --git a/en/cookies.html b/en/cookies.html new file mode 100644 index 0000000..2119613 --- /dev/null +++ b/en/cookies.html @@ -0,0 +1 @@ +cookies

    cookies

    \ No newline at end of file diff --git a/en/home.html b/en/home.html new file mode 100644 index 0000000..9d49dd0 --- /dev/null +++ b/en/home.html @@ -0,0 +1 @@ +home

    home

    \ No newline at end of file diff --git a/en/playlist.html b/en/playlist.html deleted file mode 100644 index 60cfe0b..0000000 --- a/en/playlist.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - -playlist - - - -return to homepage

    - - - \ No newline at end of file diff --git a/en/privacy.html b/en/privacy.html new file mode 100644 index 0000000..009f3a2 --- /dev/null +++ b/en/privacy.html @@ -0,0 +1 @@ +privacy

    privacy

    \ No newline at end of file diff --git a/en/site_map.html b/en/site_map.html new file mode 100644 index 0000000..f334e74 --- /dev/null +++ b/en/site_map.html @@ -0,0 +1 @@ +site_map

    site_map

    \ No newline at end of file diff --git a/en/terms.html b/en/terms.html new file mode 100644 index 0000000..9d947f3 --- /dev/null +++ b/en/terms.html @@ -0,0 +1 @@ +terms

    terms

    \ No newline at end of file diff --git a/en/tv.html b/en/tv.html deleted file mode 100644 index c64b7fd..0000000 --- a/en/tv.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - -tv - - -return to homepage

    - - - \ No newline at end of file diff --git a/en/txt/edit.html b/en/txt/edit.html deleted file mode 100644 index de9bba1..0000000 --- a/en/txt/edit.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - -edit - - -
    - -return to homepage -
    -
    -