lab3 with dop

This commit is contained in:
Your Name~ 2023-12-19 14:12:39 +04:00
parent 0e5d2349fd
commit 9911a7f776
4 changed files with 25 additions and 4 deletions

View File

@ -43,14 +43,14 @@
<main class="container-fluid p-2">
<h1 class="text-warning text-center font-weight-bold">Панель администратора</h1>
<h1 class="text-Gray text-center font-weight-bold">Панель администратора</h1>
<div class="text-center">
<div class="btn-group" role="group">
<a class="btn btn-warning" href="/editpage.html">Добавить фильм</a>
<a class="btn btn-default" href="/editpage.html">Добавить фильм</a>
</div>
</div>
<div>
<h2 class="text-warning text-center font-weight-bold" style="padding-top: 10px;">Таблица данных</h2>
<h2 class="text-Gray text-center font-weight-bold" style="padding-top: 10px;">Таблица данных</h2>
<table id="items-table" class="table table-striped">
<thead>
<th scope="col"></th>

File diff suppressed because one or more lines are too long

View File

@ -174,7 +174,7 @@ document.addEventListener('DOMContentLoaded', function () {
}else if (window.location.pathname.includes("page3.html")) {
// Запуск функции для page3.html
loadMoviesBygenre();
}else if (window.location.pathname.includes("index.html")) {
}else if (window.location.pathname.includes("index.html")||"/") {
// Запуск функции для index.html
loadMoviesindex();
}

View File

@ -12,9 +12,12 @@ export const cntrls = {
imagePreview: document.getElementById("image-preview"),
};
export const imagePlaceholder = "https://via.placeholder.com/300x400";
export function createItemsOption(name, value = "", isSelected = false) {
var today = new Date().toJSON().split('T')[0];
releaseDate.value = today
const option = document.createElement("option");
option.value = value || "";
option.selected = isSelected;