跳转到主要内容

第五十九章 失控

作者:乘风御剑
(�/�d�r��@&7P�u`I)��y���MK��F5 DP�`Ge�vDm��ze뵵��������a�d>QVS$�K��9l�"�}�:��f9�������3^yW{�6�E�\�b�m��C��D�0�6g�6��6�� G.p��w/�K�6�v�]�&WښA�6�y�s/�{�g�5L"�|/.���w`�A�F%pA������+�Z;�/�� &�����Ж�*/�U���B� �J�_�0�B�2'D�̄��z��M�� �E��+h�D�5��)� ͎v\(�6A^�^ж�v8��h�>��q��w��ў�ή�]�|nŸ��"���-� ؚ%y�=��O 8�V�VO >��;�F�š �|Y�Jؓ�kv�D|*x���=��Ru��{��m������Z��t�[�#�� �ʻ'a���n6?D�Z�C�ry�qm��\[Ԯ��hxlQ�/���Qy+l͎b�ɥ���x��k��3`�8g4<�}%l��"߅n��5;NnB��x��5;n�S^y��v���?`;���ɓ6��S ��t�2�9�&�J.D�;�_�� D8��K�k W�0�p)�#����I�6�;2�`| ;�}9d�&m�ٱy�vF[�(v��a����S ��6���05�p�Ԕ-X�W�5�A���G8�|Y&�fGR��y5;��`_Qx��хb*I~t”�w�{�6/� �`��I��!?�ӆg��\�� �[��g8K��W�6�$�M� ��3\~/O~*�5��n��!`k�%mʎ�v�rj�:�3=�I������Q}��Dĕ��.�4x@z%�x�/��E|*x�t�P�����O ����=C� ��x��bތ6%��T�ܕ7o`� ���kv�P��%�A��nǪ�IxŜ����I8ir��ȕw ���{D�QG�6��Ě��)���� �0�4��)�|@�I�I�; [ۑ9Bؕw5;n�[>����JD̙Һ�s � ڞ��w.|1�ÒE�'$��nds 2w�\y�,i�N:�#�/� ڋ� ~d���1�ĥ� ���sG�'ڤ.����A|����%m� ��@i� �K��{0�l0W�#�l��J؎�/\�;�\F䱓W�%�0^��D��.�%{�48!���Wޅ�]J��<;�yeg۪�ɾ�n���S 8�V��E�o�K!"+h�W�kv��-�/�4xdʒS��#"��R$�D�/%3r g��K���C�����o�Dz�����ʻ����/�̙~}����w8_�[�-��y;�;!�����-��*hk�'�������7A�C�vw��`����"f\���xy��y�{���#��i�F�����z9��h#D�|��r͎V� �f@�=g�M�ܢ6��[12�#z)��w*���$\ 9is��/��䀉�O ��rI�D� Li��9Dd͎���奄[#�4��.%d�A����kv�*���c��f�R���ĞԖ[���r.�ݝܳ��7��t�rI����|����冈<���l bQ����}и �&��.3��<T]��Z� q;]�Ȝ1g�r�]���͝�-���ёyF{Få��!a�rG� .U7!3�{Oš�5�)2W��.�g�n4��9��N°�kf"s�0u�rG��UXT�(Ě���ܕ' ��k ���K��|�a�+��˫�S�qQ�1�9�� ^p˗/���x�`�q _�3�T�Z�R�6Wr��^�'����K�B��-�{*�� 1���/��+掌35�p�2l� @�+������˰y����[�U�-#L�^���żYc������ �;�q̎9`��[���nE��1� �s�r�v�v�� ���(^[doa/��0��=.��7œT�Tǁ��6I�5;([ �A�j!���+ݓ6�lNg����1SK�A�O)��'ڟ70`�-�EDL@哗!`S�qnՖ����;p.�'����=;^���^O����K݋�Ϋ��.4� FH̙�g>��v�) ��#�:�"`\��,��T�j�\�]���|��E�T��ّY0���) ��~�����^���3�W�1Oh�J�4y�vV���ɤ�c"�܆�+��d.�˗C�X#�x.��*48�vE���9�k5��U���W޽�˰\�� O�I|� ��n�d��I 2\�|�}��$�Gw+�~0�ax��� �#� &^ b�z .�z�/���]��8#l��)ी�"`> �:�5�l�� �6�����h��3�6�6�tkm͎�쫀�C;�j>�C;�/p��+/��Lo�mkd�V�V�N1<�%m�v�J�^h��L���������C���Q r1"$2�1@�I��<�j�CA'0<�i��L$��:�p�)7C�&����jKr*hSHL���Ht�є��o�;��B� ��a�&$x�i��;C=)R�� �� ꭃg��]�D�+��I:N�z���zl�axYw9m3f�U��/�|#�hS�q}]�C�<�(Ů}X����[W��k����.��3�G��(�Ё��P��[ǐ�� Wb��L�ݯ���'A|"j�D��#��K�1�o��x���{4��@�55�`��2@.K\�8*1a[�y�e� �f�I�<؃8�C:'( ��9NW�%I}�4���n�v�c�<��F���1��C7�Vx���"ڡ+u�"A���o���F�a����5� (�S�:�����ͱ�KA�!2���^_�� �jIl�~���ذ 5�Y%Ś��x�{%�o$�'�=�2I �w�o�u��'ܥ���m%yo�1/�� { // 初始化认证状态 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: 'zongjiantianxia', chapterId: '74946176', 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 看小说网 版权所有