diff options
author | Jonas Kohl | 2024-09-06 14:38:26 +0200 |
---|---|---|
committer | Jonas Kohl | 2024-09-06 14:38:26 +0200 |
commit | 0540e04c77864186ce48193456634b897a11f5aa (patch) | |
tree | 92607cc903a9b0dc482ca14f3d33ab9c3707d78c /includes/desktop/template_head_start.php | |
parent | 2d8a37e7ac46aa100f2e460b024d21bae2883f5b (diff) |
Add mobile version
Diffstat (limited to 'includes/desktop/template_head_start.php')
-rw-r--r-- | includes/desktop/template_head_start.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/includes/desktop/template_head_start.php b/includes/desktop/template_head_start.php new file mode 100644 index 0000000..6d4a776 --- /dev/null +++ b/includes/desktop/template_head_start.php @@ -0,0 +1,20 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<html> +<head> + <meta http-equiv="imagetoolbar" content="no"> + <meta http-equiv="MSThemeCompatible" content="no"> + <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> + <title><?= htmlentities($PAGE_TITLE ?? "") ?> - Mystic House Fansite</title> + <script language="JavaScript"> + <!-- + function getLocation() { + return "/site.php?p=" + encodeURIComponent(location.href.split('?')[0].replace(/^.*\//, "")); + } + + if (window.top == window.self) { + location = getLocation(); + } else if ("history" in window.top && "replaceState" in window.top.history) { + window.top.history.replaceState(null, "", getLocation()); + } + // --> + </script> |