Pibd-21_Ievlewa_M.D._Intern.../signingIn.html
2023-12-10 21:07:47 +03:00

122 lines
5.4 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.

<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>About</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="/">Главная</a></li>
<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">
<!-- <p id="toggle-menu" onclick="toggleMenu()">Кликни здесь для открытия/закрытия меню</p> -->
<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 p-2">
<div class="row">
<main class="center">
<div id="video-container">
<video id="video" autoplay muted loop></video>
<div class="text-button-overlay">
<div class="container mt-3">
<form class="needs-validation" method="get" novalidate>
<div class="mb-1">
<label for="name" class="form-label">Логин</label>
<input type="text" class="form-control" id="name" placeholder="Логин" required>
<div class="valid-feedback">Логин заполнен</div>
<div class="invalid-feedback">Логин не заполнен</div>
</div>
<div class="mb-1">
<label for="password" class="form-label">Пароль</label>
<input type="password" class="form-control" id="password" placeholder="Пароль" required>
</div>
<button type="submit" class="btn btn-primary">Вход</button>
<p onclick="location.href='./registration.html'">Регистрация</p>
</form>
</div>
</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>
<script type="module">
import validation from "./js/validation";
document.addEventListener('DOMContentLoaded', () => {
validation();
});
</script>
</body>
</html>