跳转到主要内容

第14章 功成

作者:不在天涯
(�/�d�#E���5A a���w�^� "ɶYM�hC�j1� ����n���f2A�:�oP)����BEI�� �� �� �ͯR�չ�N+c��XJek����C��� �3Z��i`��z�q��%�R V�8��G��9��]/��iDŽdD�^���dm֜� ��`Z96�6zf�IU��i@�b�Gc+���s�04G����S�89�%�_VS��l'6�8�� W���;6��#0�yl汛P#:�D�)�Ĺ�Y�򣴜J`�l��V�h"K�Ywh��ȝ�9�-�J��G�k�`╅��6�&�������)���Әimk�Wy7K�.�Q�A`�)zW`����r:��9\aqGz�zM��Jg�ÐI�������P�!S�3FGB_�ż��6��6�`�4Gd�y���'�g�)�7̱��.Y���^� �s0�q� ��x�L쨜��#dl���J;d�V�*p,�rbLܠ�Y2O����g�Ό�l�����w]r56��͒�_&�"3���A.�'�6K54��(]���Q{�.Y�Ml�pk� ���]'�{An��Y��8hzfq�� �:n��}hql��w�͒I�%W{"C���F���9Z�� ��JOhc�I|�Q�SY�bi��r�b^�.�� H�q\Rd�y5ȩ��D��'$��%Wst��G&��>��y�p��KZg�;c�_4չ��!$g�3�du��!^�,�%%^ngƵ#�9� ƓV���j�†*W濆۩�����:׫�Y26���#��[0g�r)�w����!D6�uU/��b^�c&�U愺z��S2���M�yE&w�c� �Β֠�2��>@�<�\�5�Y�d�͘s݂ <�d���_�'�G�ګ�&�&����O��Y�q���f��,��vR*7�V\��{������gCh#�Ew�=>rh����SĒA+<�{^2�ms�Z�J���� �~�k�)��*��-Y��܎�.�� j'h�7i��^�B+ �C�}�h��Y�dM�?�$�9�#:'��Qy�n��"�镅���A�F�p-�t�ऀ�ʢŚ��@�Y\rGߨLiNom6D���p/1-�w�.���xZH��9�^� ���k�� �� ��Cs. �qd� �<�(�A��D~��D^ˈ|�W=�"d� ]�zB2��Y��cq*<��c7�)��l�D�w=3��=�� �M��Osk�!W�!��=��!y�|��^�K�� N�.`�8r��k�L� W��]�hN�u/�g�S�<��q\Sd�d��km6 Y�28il<��V�+��Qܜ��w�wR�J�{��bޯ��w���Z�-]���`�{O��j�3F�*k �6�1��t��O�"�IU04���rm�� =�ޙ�#2��=��Y�w-���,�8-�U��U�1QDN!��d�@Y�-��*CD��p�r6�,�(�G���~�o���b�i4������&�V/Op8չ�;�ʙ��;L�A��"�]��6�y����Ȋx���X���DO� �]�CP����%Zlh�i�\�>X:�q)�@� �.���lD��?ک�8W�8+��d�b3H�� �M+c�I�t}A���Gr�ʴ�"d��b㉔��a=� �"��Y�7� CWxm19��l���e%�3�����8�!G����s������UnT�V岠A��0� �"��l.~�Д�v^�5܏{�� �GL ��ż���R��vrt�rPW�;�r�3�Ctl�_eF��xk� ��'��W�(�^Ag-�%���ȍL��#d��V&�X���&Ԉ���%����_p�%3����{6t��q���\M�'�3#s��� �Z�c;���$��{� .�tǶ��<\<�Ў�ۘ�k���ǻl<5&���� �Y2��V���4�.�M���ҖIg�K�>��R�E��J$r�d �D����� PgA��r(km6TyS�0d�� �Sjo�޳9����Nas�.� 9Ed�s%�?�7�v�� ��3�1�+� ��y���u �e��K5�*GBO�U�\]ko�k#3B֑���}�"�T� G'�+B����@�������(7K.i�5^�6�L��)� O���2�E����R��J�IO��1�5"� �F�͈��q63^�������Sq�*o�`'^[�����9#�b^0��ٰ2�$r�r 6y���)ٳ��YФ�Ð5ȽJ�թP��"�4U� ���L�Ue��K��ޥ:7Q����2�lm�dY�ޒe׫t���Yl<��_M�h���?�dub� $2g�P'6�H��x�Ȍ�%�� C9��\jP��:4\Z��i�s .��1tjD"�2٬2Y� &���A"��U:�0oVyA�]�h�K �� ���t�����+ь�EK- �ż&�Pg.�L����y9���!'l^J�G+B��q)�2�q�*r����x�|G��Jg�Cy�!��U��,�pV���`: y��{�8����j�=�]@���9Z_B���l���������K@��hE� �Z NŠ^�Z�C�� ��XR��>[�=c�v=a�M�qL����栆v�ʌ�K�,�Xl<]��n�/g�8��j'�X ���n<)8�@�≪��v � H�������x�$����f�m`X�d����x��'�%�UYw�qd�k�Zy �6*#`���*k��C� Yr�bÐ�J��w&���P�zl�dr;���]�}�|WX\lHl�xi��n1�*�D_Z����L*j�I蔖��IPpT%ެ:Aށv�} �ף ��u��u��j��S� 3v~�"�dfXp������6�(@�������蟀x^c���Aת�H{�'2�6@�[�̜�Y��ρ�fR0�HЇeVj����ڤ�j��Y߰��J��v$�`T"I���qt-xk�w��$���zLj�5�~v1���_m��A�7�60td��CT{߄�� ����o�ىy�Q �����g��S9h<8u0�ēL�ړw�ިd���+,7ɔ��M����f�\�G��J� ���ˆt���兂P�0���)4��DGB���p�tEX�<�L8�}�*Y'i�#�]�� �4�܃���JoF1��?���k��*�������l��1���~���*�$Mh���%@|m��2�� ��f���l�L����������Rk(�Z�gp�h���r�t��L)�L� �p��Q�mL�Ԡ�[�>�G�u^�l#/�D?�h�n�)�ލʧ`V���ݞ�qW�#8�H��p�28��Jˁ_�<�#]y7>���>��e�üT�����i���h/'������L�<6�,�O ���:�N�R��8���%��%��؜Y�VU��EV��8e �)3��0jZ�W�2?��O4 I��Qf�h �H0�"g���-:�·�$��_(����wx��l�o��/���+JF��M"�+ � 2�ؗ��n��n,m�20�p4[ ��6�����Df2_RÃA֏��p{�g�^|o(��s�S� 1j�q4;��2���ۿ�@ך��h�z�h�ި����p��s2��N����������=�� |�h�F, { // 初始化认证状态 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: 'csbzsftfks', chapterId: '50544039', novelTitle: '从十倍张三丰天赋开始', chapterTitle: '第14章 功成', 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 看小说网 版权所有