跳转到主要内容

第31章 虎毒不食子

作者:咸鱼老白
(�/�dF�r:��)7P��H�9�u�%+]�:�[�������E %����@�&�`b��4M9���u��f����-+�&^m�4!&���9�$d�19�e���=��Y�g4��}��Z*Oʵә�W� �Y�����E�{f�g&|4??ߨ���ٲ&�zZ��t`�J�8�q�AyR�*w�kmH�kҋ]��6���}��T#p! [˘-�ʧ�%!<��\s৬�g [^�D�� �qi�v��Y�F��»�Sy��I���G�5�7��jP� <ps�#���-G�ER�����O�l9I�U9S8G���3�_�>����r^.d��?�A�S �����*gP��+њ�z�h̖%���# x�2f���/���e�w �Ʈ/@uH� � )������Ɵ:�4fK��3��O�L�y�|vF� �|\���������nw�ȞI{&mAڂ4�H4G�I�:z`v�ݓ��﹙��R ��u�>��7r���|̖����$d��X���89�� �̄�-�������r��M�3ʗ��1[Z�1�s4�0q���v��keN�W�����! ψ\ /�k��3��clI�y�S� �re� ��tn&���O���Z�%x���w�� ���$�9�3�0�<�L�VN1�eF�N��ƭ�;FH�Ț�w(c�u~�uH��/(/jc�)t�,]Ke�?\.�u��Z�b�����L������Y�k�©�њ��V����,�%�����/�cGj�&$���ՓT$"p!�k-GL��n�]S�OOH���h��ȗ�=���eFӼc~j#OԻ�Lt-v[�Q��_�|Fd����I�&�‘GH�r!QVc2ʕ274nU 7�|��_�&>�ْA�C@Z���=�_���!=7��pȌ���c��܌���Āc�Ԍ�QQNU���.�ߪ�H�k�� }�0���%��Ly�����b� ε� �2>f˃�)�gD�8M`i �1[ZB��t7�>8:���r3AhmY4h�iwQ��]̖�E�R]h��1[v_P�'��i����.,��4Ē[m�1�2dQ����c퉴^��E�O���k�� �A�$գ��Q�O@d�h�⢐�s3�q��� �f��En��.d��eK�ބzǨ ��ʦ�+����x_+���p�CzZ��l�ڃ�eJE�h��쌼2fK���H��7R���*W��h�=@=$3�G��GA_���`:����ke�c�3�1[ y���Q6h8�@�2�<�@6*��U+��GY��6zA��(hH� ՟���E9�9�D;.�_m�V>0��5fˌs�P]�噢 7(O�� ʛ�r��(�e̖ͱ�{Z ���Jy#x��FD�(��H�ȡ������j���i�Q.��c ���FfPfp�A�D�"������ �d ���AZk�?D�ڮA�,e]}����[� ��&�|Cꌲ���r���Ӧ�?.'��l��ǨQ���J���;��=)c�K9�\��=�g�9< �0@`� \����"�k��$Q�����#($�{̖���FXmX|&t/�-�!�p^�U�q�&s�����ƔP~��u›��%r�� �%>�!A���LI�y�ᓅW�/��qpFx�qM�&�}�{��cڣ�����hj�����ڇ��M��l�Q\<� ʛ ��|� |mJ|��fd �f�����L-���ץNs >I5���v��5� �b@=Wr����'��M�����(�@�Q�wz��G��Oރ^�:}!x�]��7�k���"��GlSGW�KR8���?���+ 9����&Yn�݉�I���{H�إ�3bé��_�CZ�G�� �0��"u��.%D�B�l�UOO�A9uq���9RzF�3�����3"�]�Dg�;�� ���:e��@��i? ʙDs �U9lt������2Bu=���'�@N��I��R��1jЂrf��C�/G_��(�}��"�y�����z=�[��J��s=���}����5e|�Q� ~DyB���NʋIf��H� Y+w(+���P㱁F�.'Ԍ�%�NR���E ʓTOH�2>؁��hk_�]�r��i�Ջ�>Iu��_Gf���{�<�@~��l �zs!��z�F�UT�:=�26�B������1 P0�)��41`0���P)%�4��DpBXA���v�A1�c#Lu�AK�aj��/[�=���!j��P�!}��庐X���� �K�WA{�Rڜ���Z��b*��В)S��.�>���D��o�ke^P�E܇ �;XA�� �FM0N�>�x��۷D1��1\4XE��c'!�{]�.˅�^C�m��� c: S��� ��L�aU�<���yj�E���+ӓ�K'6 ��@t@�E�y�릑��6���� u��Ch �� o�C/݋�{u�U�va�.RЈ0[헓����k�)�������'DB򠠛��X�Ƶ��pqwm����*\��#�A�S�C�N.� N���� gM���� ]ӰX�\@c��S�"ֽ��6[�2�����*�r��_P�����‘�#`�l:3��u�]��]r����;���|s%�D����]��p"�@49W���aV�ܙ�� { // 初始化认证状态 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: 'kjhhzbsjnnmm', chapterId: '8559897', novelTitle: '开局合欢宗,被师姐拿捏命脉', chapterTitle: '第31章 虎毒不食子', 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 看小说网 版权所有