81 lines
2.6 KiB
HTML
81 lines
2.6 KiB
HTML
<!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>
|
||
|
||
|