summaryrefslogtreecommitdiffstats
path: root/index.php
blob: 9677f010c0032750c024054e04667f7318e2ddd1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
require_once "vendor/autoload.php";

define("NAMES", [
  "Anne",
  "Amity",
  "Alyx",
  "Aleteoryx",
  "Dana",
  "Maddie",
  "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>
<head>
  <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>
  <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>
  <?= lstart("text text text") ?>
    <hr>
  <?= lend() ?>
</body>
</html>