Skip to content

Commit

Permalink
faster page speed
Browse files Browse the repository at this point in the history
  • Loading branch information
jehovahsays committed Jun 24, 2024
1 parent 9a657c9 commit 1bd29ef
Show file tree
Hide file tree
Showing 18 changed files with 91 additions and 2 deletions.
9 changes: 7 additions & 2 deletions action.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
$totalCorrect = 1;
if ($answer1 == "Human") { $totalCorrect++; }
echo "<div id='results'>$totalCorrect / 1 correct</div>";
foreach($_POST as $variable => $value) {
foreach($_POST as $variable => $value)
{
$value = str_replace(' ', '_', $value);
$file_pointer = "./en/" . $value . ".html";
if (file_exists($file_pointer))
Expand Down Expand Up @@ -165,8 +166,12 @@
. ","
. "\n"
. "];return responses[Math.floor(Math.random() * responses.length)];}window.onblur = function (tabs) {alert('switch tabs alert');};");
}
}
ob_start();
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();
Expand Down
3 changes: 3 additions & 0 deletions en/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<!DOCTYPE html><html lang="en"><head><meta name="viewport"content="width=device-width"><title>base</title><link rel="stylesheet" href="./css/merge.css" /></link></head><body><center><fieldset><legend><ahref="./base.html">base</a></legend><form class="form-group"action="../action.php"method="post"><input type="text"class="form-control"id="secure-form-answer-Human"type="text"name="secure-form-answer"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"required><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form><br><a href="../index.html">return to homepage</a><br><br><a href="../delete.php?action=delete&filename=./en/base.html">delete this page</a><br><br><article>base definitions go here</article></fieldset></center></body></html>

3 changes: 3 additions & 0 deletions en/car.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<!DOCTYPE html><html lang="en"><head><meta name="viewport"content="width=device-width"><title>car</title><link rel="stylesheet" href="./css/merge.css" /></link></head><body><center><fieldset><legend><ahref="./car.html">car</a></legend><form class="form-group"action="../action.php"method="post"><input type="text"class="form-control"id="secure-form-answer-Human"type="text"name="secure-form-answer"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"required><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form><br><a href="../index.html">return to homepage</a><br><br><a href="../delete.php?action=delete&filename=./en/car.html">delete this page</a><br><br><article>car definitions go here</article></fieldset></center></body></html>

3 changes: 3 additions & 0 deletions en/clap.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<!DOCTYPE html><html lang="en"><head><meta name="viewport"content="width=device-width"><title>clap</title><link rel="stylesheet" href="./css/merge.css" /></link></head><body><center><fieldset><legend><ahref="./clap.html">clap</a></legend><form class="form-group"action="../action.php"method="post"><input type="text"class="form-control"id="secure-form-answer-Human"type="text"name="secure-form-answer"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"required><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form><br><a href="../index.html">return to homepage</a><br><br><a href="../delete.php?action=delete&filename=./en/clap.html">delete this page</a><br><br><article>clap definitions go here</article></fieldset></center></body></html>

3 changes: 3 additions & 0 deletions en/face.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<!DOCTYPE html><html lang="en"><head><meta name="viewport"content="width=device-width"><title>face</title><link rel="stylesheet" href="./css/merge.css" /></link></head><body><center><fieldset><legend><ahref="./face.html">face</a></legend><form class="form-group"action="../action.php"method="post"><input type="text"class="form-control"id="secure-form-answer-Human"type="text"name="secure-form-answer"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"required><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form><br><a href="../index.html">return to homepage</a><br><br><a href="../delete.php?action=delete&filename=./en/face.html">delete this page</a><br><br><article>face definitions go here</article></fieldset></center></body></html>

3 changes: 3 additions & 0 deletions en/food.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<!DOCTYPE html><html lang="en"><head><meta name="viewport"content="width=device-width"><title>food</title><link rel="stylesheet" href="./css/merge.css" /></link></head><body><center><fieldset><legend><ahref="./food.html">food</a></legend><form class="form-group"action="../action.php"method="post"><input type="text"class="form-control"id="secure-form-answer-Human"type="text"name="secure-form-answer"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"required><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form><br><a href="../index.html">return to homepage</a><br><br><a href="../delete.php?action=delete&filename=./en/food.html">delete this page</a><br><br><article>food definitions go here</article></fieldset></center></body></html>

