Pibd-21_Ievlewa_M.D._Intern.../index.html
2023-12-03 18:52:09 +03:00

102 lines
4.3 KiB
HTML
Raw Permalink 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.

<html lang="ru">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.cdnfonts.com/css/correction-tape" rel="stylesheet">
<title>TicketsBook</title>
<script type="module" src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<link href="./node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/>
<link href="./node_modules/@fortawesome/fontawesome-free/css/all.min.css" rel="stylesheet"/>
<link rel="stylesheet" href="./style.css">
<script>
function getRandomVideo() {
var videos = [
"videos/mainVideo1.mp4",
"videos/mainVideo2.mp4",
"videos/mainVideo3.mp4",
"videos/mainVideo4.mp4"
];
var randomIndex = Math.floor(Math.random() * videos.length);
var randomVideo = videos[randomIndex];
var videoElement = document.getElementById("video");
videoElement.src = randomVideo;
}
</script>
<script>
function toggleMenu() {
var menuWrapper = document.getElementById("menu-wrapper");
menuWrapper.classList.toggle("open");
}
</script>
</head>
<body class="h-100 d-flex flex-column">
<div id="menu-wrapper">
<div id="menu">
<ul>
<li><a href="./page2(cinema).html">Кино</a></li>
<li><a href="./page2(concerts).html">Концерты</a></li>
<li><a href="./page2(theatre).html">Театр</a></li>
<li><a href="./myTickets.html">Мои билеты</a></li>
<li><a href="./about.html">О сайте</a></li>
</ul>
</div>
</div>
<header>
<nav class="navbar navbar-expand-md navbar-dark">
<div class="container-fluid">
<a id="toggle-menu" onclick="toggleMenu()">
<h1>TicketsBook</h1>
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse justify-content-end" id="navbarNav">
<div class="navbar-nav">
<a class="nav-link" href="./signingIn.html">вход/регистрация</a>
<a class="nav-link" href="./lkAdmin.html">админ</a>
</div>
</div>
</div>
</nav>
</header>
<main class="container-fluid">
<div class="row">
<main class="center">
<div id="video-container">
<video id="video" class="w-100" autoplay muted loop></video><!--w-100?-->
<div class="text-button-overlay">
<div class="text-overlay">
TicketsBook
</div>
<div class="underText-overlay">
Сайт для покупки билетов
</div>
<div class="button-overlay">
<button onclick="location.href='./about.html'">Начать покупку -></button>
</div>
</div>
</div>
<script>
window.addEventListener('DOMContentLoaded', (event) => { getRandomVideo(); });
window.addEventListener('resize', (event) => { setOverlayPosition(); });
function setOverlayPosition() {
var videoElement = document.getElementById("video");
var textOverlayElement = document.getElementById("text-overlay");
textOverlayElement.style.top = (videoElement.offsetHeight / 2 - textOverlayElement.offsetHeight / 2) + "px";
textOverlayElement.style.left = (videoElement.offsetWidth / 2 - textOverlayElement.offsetWidth / 2) + "px";
}
</script>
</main>
</div>
</main>
<footer class="footer mt-auto d-flex flex-shrink-0 justify-content-center align-items-center">
Иевлева Милана, 2023
</footer>
</body>
</html>
<!doctype html>