Skip to content

Commit

Permalink
corrected the trajectory of the content
Browse files Browse the repository at this point in the history
  • Loading branch information
jehovahsays committed Jun 29, 2024
1 parent a791bca commit 28bbf11
Show file tree
Hide file tree
Showing 31 changed files with 1,377 additions and 362 deletions.
84 changes: 49 additions & 35 deletions action.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
header( 'viewport: width=device-width, initial-scale=1.0' );
header( 'Accept-Language: en-US,en;q=0.5' );
header( 'Connection: Keep-alive' );
header( 'Host: index' );
header( 'description: index' );
header( 'keywords: index' );
header( 'Host: database' );
header( 'description: database' );
header( 'keywords: database' );
header( 'Vary: Accept-Encoding' );
header( 'Expires: 0' );
header( 'Referrer-Policy: same-origin' );
Expand All @@ -29,7 +29,8 @@
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 "<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>";
exit();
}
}
Expand All @@ -39,42 +40,55 @@
$value = str_replace(' ', '_', $value);
$handle = fopen("./en/" . $value . ".html", "a");
fwrite($handle,
"<!DOCTYPE html>"
. "<html>"
. "<head>"
. "<meta "
. "name=\"viewport\""
. "content=\"width=device-width\">"
. "<title>"
. $value
. "</title>"
. "</head>"
. "<body>"
. "<a href="
. "\""
. "../index.html"
. "\""
. "><button>return to homepage</button></a><br><br>"
. "<p contenteditable=\"true\">"
. $value
. "</p>"
. "</body>"
. "<html>");
"<!DOCTYPE html>\n<html>\n<head>"
."<meta name="
."\""
."viewport"
."\""
."content="
."\""
."width=device-width"
."\""
.">\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"
."<fieldset>\n<legend>$value</legend>\n</fieldset>\n</body>\n<html>");
}
foreach($_POST as $variable => $value)
{
$value = str_replace(' ', '_', $value);
$handle = fopen("./index.html", "a");
$handle = fopen("./en/database.html", "a");
fwrite($handle,
"<a href="
. "\""
. "./en/"
. $value
. ".html"
. "../index.html#en/"
. $value
. "\""
. "class="
. "\""
. "titleInput"
. "\""
. ">"
. "<button>"
. $value
. "</button>"
. "</a>"
. "\r\n");
}

foreach($_POST as $variable => $value)
{
$value = str_replace(' ', '_', $value);
$handle = fopen("./index.htm", "a");
fwrite($handle,
"<a href="
. "\""
. "./index.html#en/"
. $value
. "\""
. "class="
. "\""
. "edges"
. "titleInput"
. "\""
. ">"
. "<button>"
Expand All @@ -87,13 +101,13 @@
foreach($_POST as $variable => $value)
{
$value = str_replace(' ', '_', $value);
$handle = fopen("./js/merge.js", "a");
$handle = fopen("./js/tagcloud.js", "a");
// load the data and delete the line from the array
$lines = file('./js/merge.js');
$lines = file('./js/tagcloud.js');
$last = sizeof($lines) - 1 ;
unset($lines[$last]);
// write the new data to the file
file_put_contents('./js/merge.js', $lines);
file_put_contents('./js/tagcloud.js', $lines);
$value = str_replace(' ', '_', $value);
fwrite($handle,
"\""
Expand Down Expand Up @@ -149,8 +163,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/$value.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/database.html'}</script>";
fclose($handle);
exit();
?>
52 changes: 52 additions & 0 deletions css/edit.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
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;
}
27 changes: 26 additions & 1 deletion en/about.html
Original file line number Diff line number Diff line change
@@ -1 +1,26 @@
<!DOCTYPE html><html><head><meta name="viewport"content="width=device-width"><title>about</title></head><body><a href="../index.html"><button>return to homepage</button></a><br><br><p contenteditable="true">about</p></body><html>
<!DOCTYPE html>
<html>
<head>
<meta
name="viewport"
content="width=device-width">
<style>
fieldset
{
position:absolute;
width: 100%;
height: 100%;
}
</style>
<title>
about
</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>
</body>
<html>
13 changes: 13 additions & 0 deletions en/books.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">
<title>books</title>
</head>
<body>
<script> var msg = new SpeechSynthesisUtterance('books'); window.speechSynthesis.speak(msg); </script>
<p>books</p>
</body>
<html>
1 change: 0 additions & 1 deletion en/cookies.html

This file was deleted.

Loading

0 comments on commit 28bbf11

Please sign in to comment.