跳转到主要內容

第190章 往生堂豪华套餐火热预定中

作者:倾染冰颜
(�/�d1]�<D S����Y��1�)=�Vm��V0��jZTCv�����R��1�u<"��) ���m6 ���^�S�jtxC���"{�\�)'�l�6��,�#Jy�`���#�ݴ���a���k7����|xG�ɂfc�o�Y[p�Cy^���#S��m"a�r�ĵ�����'� e�D�@�"� ��@'ds��n�aO�=�]u�t�#�ϋw7Ų~�0��$ُ���WT��tR��57�h���/gƜ�"��B? .���<�6�̏�?&_u�q�-9���w�z ��� <��L!}r���������:^^�Y��rQ�C�\^��i��µ�~�p�S�3a�nꉼ#{$�T(sH_m�H8���×3g�.�Ev�q*�E� ��鵛�_x��į�k���= TsS�w7��B�n�q���� e[ds��4����z� �{B�갣��1t�l���GJl�pRٓ�u��ț���M7��M5g��m�YR�`�&u�榙�j{R��7��F��yr��±P�\�����N�[dgvRy ���'/rx���!�+*�(�v��O|n]�8��㚛�*������\}R��� �d������B^�k�V(��� �=���ʋ<��,�Adf ��/�(Sb�4�a��ڏp_QajtSL� �c�|fRٕٛ�(T��C{���M��7��18�=ʚ�O�􀭊���خ� �$�b���l+z�aS�BY�9If�l��H����~��#�*�vӪÙ�Kc�F��显��NT���4����G J!�Qĵ�Ie��KƎ8=$������#�,<#[�iE����� c�_ڲ�N��(f��Ó�)�3g�">�$���!�e��M'�g��V� ��*��)@�:�e~��\�ٮ\)q��˙���m��E� sC�ݴ��p��?�k7�$^ub9ۙ*A�bp�J`� `�o��0OHX�x��������M�7�^�A�˛ ��r�}�a �M�ڂ{8لdꦠ ��)$��,;d�{��$:e�y̙�F�n�8T �ȗD����<�Ȇ��Wv���Ǚ߰�.�.� �c���� ۗ��m �\OYP���ɏ�5���~c��}�^>�x����?@�cz��� ���q>� �cz/�I�<��Q^��i��u��7fsH_I�w��e`���a����!�7(��ۘ��M9��l?��p�ë���m��"���7f��\��5���b�sL�[�V���S_���^ĹÙ��o���c �@�ݔ�ꡛm䫄%�Ma���[cά��Iīk<�I�.����5��|�m>*e��5\/|d�#�7fo�)P��n�a��M��4@�c��uG�Ǧ���c��X���Fº��/�5�l�C;�w�S�<��갉uPК�g��� �����`�3`?����� 3Hv��֌��tcvxy˅_ά��L�H�%��6��T��c��dL�K�!� Dx���(`� <��Al  4��.��t7��R� ���8i��A�k�� ���#� �\�,/^�e>f��=�Y{��3o̦ٖ�m���cޛ�[l~��E �a�v���H����7ۢ�7�w��ʗ6���z�J��9����)��*W������$��)Iv�a��c6fS7��E6��"N���0Et�n��1��89�L��Ш9S_��� 1s 1sf[�jf0�l�٧0^���&a�)��@E �F�Ev���*�F�nz ��z �9̠yN黏k7�خ~�y�;�KcS����Na6�tR� �8yCٞ���l��M%�fܷ\�it�$"N�<�^=�x�=U3��@{�߱�y�W%`2������暱;Ԃ����&���s���dІ�S�J���q�O$�y��N���f���f�)��磏o�$\��Oxd�� g�� ����W��S�3T‚N0�Q�f ��q�a)"%0C!�0���9���3C � APM.y��}��5�zC����)&@�$��JX��2|�����[:r|)�F�dG<�8/�������^�s�^�Q>�H_T/SG��;��w���3*v7$����Fi�~���ط6��9_;�>J�be���c>$�c#9o;�Cgߤ�]���+V��?���Dǃ�5h��$�x �9Q��E iU2�e��ë�k�V������Ȧ�Ol��t�a { // 初始化认证状态 initAuthState(); // 注意:閱讀歷史已由reading_history.js自动处理,无需手动调用 const themeToggle = document.getElementById('theme-toggle'); const themeToggleIcon = document.getElementById('theme-toggle-icon'); const html = document.documentElement; // 检查本地存储中的主题偏好 const currentTheme = localStorage.getItem('theme') || 'light'; html.classList.add(currentTheme); // 更新图标 if (themeToggleIcon) { themeToggleIcon.className = currentTheme === 'dark' ? 'ri-moon-line text-xl' : 'ri-sun-line text-xl'; } // 切换主题 if (themeToggle) { themeToggle.addEventListener('click', () => { const isDark = html.classList.contains('dark'); if (isDark) { html.classList.remove('dark'); html.classList.add('light'); localStorage.setItem('theme', 'light'); if (themeToggleIcon) { themeToggleIcon.className = 'ri-sun-line text-xl'; } } else { html.classList.remove('light'); html.classList.add('dark'); localStorage.setItem('theme', 'dark'); if (themeToggleIcon) { themeToggleIcon.className = 'ri-moon-line text-xl'; } } }); } // 字体大小调整 const content = document.querySelector('.reading-container'); const fontDecreaseBtn = document.getElementById('font-decrease'); const fontIncreaseBtn = document.getElementById('font-increase'); const readingModeBtn = document.getElementById('reading-mode'); const addBookmarkBtn = document.getElementById('add-bookmark'); // 从本地存储获取字体大小設置 let fontSize = parseInt(localStorage.getItem('fontSize')) || 18; content.style.fontSize = `${fontSize}px`; // 减小字体 fontDecreaseBtn.addEventListener('click', () => { if (fontSize > 14) { fontSize -= 1; content.style.fontSize = `${fontSize}px`; localStorage.setItem('fontSize', fontSize); } }); // 增大字体 fontIncreaseBtn.addEventListener('click', () => { if (fontSize < 26) { fontSize += 1; content.style.fontSize = `${fontSize}px`; localStorage.setItem('fontSize', fontSize); } }); // 閱讀模式切换 readingModeBtn.addEventListener('click', () => { document.body.classList.toggle('reading-mode'); if (document.body.classList.contains('reading-mode')) { // 隐藏导航和其他元素,只显示內容区 document.querySelector('header').style.display = 'none'; document.querySelectorAll('.section-container > *:not(main)').forEach(el => { el.style.display = 'none'; }); document.querySelector('main').classList.add('reading-mode-active'); document.querySelector('.fixed.bottom-0').style.display = 'none'; // 隐藏移动端底部导航 } else { // 恢复正常显示 document.querySelector('header').style.display = ''; document.querySelectorAll('.section-container > *:not(main)').forEach(el => { el.style.display = ''; }); document.querySelector('main').classList.remove('reading-mode-active'); document.querySelector('.fixed.bottom-0').style.display = ''; // 显示移动端底部导航 } }); // 书签功能 addBookmarkBtn.addEventListener('click', () => { const bookmarks = JSON.parse(localStorage.getItem('bookmarks') || '[]'); const currentBookmark = { novelId: 'bhysxtsdecssgz', chapterId: '31879453', novelTitle: '崩坏原神星铁:沙雕二创社死观众', chapterTitle: '第190章 往生堂豪华套餐火热预定中', timestamp: new Date().toISOString() }; // 检查是否已存在相同的书签 const exists = bookmarks.some(bookmark => bookmark.novelId === currentBookmark.novelId && bookmark.chapterId === currentBookmark.chapterId ); if (!exists) { // 限制书签数量为10個 if (bookmarks.length >= 10) { bookmarks.pop(); // 移除最旧的书签 } bookmarks.unshift(currentBookmark); // 添加到最前面 localStorage.setItem('bookmarks', JSON.stringify(bookmarks)); // 显示成功提示 alert('书签添加成功'); } else { alert('书签已存在'); } }); });