跳转到主要内容

第832章 摧枯拉朽

作者:未知
(�/�d�&E�J.58@ � ����ɀURf�T]�*)يt"`�tEMJ�����7�� � �1�a�\ 5̀��̩�pi[k䉸�)q��;�>Q�G��f��$���o�v����Q�� ���t��8ʺU �j��!���S�e�JQ-�9}TqhPc"��d�<;�^$ ]O�5����ĘJ���uY���=-d�b�)Ik�I�^�ļ�Ģh���(y�Y�� �_�&mbH?}8�:�� �.)0Z:ڍ�ʃ��p-�Wg��j2l��H�Q�!��'`.�`�!�}�:� �P���V>lu���>�!�O��ΐ.d��'{F�"}c�VwG�k=7j��-W1�����έ�~�n��@pO�G��V<2^?1���Cy�$�q�E�G:�|T��X-7^�k䉊�;%��I�S� BKL�� �dq+m%� �y*�nDs��J�K��jS�i|�9%-c�%�Xh7�����Eh+4c��|�ҹ�jSY��5�|��V{Q2����f^Ӭ/������k���h��Z�}��f�\H��j'&����(Z:�GE��:���!��j�z��@�!�"ڍ!��`�p� M�rE � �tE1���]��j�������3DJ�N�)���n�[�2�I�f��Q^#��� ���ʴZ-�I��$]���F��wF[%�"��=��h��wϨ#�G�i;6^�F1轁�F���Z:������Z w����,ȧHFE�}2ڋw5��ڣ Z ���Oҧ�_��Z�U�(�0�vT- q��Kh/�b\��b⋄1�㮑gc�3�)��(��v�q�<=%6KluWS��I��j/�.�kB�J�&9�`�F���~h�`�`>#=#�th��;�>�ڣ @��H ��P p�40��$ (��oF͐t�x�v�d�u�%�E�� LmQ<�� v�T&����D1C��1�f&��/BK&p��`A[Ll1��Z��/4��o 9�nuCZwС��B��:%���p7���g���߭�Vh�(E2%� b�>���0ʖε�{J��� �A��/�R�J�R�@�4�8/'�!iL/���DV�nuw�܍!o�1�/�^B�] L�\� ��;R]3L+�����J�|�s]�ЅOċЊ��$n�F���%����5� t��-����0d��9�ڇ��x5��%.��\�&�!�g�.Yس��s�<)y�{�o�7�9�(q�9�s�h1���������Zd^#σ��ʣ ��LG �\�Z���!�y��ވp�q/�D9B�H�E��LV�Hd�<3%l:��8�={�ErrQu+Z�"�_g�Pzc�+K?J+&L�q��Zd��D,��_�{�F��JC;:]6�\ypg�4�Eh5�LU���F�X��R���s�%�&ڋwI�-����Kd��)�K���6�@�(�������-��D�`���Aƅ��3�I%��GH �d!Z�h'&�lw` bOT{�N�}d��g���|�Vt`} -��y��]�UueiT� ���Vv^�vB�U�\�F�_�]�D�!�G��`ϐn �ws��5x^yp�}���4g�X`jӢY�(�<�D*o$u��e^_�[�/D�A� B?�2dSwW#OHؗRW[��l�DO�lbmu�f&�j{V�����j��x�Ђ�7Fw`�|�|/���&WQm� �<�D�hE�� ��v`D�R��xZ�;"ҥ���]p?��kT�/�+��"�HJbb�!�C W��K[�e��Rz�t�C�{�K�[LlB��]-���S(y���Ե�犉_)�0��e�)wi#�[���(��]��������*��(B����Bd��J��I%d*sĄ"(�^[J����^�"��]�/������Y�Z�w�E����Y����#zG�r��nK���y ?,260����-���f���`TN��H�1�C� ,�.ɐ��E E��=���ˀ�2 ��C_�`�Ac��=`Ɗ�SRU�������;C�]��H�/��a!`:����3�O �P�j��T�b��]�����M���%t�M��͇ ͇m���.i�$<�ը� �zz:A��L5 5B��8�.�N���T��%[O�3�˛��+P�;co[�J"]WA�'��5>W�h���U�F��w�� ,��SM>DH��j(��]�Uɸ�ԋ�dI�QC�dVC�j�i�)XOOL$(|��w�[�(Ч�O$pW�dX���٥��^d������jb������j�O�9^C� �֋��OE��8� E���������s\�'��� ���lйG3w'��S' ��B��M����L���t��_� a��낅��9�)�����<��e�\�*L�3K5��!9&��� v�`�k�aʬc�a_���D�j��J�:���!iE�Cja�] ��o�s���m=�r|2�.��P=~����8  �؃H��EB:;W�B^�%F "A��1���f̰��>B&@�Y7�Qؖ�ߨd3��U�Qק^N�� �� 1�4�QN�wX�6~��j�3~�@�kA]��̏��a$�X�&N�F5�B�4fs�<*�B�-�y��s��$� ز��}�h~I� h�G�Q�Y�#;�"T�T������>��i��@>Ĉ#-�"�,Rfo��CV=<����r�A��b-�zފ�,�# M�H��?0K�){�o6S_��� � W��F�p�C2/�a\���1�$�N� 9��T�2є����ؼt��Q�I ����.�٬C���K{{mCHd��O[U�jON�z+`�WIJǬ����t��p�C3� �*":��U<ij�b��B�Ge�$����SbR-y��V���R�������F��i�#4�HM�(�?�!ͭ��)�^s\����p9 ��c�w r�].��;��` GZ� { // 初始化认证状态 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: 'shitianjianxian', chapterId: '3158857', novelTitle: '弑天剑仙', chapterTitle: '第832章 摧枯拉朽', 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 看小说网 版权所有