81 lines
2.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8" />
<title>{auto_title}</title>
<meta name="keywords" content="{meta_keywords}">
<meta name="description" content="{meta_description}">
<meta name="viewport" content="width=device-width, initial-scale=1">
<base href="{_SITE_ROOT_}">
<link rel="icon" href="favicon.ico">
{include:include/_static_css_headers.htm}
{include:include/_static_js_headers.htm}
{add_headers}
</head>
<body class="container-fluid h-100 px-0">
<div class="row h-100 no-gutters">
<!-- Левая колонка (меню) -->
<div class="col-3 left-col px-2 pt-3">
<div class="d-flex align-items-center mb-4">
<img src="assets/img/logo.png"
class="mr-3"
style="height:70px;width:auto;">
<div class="font-weight-bold" style="font-size:28px; line-height:1.2;">
Психоневрологический<br>диспансер №8
</div>
</div>
{menu}
</div>
<!-- Правая колонка (контент) -->
<div class="col pl-4 ml-4 right-col position-relative pr-0">
<div id="bigcontent-wrapper" class="h-100 position-relative">
<div class="h-100" style="overflow: auto;">
{body}
</div>
</div>
</div>
</div>
<script>
(function () {
var REDIRECT_TIMEOUT = 3 * 60 * 1000; // 3 минуты
var timer = null;
function resetTimer() {
clearTimeout(timer);
timer = setTimeout(function () {
window.location.href = "/";
}, REDIRECT_TIMEOUT);
}
// Сброс на любое действие пользователя
var events = ['click', 'mousemove', 'keydown', 'scroll', 'touchstart'];
events.forEach(function (ev) {
window.addEventListener(ev, resetTimer, true);
});
// Сброс на прокрутку контентной области
document.addEventListener("DOMContentLoaded", function() {
var content = document.querySelector('#bigcontent-wrapper');
if (content) {
content.addEventListener('scroll', resetTimer, true);
}
});
// Запуск при открытии страницы
resetTimer();
})();
</script>
</body>
</html>