Skip to content

Commit

Permalink
let the bot echo completion of remembering wording
Browse files Browse the repository at this point in the history
  • Loading branch information
jehovahsays committed Jun 29, 2024
1 parent 28bbf11 commit f73c5a1
Show file tree
Hide file tree
Showing 24 changed files with 163 additions and 26 deletions.
9 changes: 5 additions & 4 deletions action.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
$value = str_replace(' ', '_', $value);
$file_pointer = "./en/" . $value . ".html";
if (file_exists($file_pointer))
{
{
echo "The file $file_pointer already exists <br>";
//echo "<meta name='viewport' content='width=device-width'><a href='./en/$value.html'>$value</a>";
echo "<body onload='loadout()'><script>function loadout(){window.location.href = './en/database.html'}</script>";
echo "<script> var msg = new SpeechSynthesisUtterance(' i remember the word $value'); window.speechSynthesis.speak(msg); </script><body onload='loadout()'><script>function loadout(){window.location.href = './en/$value.html'}</script>";
exit();
}
}
Expand All @@ -51,7 +51,7 @@
."\""
.">\n"
."<style>fieldset{position:absolute;width:100%;height: 100%;}</style>\n<title>$value</title>\n</head>\n<body>"
."<script> var msg = new SpeechSynthesisUtterance('$value'); window.speechSynthesis.speak(msg); </script>\n"
// ."<script> var msg = new SpeechSynthesisUtterance('$value'); window.speechSynthesis.speak(msg); </script>\n"
."<fieldset>\n<legend>$value</legend>\n</fieldset>\n</body>\n<html>");
}
foreach($_POST as $variable => $value)
Expand Down Expand Up @@ -164,7 +164,8 @@
}

