summaryrefslogtreecommitdiff
path: root/php/load-css.php
diff options
context:
space:
mode:
authorConnor Thomson <blumatrikz@gmail.com>2026-09-19 10:51:36 -0700
committerConnor Thomson <blumatrikz@gmail.com>2026-09-19 10:51:36 -0700
commit56336ee3d5ec32647f6dbf35cf09f94a13795b60 (patch)
tree5c519a352700e0241895d64d14b59b0cfd5c27d2 /php/load-css.php
parent01b6e0d9b7b65b0612c3e0fe9c3f82672931b51f (diff)
Random fixes and updates
Diffstat (limited to 'php/load-css.php')
-rw-r--r--php/load-css.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/php/load-css.php b/php/load-css.php
new file mode 100644
index 0000000..7cabc91
--- /dev/null
+++ b/php/load-css.php
@@ -0,0 +1,9 @@
+<?php
+$isMobile = isset($_SERVER['HTTP_SEC_CH_UA_MOBILE']) && $_SERVER['HTTP_SEC_CH_UA_MOBILE'] === '?1';
+$folder = $isMobile ? 'mobile' : 'desktop';
+?>
+<link rel="stylesheet" href="<?php echo $folder; ?>/body.css">
+<link rel="stylesheet" href="<?php echo $folder; ?>/content.css">
+<link rel="stylesheet" href="<?php echo $folder; ?>/header.css">
+<link rel="stylesheet" href="<?php echo $folder; ?>/footer.css">
+<link rel="stylesheet" href="<?php echo $folder; ?>/container.css">