跳转到主要内容

第5章 新的发现

作者:未知
(�/�dA$=�Za4B a����vx�GZ���[g �P���0��h��d7�`)�A5�pEQ��#�����j�Լ�U;-0��F���f�" ����@}?TlQ�n�:���%�k(�u���~"����GP��ZR7�,�[a�Jl11�����Ҙ�LU>i��*�V�;�g7E/M~*q�>�Gs�!g7e4|��)��heo���(]�zvS�S�GF&�H�ܹ�f9�d[ Z����p�ɣS6�l��x�^l�LR~� �/�&��H� ��٢����T�y�8�8,S��,^�xVv���jO�؏�C6�a���6�� ��x�� �������\�� �C3OPM<��$��ᝤn>Q���0#��M=�W�5� ��4A�{�]� ��t!���\>.tv�Qek����5��/��z}*1���uU�+X\c�e���3�<��<~N&�f�'���Tb����[��4,�����c�g7��7Ѭ�n���:�V�9�6&x�Xr� �ƹ/݈l�b�����O�g�r�Đ���T�$.�.u�C�ȓ��="?�V�c|�b��r�br���/��N>GGܴV���P2�]-N��*t�{����F0>�d�� J�`��<����3 -dFk�[�.+�즙�?M�^��!��Ƭh��B��ç��><>_��� ,���M����.G̬M�m��Jl}K[IgR�-�>Em ?�q�>��#�M@�>(�9Tّǃ_�,\�������(K].@0@����L%�\>Ap�� 0: L��������g�'�L�P ��<�y�9ON؜��a���it�ZU�f9��b�b�� �E���Z�g���� �ߏ�W���������@R��|�Ɉ�@Rު�|a�i�?�k3���8s��y���r �f� =u���(���a�p�� ��{��Υk���ʧ?z����S��3�T���#G[7-��M1�+� N9��B�H��M���o�/A���Y\/`��el��/�/`|�U�f�nʅ^[��Z8�b YѾ�\��j���DI�D=�X����n��^��p���r���������w�g7�J�|B��sP� d}e��� n��o�|��i���ȫ�/��,�0�T�zY_��4q���� f��st����;?����M?��7��9��/ܛ��]Dy��+3K]�F~�>�2q��+P�F�9g�L�,-V�.�LLf(��,�f���)X�`9�d��� ��A���m�b�u����%��"��kV��1~(�j��%S��x~`b+��C,�I -B��#�ϥ�bbq� N���u�'B�D p��#�?Z��Th�z���!�wF_0��T?�7��TCiO�C/K��z�p�Ӊ��I_�8��st����刌��?:~������e��#O�,v���D�JL&r�>��O���3K]�82�Ě�]��M�$?_e+�j��Ao*�iq��S�����Y~1�C|F#�+P�: ��T�� �Y?<��67@� ���Z�Q$���n�Z�׉�Sk:�Oㅑج�`�-_*Z�|*�f��%sJ��7�z�ܜ�� �,��@ ��Ɠ���B�/ �u ?~��8�i6�8�=� Qg:�k<�j�D}Ȩ�=��4�A�x��AK���Y\�X�L�{��LU��W�O�K]n� �]��}`���f}��m�z��yg���G�7�/�N�6� �&>�Ȕ�d�9��� /� ݐ�������SwF2�h���@L%ƄNI]Vh��uwF�n�?�6����}Hi��"�E�Ɠ7 �����o��}H�J�S���"�E�k6��Q�G���"䳛2Xo`�faC�ߜ��|�\af����g��|N��A����F�JAuy3Ô�\��R�$����L���xU�E�q�5��b��إŜ3k'IY�x�I]f4|��d�HK]�c$�*�,�������z���#�X<�8�=���ġ��$��8rw��:ds��4���!6�r��Y�E�F`���"�O�Y<���hUb�f�n�.:�u!0��<�zs.p_�8�jF�/�$�w��5GP=���#0Z�2H����MV� ���f^��P��B�r������j� ç�,neY�Q�.)�x$�6ygt�����G�\-6^Z"{��T3L �� ^o��絢���Ћ�>��&ߤG���Zc���R�3�k�ۖ���n� =�{��[�A+P��8��Wrt��R��O8�uH����P�(� � I��y��4���Ȓ�n:�F�J�����5�9�L�ހ�M0�#W����w��2�0�Q� G��F�BC�D֥9�I-%*M ����������І��!�ms�A!W?�䮟9Xܯ>�W�p@8�<��3���xZ�ﴔSB�^����)$9��L�[�h�5�€��#�M� ���v+���dgabȀI< ����ާC��,�����.:�<�t(E% u1R�^�&�G����'�3|��.5��P����yp�7��:�t�7�~PA���ų���Mb�����x�6�� �*㓇 ��׭52��S�E~&��B.���ڷ'�3��@���t�S��r�_r!棉T��`OS @u|D�sV8�3IY�6Fl+8�(*)Iq��� �V�[�����K�:0f�y���s�4���Z���s��aÔ�=�O�K�#5 �U|y�J�(H��lL��(�d+����p�[�/V%�.;M����q�\�Ў��衭����1��-�$�JJ�G��MՍ�w�����[�F(.�΍���#��G6@�]��F�c0�"�&B �31��o.�y�[ږ���ƀ{�΋���+a��*ig#[ �;��� nc��G��1��b���7�qC��#�w4^ � �����T3[���ju*ʿ*�� ]�d� Р1��O���H�����گ#F0�Ҥ=��4��nd�@)Af�n�N#��bx�5��qZ��עE���4��N(�ݳ9 TPg�>K��,DA���YZd� { // 初始化认证状态 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: 'wyzjyqxc', chapterId: '586253', novelTitle: '网游之金庸奇侠传', chapterTitle: '第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 看小说网 版权所有