Deprecated: mb_substr(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/kxs-php/controllers/NovelController.php on line 303
G部(5) - 蛮村的荒唐事 跳转到主要內容

G部(5)

作者:张六庄
(�/�d�mN��\C cs&�{��< �����"jF�XD!�Ԍсؐu�k� �Ae�)^c�6�€ ��*$Ђ���*���_�I��(lj��c_�\�-�=g��ᰅd�kְ? ���/���p�a_��"d�6-�޳���m+l:�����p� r̶�6�����G�1۵Q��٦�'J(�P¦�]���(��a��`�t��<�qz}���1����mk0�Y��Y��S�cR�D��=��K��yF�6f���{v_N���� �1ۣ�Ňk�;P�������� �3&���m��z�� ��_�[#�p�ڰv15���i. �ޮ����2���ˤ/_�,�yG-�L��Qf����!��S��7v%�(���#���Q�z��I�r��'f��� ��<=2Fl��Ý�4Y�� [��܈��0�=��������?�7"�R��{�0�<��q�)�����@��1}Dlj�Z�+$~"�!&�pE�-��"����=C�+½��;H<�})�h��� �^�y9L]�pxS"��Lm����� 屇ieN�����='J^�p�v�^x�G>2[��{b�\:��6���ȃ���;��lc(c7�E��`Į0�K4�����\�z���K�0�u_�}���y�^Tb#�y�ˈ'�_�[�T�f��p�3"r�'�o��a���A{�{Q���CB�|l���d^�I[d}�8f��5��0$�%�A�1�k*?�=h�%�Lmk!�j�6�y�3?�g�w�3� c��zFD&aN1��!&���0+����U�)(L^H_�{De�s�� �C �I�2�̄� _�Sە�Vs ���}�˜���&}��Z�K��؆h�݄Zh���e�=C29�q�s�Dȣ�����+��u*��#S�Kh��,o)s�sP��=i�# �!;����ݶ–�O�~z�'��Ԇ��#�&�q���C�c�I�)�g}��O��Rf��q�Ԇ#&�ьQ�v��lG8��aO#�s*Z ��ȗ2'X��8Fl�cp�v�Vؕ�S�!�o�G���B� �k�&}�26g��S�T���3 \�M���0�4�{f�S� [����7�7����<�zj×�JÙ �,��<������P.�)*Om؁�a�SN�Q��G�g��q0�͑ݹ�c�~�e^Ҽ�~���2��Q F��_/)�nӋ� ��s �F�ڰ�!��֬'a^�Y��u����o ΂���{r*�Ut�'(���qe��x�y��/�{�@�B�0=���pK�+�-g�<���>�� �G$�Rf ٓ��9j1JA��c*~h^�������=E�)*���p}%��m�-*9��3�7�E�s�d^i�����'��\C6(s��%����������� N&UL�ʗ &�y%6$�?��2O"��r%6��#d0�d`@pA�^L0�P`�|�� P�p�A�=ɱ/ч�-e��B�� { // 初始化认证状态 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: 'mcdhts', chapterId: '58250198', novelTitle: '蛮村的荒唐事', chapterTitle: 'G部(5)', 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('书签已存在'); } }); });

看小說網

看小說網是您最喜歡的免費小說閱讀網站。提供海量全本小說免費閱讀,所有小說無廣告干擾,是您值得收藏的小說網站。

© 2023 看小說網 版权所有