Skip to content

Commit

Permalink
faster page loading speeds
Browse files Browse the repository at this point in the history
  • Loading branch information
jehovahsays committed Jun 28, 2024
1 parent 6d7f17a commit a791bca
Show file tree
Hide file tree
Showing 40 changed files with 1,544 additions and 552 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# manual
<br>
unfinished still working on the loggers<br>
these loggers write real-time user input data to pages<br>
the loggers usually break because of human developer errors<br>
bot is 3d visualization of search engine database<br>
the opacity animation is random base on input value<br>
the 3d data visualization is random animation<br>
Expand All @@ -17,7 +20,7 @@ visit https://morgansbyers.scienceontheweb.net/index.html
<br>
fix what you find was incorrect.<br>
if you know how to fix it just fix it.<br>
if file exsist php api rest shows link to file.<br>
if file exsist php api shows link to file.<br>
if file does not exist php api rest creates the file and link.<br>
i removed text to speech from the website.<br>
i added a delete button at bottom of every page a user creates.<br>
Expand Down
94 changes: 27 additions & 67 deletions action.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,6 @@
. "<meta "
. "name=\"viewport\""
. "content=\"width=device-width\">"
. "<style>"
. "/* mobile */"
. "p {"
. "width:100%; "
. "height:100%;"
. "position: fixed;"
. "padding: 0;"
. "margin-top: 200px;"
. "top: 0px;"
. "left: 0px;"
. "}"
. "</style>"
. "<title>"
. $value
. "</title>"
Expand All @@ -67,26 +55,9 @@
. "../index.html"
. "\""
. "><button>return to homepage</button></a><br><br>"
. "<a href="
. "\""
. "./txt/edit.html"
. "\""
. ">"
. "<button>view this acticle</button></a>"
. "<br><br>"
. "<a href="
. "\""
. "../delete.php?action=delete&filename=./en/"
. $value
. ".html"
. "\""
. "><button>delete this page</button></a>"
. "<div class=\"p\">"
. "<p contenteditable=\"true\">"
. "click here to define the keyword\n"
. $value
. "</p>"
. "</div>"
. "</body>"
. "<html>");
}
Expand Down Expand Up @@ -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');
Expand All @@ -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');
Expand All @@ -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 "<meta name='viewport' content='width=device-width'>successfully created <a href='./en/$value.html'>$value</a>";


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"
."<li><a data-page="
."\""
.$value
."\""
.">"
.$value
."</a></li>\n</ul>"
."<script type="
."\""
."text/javascript"
."\""
."src="
."\""
."../../js/edit.js"
."\""
."></script>"
."\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 "<body onload='loadout()'><script>function loadout(){window.location.href = './en/txt/edit.html'}</script>";
}
//echo "<meta name='viewport' content='width=device-width'>successfully created <a href='./en/$value.html'>$value</a>";
echo "<body onload='loadout()'><script>function loadout(){window.location.href = './en/$value.html'}</script>";
fclose($handle);
exit();
?>
Loading

0 comments on commit a791bca

Please sign in to comment.