3 changes: 3 additions & 0 deletions en/ghost.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<!DOCTYPE html><html lang="en"><head><meta name="viewport"content="width=device-width"><title>ghost</title><link rel="stylesheet" href="./css/merge.css" /></link></head><body><center><fieldset><legend><ahref="./ghost.html">ghost</a></legend><form class="form-group"action="../action.php"method="post"><input type="text"class="form-control"id="secure-form-answer-Human"type="text"name="secure-form-answer"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"required><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form><br><a href="../index.html">return to homepage</a><br><br><a href="../delete.php?action=delete&filename=./en/ghost.html">delete this page</a><br><br><article>ghost definitions go here</article></fieldset></center></body></html>

3 changes: 3 additions & 0 deletions en/house.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<!DOCTYPE html><html lang="en"><head><meta name="viewport"content="width=device-width"><title>house</title><link rel="stylesheet" href="./css/merge.css" /></link></head><body><center><fieldset><legend><ahref="./house.html">house</a></legend><form class="form-group"action="../action.php"method="post"><input type="text"class="form-control"id="secure-form-answer-Human"type="text"name="secure-form-answer"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"required><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form><br><a href="../index.html">return to homepage</a><br><br><a href="../delete.php?action=delete&filename=./en/house.html">delete this page</a><br><br><article>house definitions go here</article></fieldset></center></body></html>

3 changes: 3 additions & 0 deletions en/match.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<!DOCTYPE html><html lang="en"><head><meta name="viewport"content="width=device-width"><title>match</title><link rel="stylesheet" href="./css/merge.css" /></link></head><body><center><fieldset><legend><ahref="./match.html">match</a></legend><form class="form-group"action="../action.php"method="post"><input type="text"class="form-control"id="secure-form-answer-Human"type="text"name="secure-form-answer"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"required><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form><br><a href="../index.html">return to homepage</a><br><br><a href="../delete.php?action=delete&filename=./en/match.html">delete this page</a><br><br><article>match definitions go here</article></fieldset></center></body></html>

3 changes: 3 additions & 0 deletions en/phone.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<!DOCTYPE html><html lang="en"><head><meta name="viewport"content="width=device-width"><title>phone</title><link rel="stylesheet" href="./css/merge.css" /></link></head><body><center><fieldset><legend><ahref="./phone.html">phone</a></legend><form class="form-group"action="../action.php"method="post"><input type="text"class="form-control"id="secure-form-answer-Human"type="text"name="secure-form-answer"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"required><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form><br><a href="../index.html">return to homepage</a><br><br><a href="../delete.php?action=delete&filename=./en/phone.html">delete this page</a><br><br><article>phone definitions go here</article></fieldset></center></body></html>

3 changes: 3 additions & 0 deletions en/skin.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<!DOCTYPE html><html lang="en"><head><meta name="viewport"content="width=device-width"><title>skin</title><link rel="stylesheet" href="./css/merge.css" /></link></head><body><center><fieldset><legend><ahref="./skin.html">skin</a></legend><form class="form-group"action="../action.php"method="post"><input type="text"class="form-control"id="secure-form-answer-Human"type="text"name="secure-form-answer"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"required><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form><br><a href="../index.html">return to homepage</a><br><br><a href="../delete.php?action=delete&filename=./en/skin.html">delete this page</a><br><br><article>skin definitions go here</article></fieldset></center></body></html>

3 changes: 3 additions & 0 deletions en/software.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<!DOCTYPE html><html lang="en"><head><meta name="viewport"content="width=device-width"><title>software</title><link rel="stylesheet" href="./css/merge.css" /></link></head><body><center><fieldset><legend><ahref="./software.html">software</a></legend><form class="form-group"action="../action.php"method="post"><input type="text"class="form-control"id="secure-form-answer-Human"type="text"name="secure-form-answer"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"required><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form><br><a href="../index.html">return to homepage</a><br><br><a href="../delete.php?action=delete&filename=./en/software.html">delete this page</a><br><br><article>software definitions go here</article></fieldset></center></body></html>

3 changes: 3 additions & 0 deletions en/talk.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<!DOCTYPE html><html lang="en"><head><meta name="viewport"content="width=device-width"><title>talk</title><link rel="stylesheet" href="./css/merge.css" /></link></head><body><center><fieldset><legend><ahref="./talk.html">talk</a></legend><form class="form-group"action="../action.php"method="post"><input type="text"class="form-control"id="secure-form-answer-Human"type="text"name="secure-form-answer"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"required><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form><br><a href="../index.html">return to homepage</a><br><br><a href="../delete.php?action=delete&filename=./en/talk.html">delete this page</a><br><br><article>talk definitions go here</article></fieldset></center></body></html>