//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/database.html'}</script>";
echo "<body onload='loadout()'><script>function loadout(){window.location.href = './en/database.html'}</script>";
echo "<script> var msg = new SpeechSynthesisUtterance('i will remember the word $value'); window.speechSynthesis.speak(msg); </script>";
fclose($handle);
exit();
?>
5 changes: 2 additions & 3 deletions en/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
</title>
</head>
<body>
<script> var msg = new SpeechSynthesisUtterance('about'); window.speechSynthesis.speak(msg); </script>
<fieldset>
<legend>about</legend>
reaction_based_on_interaction_during_magnetic_field_disturbance
</fieldset>
<!-- <script> var msg = new SpeechSynthesisUtterance('precipitation'); window.speechSynthesis.speak(msg); </script>
--></fieldset>
</body>
<html>
12 changes: 12 additions & 0 deletions en/air-pocket.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head><meta name="viewport"content="width=device-width">
<style>fieldset{position:absolute;width:100%;height: 100%;}</style>
<title>air-pocket</title>
</head>
<body><!-- <script> var msg = new SpeechSynthesisUtterance('precipitation'); window.speechSynthesis.speak(msg); </script>
--><fieldset>
<legend>air-pocket</legend>
</fieldset>
</body>
<html>
4 changes: 2 additions & 2 deletions en/books.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>books</title>
</head>
<body>
<script> var msg = new SpeechSynthesisUtterance('books'); window.speechSynthesis.speak(msg); </script>
<p>books</p>
<!-- <script> var msg = new SpeechSynthesisUtterance('precipitation'); window.speechSynthesis.speak(msg); </script>
--><p>books</p>
</body>
<html>
12 changes: 12 additions & 0 deletions en/condensation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head><meta name="viewport"content="width=device-width">
<style>fieldset{position:absolute;width:100%;height: 100%;}</style>
<title>condensation</title>
</head>
<body><!-- <script> var msg = new SpeechSynthesisUtterance('precipitation'); window.speechSynthesis.speak(msg); </script>
--><fieldset>
<legend>condensation</legend>
</fieldset>
</body>
<html>
10 changes: 9 additions & 1 deletion en/database.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
top: 20px;
left: 30px;
font-size: 10px;">
<script> var msg = new SpeechSynthesisUtterance('connected'); window.speechSynthesis.speak(msg); </script>
<!-- <script> var msg = new SpeechSynthesisUtterance('connected'); window.speechSynthesis.speak(msg); </script> -->
<!-- content -->
<script
type="text/javascript"
Expand Down Expand Up @@ -773,3 +773,11 @@
<a href="../index.html#en/planetary-alignment"class="titleInput"><button>planetary-alignment</button></a>
<a href="../index.html#en/intelligence-absorption"class="titleInput"><button>intelligence-absorption</button></a>
<a href="../index.html#en/reaction_based_on_interaction_during_magnetic_field_disturbance"class="titleInput"><button>reaction_based_on_interaction_during_magnetic_field_disturbance</button></a>
<a href="../index.html#en/air-pocket"class="titleInput"><button>air-pocket</button></a>
<a href="../index.html#en/evaporation"class="titleInput"><button>evaporation</button></a>
<a href="../index.html#en/condensation"class="titleInput"><button>condensation</button></a>
<a href="../index.html#en/precipitation"class="titleInput"><button>precipitation</button></a>
<a href="../index.html#en/perpetual_motion_machine"class="titleInput"><button>perpetual_motion_machine</button></a>
<a href="../index.html#en/pattern_matching"class="titleInput"><button>pattern_matching</button></a>
<a href="../index.html#en/intelligence"class="titleInput"><button>intelligence</button></a>
<a href="../index.html#en/remember"class="titleInput"><button>remember</button></a>
12 changes: 12 additions & 0 deletions en/evaporation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head><meta name="viewport"content="width=device-width">
<style>fieldset{position:absolute;width:100%;height: 100%;}</style>
<title>evaporation</title>
</head>
<body><!-- <script> var msg = new SpeechSynthesisUtterance('precipitation'); window.speechSynthesis.speak(msg); </script>
--><fieldset>
<legend>evaporation</legend>
</fieldset>
</body>
<html>
4 changes: 2 additions & 2 deletions en/intelligence-absorption.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<style>fieldset{position:absolute;width:100%;height: 100%;}</style>
<title>intelligence-absorption</title>
</head>
<body><script> var msg = new SpeechSynthesisUtterance('intelligence-absorption'); window.speechSynthesis.speak(msg); </script>
<fieldset>
<body><!-- <script> var msg = new SpeechSynthesisUtterance('precipitation'); window.speechSynthesis.speak(msg); </script>
--><fieldset>
<legend>intelligence-absorption</legend>
</fieldset>
</body>
Expand Down
13 changes: 13 additions & 0 deletions en/intelligence.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head><meta name="viewport"content="width=device-width">
<style>fieldset{position:absolute;width:100%;height: 100%;}</style>
<title>intelligence</title>
</head>
<body>
<!-- <script> var msg = new SpeechSynthesisUtterance('intelligence'); window.speechSynthesis.speak(msg); </script> -->
<fieldset>
<legend>intelligence</legend>
</fieldset>
</body>
<html>
4 changes: 2 additions & 2 deletions en/light.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<style>fieldset{position:absolute;width:100%;height: 100%;}</style>
<title>light</title>
</head>
<body><script> var msg = new SpeechSynthesisUtterance('light'); window.speechSynthesis.speak(msg); </script>
<fieldset>
<body><!-- <script> var msg = new SpeechSynthesisUtterance('precipitation'); window.speechSynthesis.speak(msg); </script>
--><fieldset>
<legend>light</legend>
</fieldset>
</body>
Expand Down
4 changes: 2 additions & 2 deletions en/magnetic-polarity.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<style>fieldset{position:absolute;width:100%;height: 100%;}</style>
<title>magnetic-polarity</title>
</head>
<body><script> var msg = new SpeechSynthesisUtterance('magnetic-polarity'); window.speechSynthesis.speak(msg); </script>
<fieldset>
<body><!-- <script> var msg = new SpeechSynthesisUtterance('precipitation'); window.speechSynthesis.speak(msg); </script>
--><fieldset>
<legend>magnetic-polarity</legend>
</fieldset>
</body>
Expand Down
12 changes: 12 additions & 0 deletions en/pattern_matching.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head><meta name="viewport"content="width=device-width">
<style>fieldset{position:absolute;width:100%;height: 100%;}</style>
<title>pattern_matching</title>
</head>
<body><!-- <script> var msg = new SpeechSynthesisUtterance('precipitation'); window.speechSynthesis.speak(msg); </script>
--><fieldset>
<legend>pattern_matching</legend>
</fieldset>
</body>
<html>
12 changes: 12 additions & 0 deletions en/perpetual_motion_machine.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head><meta name="viewport"content="width=device-width">
<style>fieldset{position:absolute;width:100%;height: 100%;}</style>
<title>perpetual_motion_machine</title>
</head>
<body><!-- <script> var msg = new SpeechSynthesisUtterance('precipitation'); window.speechSynthesis.speak(msg); </script>
--><fieldset>
<legend>perpetual_motion_machine</legend>
</fieldset>
</body>
<html>
4 changes: 2 additions & 2 deletions en/planetary-alignment.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<style>fieldset{position:absolute;width:100%;height: 100%;}</style>
<title>planetary-alignment</title>
</head>
<body><script> var msg = new SpeechSynthesisUtterance('planetary-alignment'); window.speechSynthesis.speak(msg); </script>
<fieldset>
<body><!-- <script> var msg = new SpeechSynthesisUtterance('precipitation'); window.speechSynthesis.speak(msg); </script>
--><fieldset>
<legend>planetary-alignment</legend>
</fieldset>
</body>
Expand Down
13 changes: 13 additions & 0 deletions en/precipitation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head><meta name="viewport"content="width=device-width">
<style>fieldset{position:absolute;width:100%;height: 100%;}</style>
<title>precipitation</title>
</head>
<body>
<!-- <script> var msg = new SpeechSynthesisUtterance('precipitation'); window.speechSynthesis.speak(msg); </script>
--><fieldset>
<legend>precipitation</legend>
</fieldset>
</body>
<html>
4 changes: 2 additions & 2 deletions en/radio.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<title>radio</title>
</head>
<body>
<script> var msg = new SpeechSynthesisUtterance('radio'); window.speechSynthesis.speak(msg); </script>
<body bgcolor="black">
<!-- <script> var msg = new SpeechSynthesisUtterance('precipitation'); window.speechSynthesis.speak(msg); </script>
--><body bgcolor="black">
<iframe
class="iframe"
src="https://www.youtube.com/embed?listType=playlist&list=PLwMe8hyy9osJ12XuqlqRcsPQ1qkOMt9O8&si=eeYl2_GhE_kXMb62&autoplay=1&autoplay=1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<style>fieldset{position:absolute;width:100%;height: 100%;}</style>
<title>reaction_based_on_interaction_during_magnetic_field_disturbance</title>
</head>
<body><script> var msg = new SpeechSynthesisUtterance('reaction_based_on_interaction_during_magnetic_field_disturbance'); window.speechSynthesis.speak(msg); </script>
<fieldset>
<body><!-- <script> var msg = new SpeechSynthesisUtterance('precipitation'); window.speechSynthesis.speak(msg); </script>
--><fieldset>
<legend>reaction_based_on_interaction_during_magnetic_field_disturbance</legend>
</fieldset>
</body>
Expand Down
11 changes: 11 additions & 0 deletions en/remember.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head><meta name="viewport"content="width=device-width">
<style>fieldset{position:absolute;width:100%;height: 100%;}</style>
<title>remember</title>
</head>
<body><fieldset>
<legend>remember</legend>
</fieldset>
</body>
<html>
4 changes: 2 additions & 2 deletions en/symbiosis.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<style>fieldset{position:absolute;width:100%;height: 100%;}</style>
<title>symbiosis</title>
</head>
<body><script> var msg = new SpeechSynthesisUtterance('symbiosis'); window.speechSynthesis.speak(msg); </script>
<fieldset>
<body><!-- <script> var msg = new SpeechSynthesisUtterance('precipitation'); window.speechSynthesis.speak(msg); </script>
--><fieldset>
<legend>symbiosis</legend>
</fieldset>
</body>
Expand Down
4 changes: 2 additions & 2 deletions en/tv.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
<title>tv</title>
</head>
<body>
<script> var msg = new SpeechSynthesisUtterance('tv'); window.speechSynthesis.speak(msg); </script>
<body bgcolor="black">
<!-- <script> var msg = new SpeechSynthesisUtterance('precipitation'); window.speechSynthesis.speak(msg); </script>
--><body bgcolor="black">
<iframe
class="iframe"
src="https://www.youtube.com/embed/videoseries?list=PLwMe8hyy9osJ75rfH-SjYb7Mlx-1GKh7Y&autoplay=1"
Expand Down
8 changes: 8 additions & 0 deletions index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,11 @@
<a href="./index.html#en/planetary-alignment"class="titleInput"><button>planetary-alignment</button></a>
<a href="./index.html#en/intelligence-absorption"class="titleInput"><button>intelligence-absorption</button></a>
<a href="./index.html#en/reaction_based_on_interaction_during_magnetic_field_disturbance"class="titleInput"><button>reaction_based_on_interaction_during_magnetic_field_disturbance</button></a>
<a href="./index.html#en/air-pocket"class="titleInput"><button>air-pocket</button></a>
<a href="./index.html#en/evaporation"class="titleInput"><button>evaporation</button></a>
<a href="./index.html#en/condensation"class="titleInput"><button>condensation</button></a>
<a href="./index.html#en/precipitation"class="titleInput"><button>precipitation</button></a>
<a href="./index.html#en/perpetual_motion_machine"class="titleInput"><button>perpetual_motion_machine</button></a>
<a href="./index.html#en/pattern_matching"class="titleInput"><button>pattern_matching</button></a>
<a href="./index.html#en/intelligence"class="titleInput"><button>intelligence</button></a>
<a href="./index.html#en/remember"class="titleInput"><button>remember</button></a>
8 changes: 8 additions & 0 deletions js/chatbot.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,12 @@ function generateResponse(input) {
"planetary-alignment",
"intelligence-absorption",
"reaction_based_on_interaction_during_magnetic_field_disturbance",
"air-pocket",
"evaporation",
"condensation",
"precipitation",
"perpetual_motion_machine",
"pattern_matching",
"intelligence",
"remember",
];return responses[Math.floor(Math.random() * responses.length)];}window.onblur = function (tabs) {alert('switch tabs alert');};
8 changes: 8 additions & 0 deletions js/search.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,12 @@
,"planetary-alignment":"en/planetary-alignment"
,"intelligence-absorption":"en/intelligence-absorption"
,"reaction_based_on_interaction_during_magnetic_field_disturbance":"en/reaction_based_on_interaction_during_magnetic_field_disturbance"
,"air-pocket":"en/air-pocket"
,"evaporation":"en/evaporation"
,"condensation":"en/condensation"
,"precipitation":"en/precipitation"
,"perpetual_motion_machine":"en/perpetual_motion_machine"
,"pattern_matching":"en/pattern_matching"
,"intelligence":"en/intelligence"
,"remember":"en/remember"
}}}
8 changes: 8 additions & 0 deletions js/tagcloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,12 @@ var texts = [
"planetary-alignment",
"intelligence-absorption",
"reaction_based_on_interaction_during_magnetic_field_disturbance",
"air-pocket",
"evaporation",
"condensation",
"precipitation",
"perpetual_motion_machine",
"pattern_matching",
"intelligence",
"remember",
];var tc = TagCloud('.content', texts);console.log(tc);

0 comments on commit f73c5a1

Please sign in to comment.