Update index.php
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
// PHP: theme onthouden via cookie
|
|
||||||
$theme = "normal";
|
$theme = "normal";
|
||||||
if(isset($_COOKIE['theme'])) {
|
if(isset($_COOKIE['theme'])) {
|
||||||
$theme = $_COOKIE['theme'];
|
$theme = $_COOKIE['theme'];
|
||||||
}
|
}
|
||||||
if(isset($_GET['theme'])) {
|
if(isset($_GET['theme'])) {
|
||||||
$theme = $_GET['theme'] === "hacker" ? "hacker" : "normal";
|
$theme = $_GET['theme'] === "hacker" ? "hacker" : "normal";
|
||||||
setcookie('theme', $theme, time() + (86400 * 30), "/"); // 30 dagen bewaren
|
setcookie('theme', $theme, time() + (86400 * 30), "/");
|
||||||
header("Location: ".$_SERVER['PHP_SELF']);
|
header("Location: ".$_SERVER['PHP_SELF']);
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
@@ -25,7 +25,7 @@ html, body {
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
font-family: monospace, monospace;
|
font-family: monospace, monospace;
|
||||||
color: #a9b594b3;
|
color: #a9b594b3;
|
||||||
background: linear-gradient(120deg, #245da4, #291451, #1e0f27, #1c0917);
|
background: linear-gradient(120deg, #245da4, #291451, #1e0f27, #b71b8dff);
|
||||||
background-size: 400% 400%;
|
background-size: 400% 400%;
|
||||||
animation: bgFade 10s ease infinite;
|
animation: bgFade 10s ease infinite;
|
||||||
transition: background 0.3s, color 0.3s;
|
transition: background 0.3s, color 0.3s;
|
||||||
|
|||||||
Reference in New Issue
Block a user