From a017acb0689378d2cb844f8e0c5348e764e3363d Mon Sep 17 00:00:00 2001 From: Aleteoryx Date: Sun, 18 Aug 2024 09:31:40 -0400 Subject: okay, this lays out in firefox+chrome+vimb and looks normal in lynx+links2+w3m --- index.php | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) (limited to 'index.php') 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 "

$title

"; + else + return "

$title

"; +} + +function lend() { + global $wb; + if (!$wb->isMobile()) + return "
"; + else + return ""; +} + ?> @@ -18,14 +37,21 @@ define("NAMES", [ + isEngine("Gecko")): ?> + + + isEngine("Blink") && $wb->isMobile()): ?> + + -isType("mobile")) echo " class=mobile"; ?>> + -
-

text text text

+ +
+ -- cgit v1.2.3-70-g09d2