мелочи
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0">
|
||||
<title>Trashbox</title>
|
||||
<link rel="shortcut icon" href="/logo.png" type="image/png">
|
||||
<title>Trashbox - личная помоечка</title>
|
||||
<link rel="shortcut icon" href="/pic.svg" type="image/svg">
|
||||
<link rel="stylesheet" href="/cgi-bin/style.cgi">
|
||||
<meta property="og:image" content="https://home.mashup.su/og.png" />
|
||||
<meta property="og:image:width" content="600" />
|
||||
@@ -21,7 +21,7 @@
|
||||
<meta name="twitter:image" content="https://home.mashup.su/og.png" />
|
||||
<meta name="description" content="Моя личная помоечка" />
|
||||
<meta name="keywords" content="RomkaZVO, mashup, mashup su, файлы, обмен, скачать, загрузить" />
|
||||
|
||||
|
||||
<script>
|
||||
function getCookie(name) {
|
||||
const value = `; ${document.cookie}`;
|
||||
@@ -37,7 +37,6 @@
|
||||
})();
|
||||
</script>
|
||||
<style>
|
||||
/* Все кнопки в едином стиле */
|
||||
.preview-btn,
|
||||
.copy-btn,
|
||||
.download-btn {
|
||||
@@ -67,7 +66,6 @@
|
||||
transform: scale(1.05) !important;
|
||||
}
|
||||
|
||||
/* Уведомление */
|
||||
#copyNotification {
|
||||
position: fixed;
|
||||
bottom: 80px;
|
||||
@@ -97,15 +95,22 @@
|
||||
</head>
|
||||
<body>
|
||||
<button class="theme-toggle" onclick="toggleTheme()">🌙</button>
|
||||
|
||||
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<h1>Trashbox</h1>
|
||||
<div style="margin-top: 0.5rem; opacity: 0.9; font-size: 1.1rem;">
|
||||
Моя личная помоечка
|
||||
<div style="display:flex;align-items:center;justify-content:center;gap:0.0002rem;flex-wrap:wrap;">
|
||||
<img src="/pic.svg" alt="Trashbox" style="max-width:120px;height:auto;border-radius:12px;flex-shrink:0;">
|
||||
<div>
|
||||
<h1 style="margin:0;">Trashbox</h1>
|
||||
<div style="opacity:0.9;font-size:1.1rem;margin-top:0.2rem;">
|
||||
Склад всякой всячины
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="text-align:center;padding:0.5rem 1rem;font-size:1.1rem;color:var(--text-secondary);border-bottom:1px solid var(--border-color);background:var(--bg-primary);">
|
||||
<span style="opacity:0.7;">Личный уголок для обмена файлами. Заливаю сюда то, чем хочу поделиться, без всяких лимитов и сторонних сервисов.</span>
|
||||
</div>
|
||||
<div class="content">
|
||||
<!--BREADCRUMB-->
|
||||
<!--CONTENT-->
|
||||
@@ -117,9 +122,9 @@
|
||||
<span>Навайбкодил с любовью ❤️</span>
|
||||
<a href="https://romkazvo.ru" target="_blank" class="footer-link">RomkaZVO</a><br>
|
||||
Работает на BusyBox httpd и Nginx для SSL<br>
|
||||
Исходники<a href="https://git.mashup.su/RomkaZVO/Trashbox" target="_blank" class="footer-link">здесь</a><br>
|
||||
Исходники <a href="https://git.mashup.su/RomkaZVO/Trashbox" target="_blank" class="footer-link">здесь</a><br>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="status" style="margin-top: 1rem; font-size: 0.8rem; opacity: 0.7; line-height: 1.4;">
|
||||
Загрузка статистики...
|
||||
</div>
|
||||
@@ -223,7 +228,6 @@
|
||||
return true;
|
||||
};
|
||||
|
||||
// === СКАЧИВАНИЕ ФАЙЛА ===
|
||||
window.downloadFile = function(path) {
|
||||
const link = document.createElement('a');
|
||||
link.href = path;
|
||||
@@ -233,7 +237,6 @@
|
||||
document.body.removeChild(link);
|
||||
};
|
||||
|
||||
// === КОПИРОВАНИЕ ССЫЛКИ ===
|
||||
window.copyLink = function(path) {
|
||||
const url = window.location.origin + path;
|
||||
if (navigator.clipboard && navigator.clipboard.writeText) {
|
||||
@@ -322,7 +325,8 @@
|
||||
frame.style.display = 'block';
|
||||
|
||||
const fileName = fileUrl.split('/').pop();
|
||||
title.textContent = 'Предпросмотр: ' + fileName;
|
||||
const decodedFileName = decodeURIComponent(fileName);
|
||||
title.textContent = decodedFileName;
|
||||
|
||||
const fileExt = fileName.split('.').pop().toLowerCase();
|
||||
const imageTypes = ['jpg', 'jpeg', 'png', 'gif', 'webp', 'bmp', 'svg', 'ico'];
|
||||
|
||||
Reference in New Issue
Block a user