| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>NobleLibrary</title> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;800&display=swap'); | |
| :root { | |
| --bg: #f4f4f9; --text: #1e293b; --card-bg: #ffffff; | |
| --header-bg: rgba(255, 255, 255, 0.7); | |
| --accent: #4f46e5; --accent-hover: #4338ca; --border: #e2e8f0; | |
| --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05); | |
| --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05); | |
| --radius: 16px; | |
| } | |
| body.dark-mode { | |
| --bg: #0f172a; --text: #f8fafc; --card-bg: #1e293b; | |
| --header-bg: rgba(15, 23, 42, 0.7); --border: #334155; | |
| --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.3); | |
| --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.4); | |
| } | |
| body { | |
| font-family: 'Plus Jakarta Sans', sans-serif; | |
| background: var(--bg); color: var(--text); | |
| margin: 0; padding-bottom: 100px; transition: background 0.3s, color 0.3s; | |
| } | |
| /* Modern Header */ | |
| header { | |
| position: sticky; top: 0; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); | |
| background: var(--header-bg); border-bottom: 1px solid var(--border); | |
| padding: 15px 24px; z-index: 100; display: flex; justify-content: space-between; align-items: center; | |
| } | |
| header h1 { font-size: 1.4rem; margin: 0; font-weight: 800; letter-spacing: -0.5px; color: var(--accent); } | |
| .controls { display: flex; gap: 10px; } | |
| .btn { | |
| background: var(--card-bg); border: 1px solid var(--border); color: var(--text); | |
| padding: 8px 16px; border-radius: 20px; cursor: pointer; font-size: 0.85rem; font-weight: 600; | |
| transition: all 0.2s ease; box-shadow: var(--shadow-sm); | |
| } | |
| .btn:hover { border-color: var(--accent); transform: translateY(-1px); } | |
| .btn.active { background: var(--accent); color: white; border-color: var(--accent); } | |
| /* Navigation */ | |
| .nav-categories { | |
| background: transparent; padding: 15px 24px; display: flex; gap: 10px; | |
| overflow-x: auto; white-space: nowrap; scrollbar-width: none; | |
| position: sticky; top: 65px; z-index: 90; backdrop-filter: blur(8px); | |
| } | |
| .nav-categories::-webkit-scrollbar { display: none; } | |
| .nav-categories a { | |
| text-decoration: none; color: var(--text); font-size: 0.85rem; font-weight: 600; | |
| padding: 8px 18px; border-radius: 24px; background: var(--card-bg); | |
| border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: 0.2s; | |
| } | |
| .nav-categories a:hover { border-color: var(--accent); color: var(--accent); } | |
| .container { max-width: 1100px; margin: 0 auto; padding: 20px; } | |
| .category-section { margin-bottom: 50px; display: none; } | |
| .category-section.has-books { display: block; } | |
| .section-title { font-size: 1.5rem; margin-bottom: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; } | |
| .section-title::before { content: ''; display: block; width: 6px; height: 24px; background: var(--accent); border-radius: 4px; } | |
| /* Grid & Cards */ | |
| .library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; } | |
| .book-card { | |
| background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); | |
| padding: 20px; text-decoration: none; color: inherit; display: flex; flex-direction: column; | |
| height: 180px; box-shadow: var(--shadow-sm); transition: all 0.2s ease; position: relative; | |
| } | |
| .book-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--accent); } | |
| .book-title { font-weight: 700; font-size: 1rem; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; } | |
| /* Reading Button */ | |
| .open-btn { | |
| margin-top: auto; background: var(--bg); color: var(--text); border: 1px solid var(--border); | |
| text-align: center; padding: 10px; border-radius: 10px; font-size: 0.85rem; font-weight: 700; transition: 0.2s; | |
| } | |
| .book-card:hover .open-btn { background: var(--accent); color: white; border-color: var(--accent); } | |
| /* Manage Mode UI */ | |
| .bulk-checkbox { | |
| display: none; position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; | |
| accent-color: var(--accent); cursor: pointer; z-index: 10; | |
| } | |
| body.manage-mode .bulk-checkbox { display: block; } | |
| body.manage-mode .open-btn { display: none; } | |
| body.manage-mode .book-card { border: 2px dashed var(--border); } | |
| /* Floating Bulk Action Bar */ | |
| .bulk-action-bar { | |
| position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); | |
| background: var(--card-bg); border: 1px solid var(--border); box-shadow: var(--shadow-md); | |
| padding: 15px 25px; border-radius: 30px; display: flex; gap: 15px; align-items: center; | |
| transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 200; | |
| } | |
| body.manage-mode .bulk-action-bar { bottom: 30px; } | |
| .bulk-action-bar select { | |
| padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border); | |
| background: var(--bg); color: var(--text); font-family: inherit; font-weight: 600; | |
| } | |
| .bulk-btn { | |
| background: var(--accent); color: white; border: none; padding: 8px 20px; | |
| border-radius: 8px; font-weight: 700; cursor: pointer; font-family: inherit; | |
| } | |
| .bulk-btn:hover { background: var(--accent-hover); } | |
| /* Empty state styling */ | |
| .book-card-icon { font-size: 2rem; margin-bottom: 10px; opacity: 0.8; } | |
| </style> | |
| </head> | |
| <body> | |
| <header> | |
| <h1>NobleLibrary</h1> | |
| <div class="controls"> | |
| <button id="theme-toggle" class="btn">🌙 Theme</button> | |
| <button id="manage-toggle" class="btn">⚙️ Manage Books</button> | |
| </div> | |
| </header> | |
| <div class="nav-categories" id="nav-cats"></div> | |
| <div class="container" id="main-content"></div> | |
| <div class="bulk-action-bar"> | |
| <span style="font-weight: 600; font-size: 0.9rem;">Move selected to:</span> | |
| <select id="bulk-category-select"> | |
| ${categories.map(c => `<option value="${c}">${c}</option>`).join('')} | |
| </select> | |
| <button class="bulk-btn" onclick="applyBulkChanges()">Apply Change</button> | |
| </div> | |
| <script> | |
| let initialBooks = [{"filename": "Pwag wife loses bet_WebBook.html", "title": "Pwag wife loses bet", "category": "GF"}, {"filename": "School roommate blackmail_WebBook.html", "title": "School roommate blackmail", "category": "GF"}, {"filename": "Shotas dark skinned girlfriend-ntr_WebBook.html", "title": "Shotas dark skinned girlfriend-ntr", "category": "GF"}, {"filename": "Sister and her boyfriend corrupt girlfriend_WebBook.html", "title": "Sister and her boyfriend corrupt girlfriend", "category": "GF"}, {"filename": "Tomboy friend used_WebBook.html", "title": "Tomboy friend used", "category": "GF"}, {"filename": "Tomboy girlfriend became a topless maid_WebBook.html", "title": "Tomboy girlfriend became a topless maid", "category": "GF"}, {"filename": "Transmigrated and girlfriend used_WebBook.html", "title": "Transmigrated and girlfriend used", "category": "GF"}, {"filename": "Bully girlfriend taught a lesson_WebBook.html", "title": "Bully girlfriend taught a lesson", "category": "GF"}, {"filename": "Childhood friend ntr_WebBook.html", "title": "Childhood friend ntr", "category": "GF"}, {"filename": "Dark skinned girlfriend pulled over_WebBook.html", "title": "Dark skinned girlfriend pulled over", "category": "GF"}, {"filename": "Freinds teasing older sister_WebBook.html", "title": "Freinds teasing older sister", "category": "GF"}, {"filename": "Friends naive girlfriend_WebBook.html", "title": "Friends naive girlfriend", "category": "GF"}, {"filename": "Girlfriend at party_WebBook.html", "title": "Girlfriend at party", "category": "GF"}, {"filename": "Girlfriend tamed by bully_WebBook.html", "title": "Girlfriend tamed by bully", "category": "GF"}, {"filename": "Girlfriends sacrifice_WebBook.html", "title": "Girlfriends sacrifice", "category": "GF"}, {"filename": "Little brother plays truth and dare with girlfriend_WebBook.html", "title": "Little brother plays truth and dare with girlfriend", "category": "GF"}, {"filename": "Losing girlfriend in bet to older brother_WebBook.html", "title": "Losing girlfriend in bet to older brother", "category": "GF"}, {"filename": "My outgoing girlfriend is a cam girl_WebBook.html", "title": "My outgoing girlfriend is a cam girl", "category": "GF"}, {"filename": "Finding moms dark secret_WebBook.html", "title": "Finding moms dark secret", "category": "GF"}, {"filename": "Latinas daughter bbc dp_WebBook.html", "title": "Latinas daughter bbc dp", "category": "GF"}, {"filename": "Lesbian sister used by bullys_WebBook.html", "title": "Lesbian sister used by bullys", "category": "GF"}, {"filename": "Losing daughter in bet to bully_WebBook.html", "title": "Losing daughter in bet to bully", "category": "GF"}, {"filename": "Mom hypnotized by friend_WebBook.html", "title": "Mom hypnotized by friend", "category": "GF"}, {"filename": "Mother and principal_WebBook.html", "title": "Mother and principal", "category": "GF"}, {"filename": "Mother fufiles bet-Ntr_WebBook.html", "title": "Mother fufiles bet-Ntr", "category": "GF"}, {"filename": "Mothers apolgy gift_WebBook.html", "title": "Mothers apolgy gift", "category": "GF"}, {"filename": "Musclar sister wrestles brothers freinds_WebBook.html", "title": "Musclar sister wrestles brothers freinds", "category": "GF"}, {"filename": "My mothers huge ass_WebBook.html", "title": "My mothers huge ass", "category": "GF"}, {"filename": "Only boy in a family full of women_WebBook.html", "title": "Only boy in a family full of women", "category": "GF"}, {"filename": "Pushover sister truth or dare_WebBook.html", "title": "Pushover sister truth or dare", "category": "GF"}, {"filename": "Siater shows friends her boobs_WebBook.html", "title": "Siater shows friends her boobs", "category": "GF"}, {"filename": "Sister blackmailed by friends_WebBook.html", "title": "Sister blackmailed by friends", "category": "GF"}, {"filename": "Sister loses bet_WebBook.html", "title": "Sister loses bet", "category": "GF"}, {"filename": "Sisters dare gangbang_WebBook.html", "title": "Sisters dare gangbang", "category": "GF"}, {"filename": "Stepbrother takes advantage of mother_WebBook.html", "title": "Stepbrother takes advantage of mother", "category": "GF"}, {"filename": "Sweaty big sister loses bet to friend_WebBook.html", "title": "Sweaty big sister loses bet to friend", "category": "GF"}, {"filename": "Blackmailing cheating mom_WebBook.html", "title": "Blackmailing cheating mom", "category": "GF"}, {"filename": "Blackmailing elder sistertxt_WebBook.html", "title": "Blackmailing elder sistertxt", "category": "GF"}, {"filename": "Daughter at glory hole_WebBook.html", "title": "Daughter at glory hole", "category": "GF"}]; | |
| const categories = ["GF", "Incest", "Futa", "Fantasy", "Other"]; | |
| const render = () => { | |
| const content = document.getElementById('main-content'); | |
| const nav = document.getElementById('nav-cats'); | |
| content.innerHTML = ''; | |
| nav.innerHTML = ''; | |
| const groups = {}; | |
| categories.forEach(c => groups[c] = []); | |
| initialBooks.forEach(book => { | |
| if(groups[book.category]) groups[book.category].push(book); | |
| else groups[categories[0]].push(book); | |
| }); | |
| // Render Nav | |
| categories.forEach(cat => { | |
| // THE \s WARNING FIX | |
| const catId = cat.replace(/\\s+/g, '-').toLowerCase(); | |
| const link = document.createElement('a'); | |
| link.href = `#${catId}`; | |
| link.innerText = `${cat} (${groups[cat].length})`; | |
| nav.appendChild(link); | |
| // Render Sections | |
| const section = document.createElement('div'); | |
| section.className = `category-section ${groups[cat].length > 0 ? 'has-books' : ''}`; | |
| section.id = catId; | |
| section.innerHTML = `<h2 class="section-title">${cat}</h2>`; | |
| const grid = document.createElement('div'); | |
| grid.className = 'library-grid'; | |
| groups[cat].forEach(book => { | |
| const card = document.createElement('div'); | |
| card.className = 'book-card'; | |
| card.innerHTML = ` | |
| <input type="checkbox" class="bulk-checkbox" value="${book.filename}"> | |
| <div class="book-card-icon">📘</div> | |
| <div class="book-title">${book.title}</div> | |
| <a href="${book.filename}" class="open-btn">Read Novel</a> | |
| `; | |
| // Allow clicking the card in manage mode to toggle checkbox | |
| card.onclick = (e) => { | |
| if (document.body.classList.contains('manage-mode') && e.target.tagName !== 'INPUT') { | |
| e.preventDefault(); | |
| const cb = card.querySelector('.bulk-checkbox'); | |
| cb.checked = !cb.checked; | |
| } | |
| }; | |
| grid.appendChild(card); | |
| }); | |
| section.appendChild(grid); | |
| content.appendChild(section); | |
| }); | |
| // Update the select menu in the bulk bar | |
| const bulkSelect = document.getElementById('bulk-category-select'); | |
| bulkSelect.innerHTML = categories.map(c => `<option value="${c}">${c}</option>`).join(''); | |
| }; | |
| // --- Bulk Action Logic --- | |
| window.applyBulkChanges = () => { | |
| const selectedCheckboxes = document.querySelectorAll('.bulk-checkbox:checked'); | |
| const targetCategory = document.getElementById('bulk-category-select').value; | |
| if (selectedCheckboxes.length === 0) { | |
| alert("Please select at least one book first!"); | |
| return; | |
| } | |
| selectedCheckboxes.forEach(cb => { | |
| const book = initialBooks.find(b => b.filename === cb.value); | |
| if(book) book.category = targetCategory; | |
| }); | |
| render(); // Re-render the grid | |
| // Let the user know they need to re-run the python script to make it permanent | |
| alert(`Successfully moved ${selectedCheckboxes.length} books to ${targetCategory}.\n\nNote: To save these changes permanently, remember to upload this updated index.html back into the Python Generator!`); | |
| }; | |
| // Toggles | |
| document.getElementById('manage-toggle').onclick = (e) => { | |
| document.body.classList.toggle('manage-mode'); | |
| e.target.classList.toggle('active'); | |
| // Uncheck everything when exiting manage mode | |
| if (!document.body.classList.contains('manage-mode')) { | |
| document.querySelectorAll('.bulk-checkbox').forEach(cb => cb.checked = false); | |
| } | |
| }; | |
| document.getElementById('theme-toggle').onclick = () => { | |
| document.body.classList.toggle('dark-mode'); | |
| localStorage.setItem('lib-theme', document.body.classList.contains('dark-mode') ? 'dark' : 'light'); | |
| }; | |
| // Init | |
| if(localStorage.getItem('lib-theme') === 'dark') document.body.classList.add('dark-mode'); | |
| render(); | |
| </script> | |
| </body> | |
| </html> |
Xet Storage Details
- Size:
- 15.9 kB
- Xet hash:
- a39747166e74c2a60e0a1220dd5df78f1f080a0f085bbd4f7f11a22e37561e54
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.