summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorAleteoryx <alyx@aleteoryx.me>2024-08-18 09:31:40 -0400
committerAleteoryx <alyx@aleteoryx.me>2024-08-18 09:31:40 -0400
commita017acb0689378d2cb844f8e0c5348e764e3363d (patch)
tree38b0ee106b1bb43196c690ac45318c76f537ef6b /index.php
parent6b5302c37a825656ba6265e2d99689329fee20e2 (diff)
downloadame-homepage-master.tar.gz
ame-homepage-master.tar.bz2
ame-homepage-master.zip
okay, this lays out in firefox+chrome+vimb and looks normal in lynx+links2+w3mHEADmaster
Diffstat (limited to 'index.php')
-rw-r--r--index.php32
1 files changed, 29 insertions, 3 deletions
diff --git a/index.php b/index.php
index 38d201b..9677f01 100644
--- a/index.php
+++ b/index.php
@@ -11,6 +11,25 @@ define("NAMES", [
"Marcy",
"Sasha"
]);
+
+$wb = new WhichBrowser\Parser(getallheaders());
+
+function lstart(string $title) {
+ global $wb;
+ if (!$wb->isMobile())
+ return "<details class=border><summary><h3>$title</h3></summary>";
+ else
+ return "<section class=border><h3>$title</h3>";
+}
+
+function lend() {
+ global $wb;
+ if (!$wb->isMobile())
+ return "</details>";
+ else
+ return "</section>";
+}
+
?>
<!doctype html>
<html lang=en>
@@ -18,14 +37,21 @@ define("NAMES", [
<meta charset="utf-8">
<meta name=viewport content="width=device-width, initial-scale=1">
<link rel=stylesheet href="/style.css">
+ <?php if ($wb->isEngine("Gecko")): ?>
+ <link rel=stylesheet href="/style/firefox.css">
+ <?php endif; ?>
+ <?php if ($wb->isEngine("Blink") && $wb->isMobile()): ?>
+ <link rel=stylesheet href="/style/mobile-chrome.css">
+ <?php endif; ?>
<link rel=canonical href="https://aleteoryx.me/">
</head>
-<body<?php if ((new WhichBrowser\Parser(getallheaders()))->isType("mobile")) echo " class=mobile"; ?>>
+<body>
<div aria-label="logo: ah lee tee ore ikhs dot m e" id=logo>
<pre><?= file_get_contents("logo.txt") ?></pre>
<pre><?= file_get_contents("logo.txt") ?></pre>
</div>
- <div class=border>
- <p>text text text</p>
+ <?= lstart("text text text") ?>
+ <hr>
+ <?= lend() ?>
</body>
</html>