deleted dead code

This commit is contained in:
esef committed 2026-07-12 18:22:19 +03:00
1 parent a65b782e0e
commit fca0e2f96a
5 files changed
+21 -27

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
node_modules/
.vscode/
__pycache__/
*.pyc
Thumbs.db
*.log
.DS_Store
+1 -4
View File
@@ -2,7 +2,6 @@
<html>
<head>
<link rel="stylesheet" href="style/styles.css">
<link rel="stylesheet" href="style/about.css">
<link rel="stylesheet" href="style/gallery.css">
<link rel="stylesheet" href="style/ahmet.css">
<link rel="stylesheet" href="style/comments.css">
@@ -110,9 +109,7 @@
<script src="js/gallery.js" defer></script>
<script src="js/hideBroken.js" defer></script>
<script src="js/tabs.js" defer></script>
<script src="js/gallery.js" defer></script> <script src="js/tabs.js" defer></script>
<!-- Firebase SDK (loaded before comments.js) -->
<script src="https://www.gstatic.com/firebasejs/10.12.0/firebase-app-compat.js"></script>
+3
View File
@@ -103,6 +103,9 @@ document.addEventListener('DOMContentLoaded', () => {
return;
}
// Firebase is configured — hide the setup warning
if (warning) warning.style.display = 'none';
// ── Firebase init ────────────────────────────────────────────
firebase.initializeApp(FIREBASE_CONFIG);
const db = firebase.firestore();
+10 -10
View File
@@ -43,17 +43,17 @@ document.addEventListener('DOMContentLoaded', () => {
// Try loading original full quality image: jpg -> png -> gif
const tryLoad = (extensions) => {
if (extensions.length === 0) return; // All failed
const testExt = extensions.shift();
if (extensions.length === 0) return; // All failed
const testExt = extensions.shift();
const tempImg = new Image();
tempImg.onload = () => {
lightboxImg.src = tempImg.src; // Success! Show it.
};
tempImg.onerror = () => {
tryLoad(extensions); // Failed, try next extension
};
tempImg.src = `${folderName}/${i}.${testExt}`;
const tempImg = new Image();
tempImg.onload = () => {
lightboxImg.src = tempImg.src; // Success! Show it.
};
tempImg.onerror = () => {
tryLoad(extensions); // Failed, try next extension
};
tempImg.src = `${folderName}/${i}.${testExt}`;
};
// Start trying to find the full image
-13
View File
@@ -1,13 +0,0 @@
#about-link-btn {
background-color:aliceblue;
color:#f0f8ff;
border: none;
padding: 12px 24px;
border-radius: 8px;
cursor: pointer;
transition: box-shadow 0.3s ease;
}
#about-link-btn:hover {
box-shadow: 0 0 10px #02e3ff;
}