跳转到主要内容

第五十八章 杨啸天的算计(求收藏)

作者:昔日西域刀客
(�/�d��p:�<)5@����s΃��a��St�F�E�UC�6oĈj��`ȢSWUUUUUU��~�����3�d8 ��rk��9�v���I,-�o2Αd�'4��e�)�|�"���-Ə��8eΔ9���4x�|VD�Nm��~Z�Ax���� wx�vĶ�� ����>b{bo���u1�u}H������Km���.��#��� ��>b�ҶPc;S;Sd�� �ڮ����A ��1�X��O��]��\4:����>P��� .��f�@�ͨ-0_"q6q���gR�*wboE��e�c�6c�A�% ��X�Dm��u���s��|�>NYR=Q�u�F��5���_!�u�0��d� ���e��Q�@�cgb��� ���)_�ܡ]А`�� s�2����E��čɩ� �p��)�5��-�:��+|<�Fmj���/h'jO�HL@;�8�O壅7X�q�����Ý���3�=�X$�v�. qV�c���K�9���b�� j6<ˋ6B��v?� ~؜����nnˆG�K�\j���"v3�� 8G�E�29�v�u}&���S�J�Lm�r����� "���8D�q�3��>_�~�� }r��eB�2wr�W#�|&�/h;(7\�L,�/h�>�jZHn}�qibj�ٝ�[���k��Ir��m�����IJCۢ�^A� ��{� L�*(�&���؀lJ������)OH�`[��� �5Ե*Qۻ~A�#=���\k'p��>�L,���%�.���G� �~;�ڮ�‹ �*���ژC�̇%��8|�p�x݋p�j�OI�7�ˀp���C{|x%b�z����'j{M�!{��/\����$��+9���+�sc#0��y@G����� � ����h˙"c֧�L���v1ژ��v��#�x���M�J�ڮg{"v��Dm��5�!��>�;N��Ȕ˩�~Ԟ5��%Nm�ڮ�x�$��BԀ7� ^+>�gض o��b����� 3�Wm,lG��S�u���"x���v���֭��- ����p��� �h{�s8����MƯ�'j�ޡ�I2�9�A��6��{j�ۉڞ�3j[���O$P��©�~"i8���� "�(�d��xcS۵�����=�n�-O5`�{��W�8d�C��m�!S�uT�}ax��#���?h<˚����nb�{���>'�'����g��+|�֞�/h[ƾhg���)||2=$�n~�zj��M�%i� �/תת����r3�Cz�8-X 3��[� �2�]Ja+y,�T�@K��O��7 ��3�����x�r ����v��+�=�`�+a_���Xvh��K�;Ny�v:�}�p��]�|�� �C�1������4��� �@�����-cwh��[�3.��=�6�+"l^!�֦�G�=!����u������K��s8�r��sP{n�HLBr� �<�] �S�u%�l�E�#�E����*t��]��p�A�� 3L_k#\��O1�a�%ɋH��x*���<�H��������9�� !�^$�9�X��/��O�M�� ���Ϗ>$ym�|P{��tق����~Zo����)b9 �O���N������7�H�)2�9���OH�a�G��W�r@� [-���.�k+WX7Q[��B�F�nH8bzj� O�����"���G��[�[Ɩ��8V{�|��� �� �0`��a��Ү � ���}��L,�.bw�\j��أ�����™"{�gs������-�?����`x��2�A����?��6��% =_�$�~To��z8(}zD�'7R}�w��p������ �-��� ���c�%����l��[#�А��[���K�{�^�e�7ׄ��ct,0�� �H�1��v�1��L�m��}F]`����]�; <9�����珄KmW2�і�D��.�#,�� ͩ�R۵�;��a�B���� �lb��1�S�`W3p h�pj� q��"w��g%j�!�j:�6>���r[f����\�� �����&6��L�?�� }��\2���0=���v+��2������Dm���E{@�� '�|c��̖�U��1 �L��Y�0���Q��9�S���� xv! 7<\�đ�ca/��@�9�Dz�vf�C��x��"' ��@�u��z�!'j���/�_О��>x"�<��L,#�k ���~G1=�S۽hS [�gb�9�N���K<�w��� ڠ6�>"��;>��\��Z;Q{ښ �� �x%lIs�k�u+Wy������+��Sm2���Fv3@%��Ib�u�I��=Nlx�G���܂]I� ��P��� �X� �M��bs'm��Ml;#�.s8�&�$Q& Zx�vĶ��q��b� 8f=B��U�s�\����p�T�g�����t9S��.�]Q�E��}(�@�5>@�5 E� �]�b ���?�'���a��5+"{6�g�s�'�倲*�� V j�AT�ؚ?���.��;�u��u { // 初始化认证状态 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: 'wankufengyun', chapterId: '85892080', novelTitle: '纨绔风云', chapterTitle: '第五十八章 杨啸天的算计(求收藏)', 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 看小说网 版权所有