Download index.html from rpuLLIa/1testttt: direct link, hf CLI and curl.
- Browser
- Download file 32.9 kB
-
https://huggingface.co/spaces/rpuLLIa/1testttt/resolve/main/index.html
- Command line
-
hf download hf://spaces/rpuLLIa/1testttt/index.html
-
curl -L -o index.html https://huggingface.co/spaces/rpuLLIa/1testttt/resolve/main/index.html
32.9 kB
| <html lang="ru"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Аналитика продаж Wildberries</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| .resize-handle { | |
| width: 4px; | |
| height: 100%; | |
| background: #e5e7eb; | |
| cursor: col-resize; | |
| position: absolute; | |
| right: 0; | |
| top: 0; | |
| z-index: 10; | |
| } | |
| .resize-handle:hover { | |
| background: #3b82f6; | |
| } | |
| .status-indicator { | |
| width: 20px; | |
| height: 20px; | |
| border-radius: 50%; | |
| transition: all 0.3s ease; | |
| } | |
| .status-good { | |
| background-color: #10b981; | |
| box-shadow: 0 0 10px #10b981; | |
| } | |
| .status-warning { | |
| background-color: #f59e0b; | |
| box-shadow: 0 0 10px #f59e0b; | |
| } | |
| .table-container { | |
| overflow-x: auto; | |
| max-width: 100%; | |
| } | |
| .column-visible { | |
| display: table-cell; | |
| } | |
| .column-hidden { | |
| display: none; | |
| } | |
| .report-row:hover { | |
| background-color: #f3f4f6; | |
| cursor: pointer; | |
| } | |
| .date-input:disabled { | |
| background-color: #f3f4f6; | |
| color: #6b7280; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <div class="container mx-auto px-4 py-8"> | |
| <h1 class="text-3xl font-bold text-gray-800 mb-6">Аналитика продаж Wildberries</h1> | |
| <!-- Фильтры и загрузка --> | |
| <div class="bg-white rounded-lg shadow-md p-6 mb-6"> | |
| <h2 class="text-xl font-semibold text-gray-700 mb-4">Фильтры отчетов</h2> | |
| <div class="flex flex-wrap items-center gap-4"> | |
| <div class="flex items-center gap-2"> | |
| <label for="start-date" class="text-gray-600">Начальная дата:</label> | |
| <input type="date" id="start-date" class="date-input border rounded px-3 py-2"> | |
| </div> | |
| <div class="flex items-center gap-2"> | |
| <label for="end-date" class="text-gray-600">Конечная дата:</label> | |
| <input type="date" id="end-date" class="date-input border rounded px-3 py-2" disabled> | |
| </div> | |
| <div class="status-indicator status-good" id="status-indicator" title="Все отчеты загружены"></div> | |
| <button id="load-reports" class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded flex items-center gap-2"> | |
| <i class="fas fa-download"></i> | |
| <span>Загрузить отчеты</span> | |
| </button> | |
| <div class="ml-auto"> | |
| <button id="toggle-columns" class="bg-gray-200 hover:bg-gray-300 text-gray-700 px-4 py-2 rounded flex items-center gap-2"> | |
| <i class="fas fa-eye"></i> | |
| <span>Настроить столбцы</span> | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Кнопки фильтрации периодов --> | |
| <div class="flex gap-2 mt-4 overflow-x-auto pb-2"> | |
| <button class="period-filter bg-blue-100 text-blue-800 px-3 py-1 rounded-full text-sm hover:bg-blue-200" data-period="week">Неделя</button> | |
| <button class="period-filter bg-gray-100 text-gray-800 px-3 py-1 rounded-full text-sm hover:bg-gray-200" data-period="month">Месяц</button> | |
| <button class="period-filter bg-gray-100 text-gray-800 px-3 py-1 rounded-full text-sm hover:bg-gray-200" data-period="quarter">Квартал</button> | |
| <button class="period-filter bg-gray-100 text-gray-800 px-3 py-1 rounded-full text-sm hover:bg-gray-200" data-period="year">Год</button> | |
| <button class="period-filter bg-gray-100 text-gray-800 px-3 py-1 rounded-full text-sm hover:bg-gray-200" data-period="all">Все время</button> | |
| <button class="period-filter bg-gray-100 text-gray-800 px-3 py-1 rounded-full text-sm hover:bg-gray-200" data-period="custom">Произвольный</button> | |
| </div> | |
| </div> | |
| <!-- Таблица отчетов --> | |
| <div class="bg-white rounded-lg shadow-md p-6"> | |
| <h2 class="text-xl font-semibold text-gray-700 mb-4">Еженедельные отчеты</h2> | |
| <div class="table-container"> | |
| <table class="w-full border-collapse" id="reports-table"> | |
| <thead> | |
| <tr class="bg-gray-100 text-gray-700 text-left"> | |
| <th class="border p-2 relative" data-column="period"> | |
| <div class="flex justify-between items-center"> | |
| <span>Период</span> | |
| <button class="toggle-column" data-column="period"><i class="fas fa-eye"></i></button> | |
| </div> | |
| <div class="resize-handle"></div> | |
| </th> | |
| <th class="border p-2 relative" data-column="revenue"> | |
| <div class="flex justify-between items-center"> | |
| <span>Выручка</span> | |
| <button class="toggle-column" data-column="revenue"><i class="fas fa-eye"></i></button> | |
| </div> | |
| <div class="resize-handle"></div> | |
| </th> | |
| <th class="border p-2 relative" data-column="orders"> | |
| <div class="flex justify-between items-center"> | |
| <span>Заказы</span> | |
| <button class="toggle-column" data-column="orders"><i class="fas fa-eye"></i></button> | |
| </div> | |
| <div class="resize-handle"></div> | |
| </th> | |
| <th class="border p-2 relative" data-column="redemptions"> | |
| <div class="flex justify-between items-center"> | |
| <span>Выкупы</span> | |
| <button class="toggle-column" data-column="redemptions"><i class="fas fa-eye"></i></button> | |
| </div> | |
| <div class="resize-handle"></div> | |
| </th> | |
| <th class="border p-2 relative" data-column="redemption-rate"> | |
| <div class="flex justify-between items-center"> | |
| <span>% выкупов</span> | |
| <button class="toggle-column" data-column="redemption-rate"><i class="fas fa-eye"></i></button> | |
| </div> | |
| <div class="resize-handle"></div> | |
| </th> | |
| <th class="border p-2 relative" data-column="logistics"> | |
| <div class="flex justify-between items-center"> | |
| <span>Логистика</span> | |
| <button class="toggle-column" data-column="logistics"><i class="fas fa-eye"></i></button> | |
| </div> | |
| <div class="resize-handle"></div> | |
| </th> | |
| <th class="border p-2 relative" data-column="ads"> | |
| <div class="flex justify-between items-center"> | |
| <span>Реклама</span> | |
| <button class="toggle-column" data-column="ads"><i class="fas fa-eye"></i></button> | |
| </div> | |
| <div class="resize-handle"></div> | |
| </th> | |
| <th class="border p-2 relative" data-column="ads-rate"> | |
| <div class="flex justify-between items-center"> | |
| <span>% рекламы</span> | |
| <button class="toggle-column" data-column="ads-rate"><i class="fas fa-eye"></i></button> | |
| </div> | |
| <div class="resize-handle"></div> | |
| </th> | |
| <th class="border p-2 relative" data-column="profit-before-tax"> | |
| <div class="flex justify-between items-center"> | |
| <span>Прибыль до нал.</span> | |
| <button class="toggle-column" data-column="profit-before-tax"><i class="fas fa-eye"></i></button> | |
| </div> | |
| <div class="resize-handle"></div> | |
| </th> | |
| <th class="border p-2 relative" data-column="profit-after-tax"> | |
| <div class="flex justify-between items-center"> | |
| <span>Прибыль после нал.</span> | |
| <button class="toggle-column" data-column="profit-after-tax"><i class="fas fa-eye"></i></button> | |
| </div> | |
| <div class="resize-handle"></div> | |
| </th> | |
| </tr> | |
| </thead> | |
| <tbody id="reports-body"> | |
| <!-- Данные будут загружены здесь --> | |
| </tbody> | |
| </table> | |
| </div> | |
| <div class="mt-4 text-gray-500 text-sm" id="report-count"> | |
| Показано 0 отчетов | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Модальное окно настроек столбцов --> | |
| <div id="columns-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50"> | |
| <div class="bg-white rounded-lg p-6 w-full max-w-md"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 class="text-lg font-semibold">Настройка видимых столбцов</h3> | |
| <button id="close-modal" class="text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div class="space-y-2"> | |
| <div class="flex items-center"> | |
| <input type="checkbox" id="col-period" class="mr-2" checked> | |
| <label for="col-period">Период</label> | |
| </div> | |
| <div class="flex items-center"> | |
| <input type="checkbox" id="col-revenue" class="mr-2" checked> | |
| <label for="col-revenue">Выручка</label> | |
| </div> | |
| <div class="flex items-center"> | |
| <input type="checkbox" id="col-orders" class="mr-2" checked> | |
| <label for="col-orders">Заказы</label> | |
| </div> | |
| <div class="flex items-center"> | |
| <input type="checkbox" id="col-redemptions" class="mr-2" checked> | |
| <label for="col-redemptions">Выкупы</label> | |
| </div> | |
| <div class="flex items-center"> | |
| <input type="checkbox" id="col-redemption-rate" class="mr-2" checked> | |
| <label for="col-redemption-rate">% выкупов</label> | |
| </div> | |
| <div class="flex items-center"> | |
| <input type="checkbox" id="col-logistics" class="mr-2" checked> | |
| <label for="col-logistics">Логистика</label> | |
| </div> | |
| <div class="flex items-center"> | |
| <input type="checkbox" id="col-ads" class="mr-2" checked> | |
| <label for="col-ads">Реклама</label> | |
| </div> | |
| <div class="flex items-center"> | |
| <input type="checkbox" id="col-ads-rate" class="mr-2" checked> | |
| <label for="col-ads-rate">% рекламы</label> | |
| </div> | |
| <div class="flex items-center"> | |
| <input type="checkbox" id="col-profit-before-tax" class="mr-2" checked> | |
| <label for="col-profit-before-tax">Прибыль до нал.</label> | |
| </div> | |
| <div class="flex items-center"> | |
| <input type="checkbox" id="col-profit-after-tax" class="mr-2" checked> | |
| <label for="col-profit-after-tax">Прибыль после нал.</label> | |
| </div> | |
| </div> | |
| <div class="mt-6 flex justify-end space-x-3"> | |
| <button id="apply-columns" class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded"> | |
| Применить | |
| </button> | |
| <button id="reset-columns" class="bg-gray-200 hover:bg-gray-300 text-gray-700 px-4 py-2 rounded"> | |
| Сбросить | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| document.addEventListener('DOMContentLoaded', function() { | |
| // Элементы интерфейса | |
| const startDateInput = document.getElementById('start-date'); | |
| const endDateInput = document.getElementById('end-date'); | |
| const statusIndicator = document.getElementById('status-indicator'); | |
| const loadReportsBtn = document.getElementById('load-reports'); | |
| const reportsBody = document.getElementById('reports-body'); | |
| const reportCount = document.getElementById('report-count'); | |
| const toggleColumnsBtn = document.getElementById('toggle-columns'); | |
| const columnsModal = document.getElementById('columns-modal'); | |
| const closeModalBtn = document.getElementById('close-modal'); | |
| const applyColumnsBtn = document.getElementById('apply-columns'); | |
| const resetColumnsBtn = document.getElementById('reset-columns'); | |
| const periodFilters = document.querySelectorAll('.period-filter'); | |
| // Настройка начальной и конечной даты | |
| const today = new Date(); | |
| const lastMonday = getLastMonday(today); | |
| const nextSunday = getNextSunday(today); | |
| startDateInput.valueAsDate = lastMonday; | |
| endDateInput.valueAsDate = nextSunday; | |
| // Обработчики событий для дат | |
| startDateInput.addEventListener('change', function() { | |
| const selectedDate = new Date(this.value); | |
| const dayOfWeek = selectedDate.getDay(); | |
| // Проверяем, что выбрана дата понедельника | |
| if (dayOfWeek !== 1) { | |
| alert('Пожалуйста, выберите понедельник в качестве начальной даты'); | |
| this.valueAsDate = getLastMonday(selectedDate); | |
| return; | |
| } | |
| // Устанавливаем воскресенье той же недели | |
| const sunday = new Date(selectedDate); | |
| sunday.setDate(selectedDate.getDate() + 6); | |
| endDateInput.valueAsDate = sunday; | |
| // Проверяем статус отчетов | |
| checkReportsStatus(); | |
| }); | |
| endDateInput.addEventListener('change', function() { | |
| const selectedDate = new Date(this.value); | |
| const dayOfWeek = selectedDate.getDay(); | |
| // Проверяем, что выбрана дата воскресенья | |
| if (dayOfWeek !== 0) { | |
| alert('Пожалуйста, выберите воскресенье в качестве конечной даты'); | |
| this.valueAsDate = getNextSunday(selectedDate); | |
| return; | |
| } | |
| // Устанавливаем понедельник той же недели | |
| const monday = new Date(selectedDate); | |
| monday.setDate(selectedDate.getDate() - 6); | |
| startDateInput.valueAsDate = monday; | |
| // Проверяем статус отчетов | |
| checkReportsStatus(); | |
| }); | |
| // Обработчик кнопки загрузки отчетов | |
| loadReportsBtn.addEventListener('click', function() { | |
| loadReports(); | |
| }); | |
| // Обработчики для модального окна настроек столбцов | |
| toggleColumnsBtn.addEventListener('click', function() { | |
| columnsModal.classList.remove('hidden'); | |
| }); | |
| closeModalBtn.addEventListener('click', function() { | |
| columnsModal.classList.add('hidden'); | |
| }); | |
| applyColumnsBtn.addEventListener('click', function() { | |
| applyColumnSettings(); | |
| columnsModal.classList.add('hidden'); | |
| }); | |
| resetColumnsBtn.addEventListener('click', function() { | |
| resetColumnSettings(); | |
| }); | |
| // Обработчики для фильтрации периодов | |
| periodFilters.forEach(filter => { | |
| filter.addEventListener('click', function() { | |
| // Удаляем активный класс у всех кнопок | |
| periodFilters.forEach(f => f.classList.remove('bg-blue-100', 'text-blue-800')); | |
| periodFilters.forEach(f => f.classList.add('bg-gray-100', 'text-gray-800')); | |
| // Добавляем активный класс текущей кнопке | |
| this.classList.remove('bg-gray-100', 'text-gray-800'); | |
| this.classList.add('bg-blue-100', 'text-blue-800'); | |
| const period = this.dataset.period; | |
| applyPeriodFilter(period); | |
| }); | |
| }); | |
| // Инициализация перетаскивания для изменения ширины столбцов | |
| initColumnResizing(); | |
| // Загрузка тестовых данных | |
| loadSampleData(); | |
| // Функции | |
| function getLastMonday(date) { | |
| const d = new Date(date); | |
| const day = d.getDay(); | |
| const diff = d.getDate() - day + (day === 0 ? -6 : 1); // adjust when day is Sunday | |
| return new Date(d.setDate(diff)); | |
| } | |
| function getNextSunday(date) { | |
| const d = new Date(date); | |
| const day = d.getDay(); | |
| const diff = d.getDate() + (day === 0 ? 0 : 7 - day); | |
| return new Date(d.setDate(diff)); | |
| } | |
| function checkReportsStatus() { | |
| // Здесь должна быть логика проверки статуса отчетов | |
| // Для демонстрации случайным образом устанавливаем статус | |
| const isGood = Math.random() > 0.3; | |
| if (isGood) { | |
| statusIndicator.classList.remove('status-warning'); | |
| statusIndicator.classList.add('status-good'); | |
| statusIndicator.title = "Все отчеты загружены"; | |
| } else { | |
| statusIndicator.classList.remove('status-good'); | |
| statusIndicator.classList.add('status-warning'); | |
| statusIndicator.title = "Есть проблемы с отчетами"; | |
| } | |
| } | |
| function loadReports() { | |
| const startDate = new Date(startDateInput.value); | |
| const endDate = new Date(endDateInput.value); | |
| // Здесь должна быть логика загрузки отчетов с сервера | |
| // Для демонстрации используем тестовые данные | |
| console.log(`Загрузка отчетов с ${startDate.toLocaleDateString()} по ${endDate.toLocaleDateString()}`); | |
| // Показываем индикатор загрузки | |
| loadReportsBtn.innerHTML = '<i class="fas fa-spinner fa-spin"></i> <span>Загрузка...</span>'; | |
| loadReportsBtn.disabled = true; | |
| // Имитируем задержку загрузки | |
| setTimeout(() => { | |
| loadSampleData(); | |
| loadReportsBtn.innerHTML = '<i class="fas fa-download"></i> <span>Загрузить отчеты</span>'; | |
| loadReportsBtn.disabled = false; | |
| }, 1000); | |
| } | |
| function loadSampleData() { | |
| // Очищаем таблицу | |
| reportsBody.innerHTML = ''; | |
| // Генерируем тестовые данные | |
| const startDate = new Date(startDateInput.value); | |
| const endDate = new Date(endDateInput.value); | |
| // Вычисляем количество недель между датами | |
| const weeksDiff = Math.ceil((endDate - startDate) / (7 * 24 * 60 * 60 * 1000)); | |
| // Генерируем данные для каждой недели | |
| for (let i = 0; i < weeksDiff; i++) { | |
| const weekStart = new Date(startDate); | |
| weekStart.setDate(startDate.getDate() + (i * 7)); | |
| const weekEnd = new Date(weekStart); | |
| weekEnd.setDate(weekStart.getDate() + 6); | |
| // Генерируем случайные данные для отчета | |
| const revenue = Math.floor(Math.random() * 500000) + 100000; | |
| const orders = Math.floor(Math.random() * 500) + 100; | |
| const redemptions = Math.floor(orders * (0.7 + Math.random() * 0.2)); | |
| const redemptionRate = (redemptions / orders * 100).toFixed(1); | |
| const logistics = Math.floor(revenue * (0.05 + Math.random() * 0.05)); | |
| const ads = Math.floor(revenue * (0.1 + Math.random() * 0.05)); | |
| const adsRate = (ads / revenue * 100).toFixed(1); | |
| const profitBeforeTax = revenue - logistics - ads - (revenue * 0.15); | |
| const profitAfterTax = profitBeforeTax * 0.8; | |
| // Создаем строку таблицы | |
| const row = document.createElement('tr'); | |
| row.className = 'report-row border-b hover:bg-gray-50'; | |
| row.dataset.id = `report-${i}`; | |
| row.innerHTML = ` | |
| <td class="border p-2 column-visible" data-column="period">${formatDateRange(weekStart, weekEnd)}</td> | |
| <td class="border p-2 column-visible" data-column="revenue">${formatCurrency(revenue)}</td> | |
| <td class="border p-2 column-visible" data-column="orders">${orders}</td> | |
| <td class="border p-2 column-visible" data-column="redemptions">${redemptions}</td> | |
| <td class="border p-2 column-visible" data-column="redemption-rate">${redemptionRate}%</td> | |
| <td class="border p-2 column-visible" data-column="logistics">${formatCurrency(logistics)}</td> | |
| <td class="border p-2 column-visible" data-column="ads">${formatCurrency(ads)}</td> | |
| <td class="border p-2 column-visible" data-column="ads-rate">${adsRate}%</td> | |
| <td class="border p-2 column-visible" data-column="profit-before-tax">${formatCurrency(profitBeforeTax)}</td> | |
| <td class="border p-2 column-visible" data-column="profit-after-tax">${formatCurrency(profitAfterTax)}</td> | |
| `; | |
| // Добавляем обработчик клика для перехода к детальному отчету | |
| row.addEventListener('click', function() { | |
| window.location.href = `report-details.html?id=${this.dataset.id}`; | |
| }); | |
| reportsBody.appendChild(row); | |
| } | |
| // Обновляем счетчик отчетов | |
| reportCount.textContent = `Показано ${weeksDiff} отчетов`; | |
| } | |
| function formatDateRange(startDate, endDate) { | |
| const options = { day: 'numeric', month: 'short' }; | |
| return `${startDate.toLocaleDateString('ru-RU', options)} - ${endDate.toLocaleDateString('ru-RU', options)}`; | |
| } | |
| function formatCurrency(amount) { | |
| return new Intl.NumberFormat('ru-RU', { style: 'currency', currency: 'RUB', maximumFractionDigits: 0 }).format(amount); | |
| } | |
| function initColumnResizing() { | |
| const resizableColumns = document.querySelectorAll('th[data-column]'); | |
| let startX, startWidth, column; | |
| resizableColumns.forEach(col => { | |
| const handle = col.querySelector('.resize-handle'); | |
| handle.addEventListener('mousedown', function(e) { | |
| e.preventDefault(); | |
| column = col; | |
| startX = e.clientX; | |
| startWidth = column.offsetWidth; | |
| document.addEventListener('mousemove', handleMouseMove); | |
| document.addEventListener('mouseup', handleMouseUp); | |
| }); | |
| }); | |
| function handleMouseMove(e) { | |
| const newWidth = startWidth + (e.clientX - startX); | |
| column.style.width = `${newWidth}px`; | |
| } | |
| function handleMouseUp() { | |
| document.removeEventListener('mousemove', handleMouseMove); | |
| document.removeEventListener('mouseup', handleMouseUp); | |
| } | |
| } | |
| function applyColumnSettings() { | |
| const columns = [ | |
| 'period', 'revenue', 'orders', 'redemptions', 'redemption-rate', | |
| 'logistics', 'ads', 'ads-rate', 'profit-before-tax', 'profit-after-tax' | |
| ]; | |
| columns.forEach(col => { | |
| const isVisible = document.getElementById(`col-${col}`).checked; | |
| const cells = document.querySelectorAll(`[data-column="${col}"]`); | |
| cells.forEach(cell => { | |
| if (isVisible) { | |
| cell.classList.remove('column-hidden'); | |
| cell.classList.add('column-visible'); | |
| } else { | |
| cell.classList.remove('column-visible'); | |
| cell.classList.add('column-hidden'); | |
| } | |
| }); | |
| }); | |
| } | |
| function resetColumnSettings() { | |
| const checkboxes = document.querySelectorAll('#columns-modal input[type="checkbox"]'); | |
| checkboxes.forEach(checkbox => { | |
| checkbox.checked = true; | |
| }); | |
| } | |
| function applyPeriodFilter(period) { | |
| const today = new Date(); | |
| let startDate, endDate; | |
| switch (period) { | |
| case 'week': | |
| startDate = getLastMonday(today); | |
| endDate = getNextSunday(today); | |
| break; | |
| case 'month': | |
| startDate = new Date(today.getFullYear(), today.getMonth(), 1); | |
| startDate = getLastMonday(startDate); | |
| endDate = new Date(today.getFullYear(), today.getMonth() + 1, 0); | |
| endDate = getNextSunday(endDate); | |
| break; | |
| case 'quarter': | |
| const quarter = Math.floor(today.getMonth() / 3); | |
| startDate = new Date(today.getFullYear(), quarter * 3, 1); | |
| startDate = getLastMonday(startDate); | |
| endDate = new Date(today.getFullYear(), (quarter + 1) * 3, 0); | |
| endDate = getNextSunday(endDate); | |
| break; | |
| case 'year': | |
| startDate = new Date(today.getFullYear(), 0, 1); | |
| startDate = getLastMonday(startDate); | |
| endDate = new Date(today.getFullYear(), 11, 31); | |
| endDate = getNextSunday(endDate); | |
| break; | |
| case 'all': | |
| startDate = new Date(2020, 0, 1); | |
| startDate = getLastMonday(startDate); | |
| endDate = today; | |
| endDate = getNextSunday(endDate); | |
| break; | |
| case 'custom': | |
| // Для произвольного периода просто активируем поля ввода | |
| startDateInput.disabled = false; | |
| endDateInput.disabled = false; | |
| return; | |
| default: | |
| return; | |
| } | |
| // Устанавливаем даты и блокируем поля ввода | |
| startDateInput.valueAsDate = startDate; | |
| endDateInput.valueAsDate = endDate; | |
| startDateInput.disabled = true; | |
| endDateInput.disabled = true; | |
| // Загружаем отчеты | |
| loadReports(); | |
| } | |
| // Инициализация | |
| checkReportsStatus(); | |
| }); | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=rpuLLIa/1testttt" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |