ZnoteAAC/layout/overall/header.php
Znote 203fe3d5ae New layout (Znote AAC AtomIO)
Layout is primarily changed to this because the old layout had obsolete javascript dependencies.
I still want to make another default layout eventually, which is mobile friendly.
This layout has a very nice character search widget though
that looks for names realtime and displays them in a list beside the search.
2020-06-12 22:14:50 +02:00

66 lines
2.0 KiB
PHP

<?php
require_once 'layout/layout_config.php';
$launch_seconds = (strtotime($countDown) - time());
$delay_hide = $launch_seconds + $countDown_hide;
?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title><?php echo $config['site_title']; ?></title>
<!-- Stylesheet(s) -->
<link rel="stylesheet" href="layout/css/style.css?aio=1">
<link rel="stylesheet" href="layout/fontawesome/css/font-awesome.min.css?aio=1">
<link rel="stylesheet" href="layout/css/resp.css?aio=1">
<!-- JavaScript(s) -->
<script src="layout/js/jquery.js" charset="utf-8"></script>
<?php if ($delay_hide > 0): ?>
<script src="layout/js/countdown.js" charset="utf-8"></script>
<?php endif; ?>
<script type="text/javascript">
$(document).ready(function(){
<?php if ($delay_hide > 0): ?>
countDown("countDownTimer", <?php echo $launch_seconds; ?>, "<?php echo $countDown_complete; ?>");
<?php endif; ?>
$('.loginBtn').click(function(){
$('.loginContainer input:first-of-type').focus();
});
$('#accountLink').click(function(e) {
if (this.href.indexOf('#') >= 0) {
console.log("hello", this.href, this.href.indexOf('#'));
$('.loginContainer input:first-of-type').focus();
}
});
});
</script>
</head>
<body<?php if (isset($page_filename) && strlen($page_filename) > 0) echo " class='page_{$page_filename}'"; ?>>
<!--
Layout author: Blackwolf (Snavy on otland)
Otland: https://otland.net/members/snavy.155163/
Facebook: http://www.facebook.com/idont.reallywolf.1
Twitter: @idontreallywolf
Converted to Znote AAC by: Znote
-->
<!-- Main container -->
<div class="main">
<?php include 'layout/menu.php'; ?>
<div class="well banner"></div>
<div class="well feedContainer preventCollapse">
<?php if ($delay_hide > 0): ?>
<div class="well topPane preventCollapse">
<div class="well pull-left">
<div id="countDownTimer" data-date="<?=$countDown?>"></div>
</div>
</div>
<?php endif; ?>
<!-- MAIN FEED -->
<div class="pull-left leftPane">