diff options
Diffstat (limited to 'src/web/_views/head.php')
-rw-r--r-- | src/web/_views/head.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/web/_views/head.php b/src/web/_views/head.php new file mode 100644 index 0000000..cca43a1 --- /dev/null +++ b/src/web/_views/head.php @@ -0,0 +1,27 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <script> + <?php if ($this->main->session): ?> + var jwtStr = <?=json_encode($this->main->session['jwt'])?>; + <?php else: ?> + var jwtStr = null; + <?php endif; ?> + </script> + <?php + foreach ($js_files as $js) { + echo $this->main->link_js($js); + } + foreach ($css_files as $css) { + echo $this->main->link_css($css); + } + ?> + <title><?=$title?></title> + <!-- haa haa hee hee hoo hoo --> + <script src="https://unpkg.com/@ruffle-rs/ruffle"></script> + </head> + <body> + <div id="toast-container"> + </div> |