跳转到主要内容

第56章 再见卫老

作者:琴真
(�/�d7UoZ�X'9@Sh%�{�&%N�h��8���l�vZpa��i���f�M��6V ��)�������ia`������'n��5�}�uieP�%����|q-lP�YePSX=e-�26Yj̞W�?���gt!��Z1ru�%73����ٳ� c�I�-?o8�lt�^���5�;2hvAq����cՉ����@j̞"� L?4�rUy�z�\ڙ��i����ʢHF|������2Ž���<)o(2ht���,_)1fO��m&fO�{PeD�Z��f4�gA��i����G��EM���=j`��;�[ǯئ��dNqYx�b2.Ǵ��ɨ��܎�)�C�~�\�ݨ��T�qyhufd���3�,��3�LZY�9Ÿ�5��Dј=)_lg�W��8O9�Aq`�L�s�`28Mmc��`N+$<'Ә=��ʫi8fϊ�:~�r�� ?V]2����N�=1� K���$ 1��z6�iq��$���`T�� �a�Q���� >���S+q�]�����蒦-�)�#�FH��p]�� �W�9V�|�Z�3�+u1{P�v���i�;@-�4�`N�KiJ  @0�ѕO�w�����D��1{*F޾�І m�ThM`���W��v���'�d:�і֢�5���9ʴxxI��ShÁ%�ц��H�6��'�Ps� �+t�bb���.�����B��� Ŵ�X8�X�Dѓ�z����W�m1MR4cdH�;�@Z���W`� J|ޏ�#�� .G�X��]³Pؘ=�VXMe�V�5אL/g��9xVy��3�1CLS�k�o�'�A/P?y>��΄����d���^�o���}Opy��N������ 1�bf��m��楰G��>j�{��N�a�#$w�([<�չb�r|����A�Oʋ��;�>a�)�a��չ'Q`>H��i���8�]�2"�T�K$_�;�@"YR� �;ߝ�d� 4f��5+u'z1 猍5�Aq̞����tVg@�I�Ay)�=j&�[20f��x+ N+S�'@<��A�c��$�B��,S4�$])1fOO�i�dQ���z"s2�)�}�t)��VX j�U��� "�M���tԚA P�h�`.h���x?m.fO�k������Oq��y����ʖ6d��j��)_G��d�eZ�pA����I�9g|���I+s��dz����^���j�!u ��˴%򤼡�"�[��'�d ��Z�YeqtC��� � ���i{�����Iĩ�!9��!2��Lq�ez���!���1t���Y�= J��~:��9�4�8W�pOuFn�,�nV9�u(2Ž�Mھ_@�3�j�9���ĜlL���/ �*[����D~X�qf��$�JH�:_��ayv�b"hm��Xe�Zw�S�k�I�����c@Z=q.f������j�fl�����i����j�Ȕ�!�)�&�);���X�hQC)ॸ'U|Rޱ�x9���X�~"�ZBW�5�HMq���!r��e��H�y5�h�@}irI��zSI�v��8V���>,��������}@`zZ�#{*� .B��A/l^ZL̞��՟�>���^^�r��ce��Y��Ye���>?�L�� �c�ʛ�h�2=���\�r�:f����(�W��G{��k�ܠ>�� �x ab�����3 �� ��q^B\Pk̞����Ue��������*kw��⾤iF�PL�cd���rA�c��D��\B̑C$1��[0'%��Uo�U�+x̞� �'���Im���$����[�y����l�5��5�B-��c��x1{R���?���_���?0h�� ԙ������A�{"�{ZYCqK�Y�ru1������\n q1{ls�{u��Mq�}M5> �0@p�&e�5�K�7�%^)1�d2DN <��L?��襕?�|�d��S�@+�*� a�_�Kx=ʧ͕����)�$�%D#�P���iE�����5�Sz���ֳ���h�U� �V'8���ැ��o���bhO�J����h�ޢ)�/�%� 9�Ye~M-�R���'���f����G�)�?�S, � 6fO��� @�lN^���2F�Ő�ˤ��*3���L�4��#_�%!7f�Ŝh����Z ��x�pZY��Pg� �EP�R>+{�}@1��=� �} sa���p��1{N��1�f�\Q6�:B�֘=7���tF�4�#l���yU�!n�1��?�G��6��}�����is1{vn�<}���Iy��;ڠ��XuF<<����z5�+ї�/�Bzv�U�1���ku��4�H~��D�9עP�:Ar�dK���GO��w���~t���__(fh5����c�,i:�b�V�h�q!;��&�b���P��R��VM20A�y��h3�V�,*�]����� J�ѽMHx�ȡ��BJ��!�c����HW��!�'r�ކ�#����8�t7�1{r]��#�e{&��x_2p��mH <3rUޫ�F��=���!�a�H"$0�A�@ �=> { // 初始化认证状态 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: 'wgbmks', chapterId: '18018850', novelTitle: '万古不灭狂神', chapterTitle: '第56章 再见卫老', 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 看小说网 版权所有