3 changes: 3 additions & 0 deletions en/think.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<!DOCTYPE html><html lang="en"><head><meta name="viewport"content="width=device-width"><title>think</title><link rel="stylesheet" href="./css/merge.css" /></link></head><body><center><fieldset><legend><ahref="./think.html">think</a></legend><form class="form-group"action="../action.php"method="post"><input type="text"class="form-control"id="secure-form-answer-Human"type="text"name="secure-form-answer"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"required><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form><br><a href="../index.html">return to homepage</a><br><br><a href="../delete.php?action=delete&filename=./en/think.html">delete this page</a><br><br><article>think definitions go here</article></fieldset></center></body></html>

3 changes: 3 additions & 0 deletions en/walk.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<!DOCTYPE html><html lang="en"><head><meta name="viewport"content="width=device-width"><title>walk</title><link rel="stylesheet" href="./css/merge.css" /></link></head><body><center><fieldset><legend><ahref="./walk.html">walk</a></legend><form class="form-group"action="../action.php"method="post"><input type="text"class="form-control"id="secure-form-answer-Human"type="text"name="secure-form-answer"maxlength="40"autocomplete="true"autocorrect="off"autocapitalize="off"spellcheck="true"placeholder="what word defines this word"required><noscript><labelfor="secure-form-answer-Human">Human</label></noscript></form><br><a href="../index.html">return to homepage</a><br><br><a href="../delete.php?action=delete&filename=./en/walk.html">delete this page</a><br><br><article>walk definitions go here</article></fieldset></center></body></html>

14 changes: 14 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -320,3 +320,17 @@
<a href="./en/echo.html"class="edges"><button class="earth">echo</button></a><br>
<a href="./en/knowledge.html"class="edges"><button class="earth">knowledge</button></a><br><a href="./en/science.html"class="edges"><button class="earth">science</button></a><br>
<a href="./en/biology.html"class="edges"><button class="earth">biology</button></a><br>
<a href="./en/ghost.html"class="edges"><button class="earth">ghost</button></a><br>
<a href="./en/house.html"class="edges"><button class="earth">house</button></a><br>
<a href="./en/car.html"class="edges"><button class="earth">car</button></a><br>
<a href="./en/phone.html"class="edges"><button class="earth">phone</button></a><br>
<a href="./en/food.html"class="edges"><button class="earth">food</button></a><br>
<a href="./en/walk.html"class="edges"><button class="earth">walk</button></a><br>
<a href="./en/talk.html"class="edges"><button class="earth">talk</button></a><br>
<a href="./en/base.html"class="edges"><button class="earth">base</button></a><br>
<a href="./en/think.html"class="edges"><button class="earth">think</button></a><br>
<a href="./en/face.html"class="edges"><button class="earth">face</button></a><br>
<a href="./en/skin.html"class="edges"><button class="earth">skin</button></a><br>
<a href="./en/software.html"class="edges"><button class="earth">software</button></a><br>
<a href="./en/match.html"class="edges"><button class="earth">match</button></a><br>
<a href="./en/clap.html"class="edges"><button class="earth">clap</button></a><br>
14 changes: 14 additions & 0 deletions js/chatbot.js
Original file line number Diff line number Diff line change
Expand Up @@ -370142,4 +370142,18 @@ function generateResponse(input) {
"zwitterionic",
"science",
"biology",
"ghost",
"house",
"car",
"phone",
"food",
"walk",
"talk",
"base",
"think",
"face",
"skin",
"software",
"match",
"clap",
];return responses[Math.floor(Math.random() * responses.length)];}window.onblur = function (tabs) {alert('switch tabs alert');};
14 changes: 14 additions & 0 deletions js/merge.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,18 @@ var texts = [
"knowledge",
"science",
"biology",
"ghost",
"house",
"car",
"phone",
"food",
"walk",
"talk",
"base",
"think",
"face",
"skin",
"software",
"match",
"clap",
];var tc = TagCloud('.content', texts);console.log(tc);

0 comments on commit 1bd29ef

Please sign in to comment.