跳转到主要内容

第173章 重要的事

作者:文钞公
(�/�dZ#ş�0a87@��������L�(:Za�1B�����T���Dh$2uUUUUUU���wxx�7��/����J� �ZO*9�H�����9��s4rҺ�x�߽|nɄ*�x�X]U+9dM��W�Ys%vx���j��,�5[_�97����C<�h)��Z���n"�/SݭՊ�v��٭���#T\Uk0�ѤT��M[g[gYQ���B_��@��DS�eP�Ih�-O�זц�7��䀯�t-2W��B�; 14_gD�ANu�o�,W�85���s���x:p0h�ǯ�t�jCw����>!�Ak�ڎwJ����xrd���J�Ih�!��SH[��2���)�fy~����l�����\3}{<�xc�1�%��|�Ad��[���^���5��j�?ī@:��N㘅.�\�� �k����HkG�F!���x��63h�n���J :��vRZ��W�&�O j*� ���QKAN&��ѹ�E&����x���@_5.��a6<�?�s�s�S��J���O����>��h�|������КT�Ǩ����w�G�U�R�(l���"k��(�H�#�>=� �y\����I!�Z�.�#[r��R�uP���Y�`CB>�*�i#po@�1{U�� .�t��1?�__t�3�iz(��Ea���K� Q�O�Oj�Ei�\��]��"�`����hM�"ʽ�����X��BWJ�O䎒U$�Q-�]�ד��� �j���u�k����U� �5�+*4��蕒��xG�(�b�Tw'��h]U r�VK��+�5�����Tw��UW!| �B���� �a����J���,��;ޯ��dt@ f��lk��/�+%{��P�%.(q(�5�:M+h'��@��� �ZAW�Ũ��S��y�;��V�Nт����@̆�Ag<�U�l��, JH�Pqx�T`�ͥ�;�����@˔�Z����H ��v�ܪZ����T� � p�� ���>�x�"����Oa���Tw�]�����z�do%��\Q SJ, d�j5pǻ�vD�M�F�`1t%;Q��B�#|h��]2�GZcԎ����ғZW���۠��{��C�1_nP\�5��Ow��[����T_�mm��6Q�O�M8�p�z]�\�t��"�ӡw���&����C��&�J<�.��k<9�u�,���#�Ea� �0��lk��j��LnG�j�r��.!��>��Xd ���D Z����� f�k�z(\�X�H� ���%��͜U�|I� "�L�+�Ė�K��$t��L� �� ���E��- � ��";�D _P�Ad�����ؠq� � �/.\Q�i-�'�=���PJ|]���1����(`�[�Ϊ���F������4.n��ga��ɽ����5-�5'^GvQ�Ux�B�k<}�}L�E��Px�k��W��[R�F;���cj7�=X`�,�G�GmɄ'�3S�e|Xt����D�����hG�m <�9hk������#���ڋ� �3�� ��ꁅ�h])Y |�Ԗ�Ԋ�m]�v�5���'�T��74���LC�b��9S�n�h#�8��\3�BZ����y���TwB��] ��jC�3�;i]^r9�5_/������+Y��I-�s��h4(���"��-}���(��̖�~W{�B4�-X�#b�%�'�b�Q�jS�3�Z�Ɓ)&̕8A��O�����ڐ�$���I��j���;z��*|(�H�U�E��,�3��?L\!a�����ƨ=>���V���L0������zA$�q.����32b640CqI2��0�s�3�#57MZ�>���}t91Ԓ�.-N����j�s�c��Q<����ai�����3�1�/����ݣ��я.���W�?_�\���� �5�K�{��D���]����)�\2��]��N�%���O��1�C��Iԋ�%dF��A�@��-)���uUmU-���C�E$���@��Ӂ��j?���Z�� r�;9Q``�1��-�{� 1W��� P��-o3���B�G�8���Liy��pA[K9��s�����W� o=>�@�x��Tw)�|6� y�����X��ZN 1�]�� _�N|�-�e��qQ������V�;�� �5jE��IZ>$2��.� �Q����"�}�(�a��E�;b6P�Uز郱���E ��:�J��dx�U�\� �C��9��٨�J\���Ԋ�s���Ϊi2��w��^3���'^�Z��D'>�׈%ƨ-5أ���j��r%��a�f��㒚c���c�@k�;������p@�h̗<�<=Қ�:���ZH�ڈ�Ҏ��>�D-��I&2���"_�i�rG\S�]�����/hk��%�7�Am�z'5��w�OZ�۹`���|~��0�Z�k��#^�xC�+%l�E+�.82L���n��=������  _U�Q{�����X�#�]WJ6b�B�+%[K����xr`p���ƫH�&��`�>�~�'Ǣ�bF��$j�hA��L8��Y� 1{��n�1jC�#NL�Q��y�� �{�\)�����-���;c���ʥ�Oj;h����%�8zQ���RJ\U[!� r��;�? ���k������thkԣw'��Z��>@�N"������^�A�A�@���-���B�� x���h��˛&my}9��������#���!܍6bu�⇉���vo�.�����80�p���� ,�Lc_0\)ّ֗����7�'����(r(��s��L�� �6�Ț�g��<�0�8F�f6��D���E�A��Va�a�/LarI}��&��ܗ;�W@��j�w@wd�Hˠv3p�q��P_8b�5�,�-ɽ�e����-.g�b���]�����~M|��X�%p�� ��8W�8���F�;�/���kH��S�=X` r��2�3g�2�8B�G� �����x'#��/�x�\ �ʖ���lE^Ճ�-�N���o���.b��-�د-�z���j����@w?X��iE�2�c�Nj;��ʖ�5�ެ��E�\4��D>��`d�`��ګ��Z�2HA~Ih���]� "/�K*^@���H ڪ�Px�-f��U�e�Փ���Q�*��uL�GZ����d�Q;鲸�K��uH�C�$l�–-�`N&�9%�Ao.ƹ�����x��۠�z��f�p��;\�e����v��V��\ ����ĸ��\ǻ�a���BjD��<Ԃ�W�P+�9�^��*��0�A�e@#� "��<�a5���` � $B'x�n�ЫzgP��6V~ܛ� k~��{�r���@c� �2O?��v�_���a ����X��s���)�p��V�D�Y*����L3m9�Q��(6�bn'��ƻ�|��!ԳH�׬�`�SЧ�#�Ⱥ��a)�s��W����>��1˯�@�_.�nR}I���L9� �!��@l��"�U�P3Mk�i���d8@�%Y��K�7�؄cӼ�{ z���J�x�J�[�z�~�a��ס�Q�,�e���^��(�x ��6lk߆ �ܹ)1S.z����if�]xB�����}Ŧ�%-��� =���Ln���������5�(~;b=��B��j&611�AT\j�o�a��1�q'ȊGv��s)�nu���T�^��x� �3� ��f�`�I�֏���`Co�i���q�5�*O^�ٺ����T��a�}A��"��u��|�}wE��j����x�ޏ�w����=6�A��B�1�%���ۢ�M���y�L �Y�r/�[ u����!� �S�΄K5��M� ]Lj�as �)�n��cn�}0�#NE# [@E�Z��#�-A�ߩ�ՠu��^2��<���?�>Q;��<�W����f� �z �Yh�DhNF��6�n�W�\VS�� e8`_��Z��E�6��i��S���Aho�y� V���A7��mg�wC����n��$Q���țSR�&�P=e ��(0~n�gg�@w��޸흧S0������%ȳ���+���#��c�\6mH��8�,�;*���H�(Aiuq�B+ẳo���ܕX�A7�>�@�L_ � { // 初始化认证状态 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: 'xingnong', chapterId: '85804161', novelTitle: '星农', chapterTitle: '第173章 重要的事', 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 看小说网 版权所有