跳转到主要內容

第59章 布置杀阵

作者:纯洁滴蘑菇
(�/�d kJ� %7@����s΅��adS&�d�`�bU��m0���fk �6uG=��������B@?Q@۫��d�(;Q6����/3��]���M��/��\��¶�B��:�D�I�wM���%\����V^�b]�7�O��T�3�O3��� �S��:`3�-)/e�jۡ�R�����D2��^�3_P`N�pN䓅k����k�G�O��]���T ���e�2y����_�|���]ٞ�)�x�q/3M�z� 𲣱�=�>�M���#ho�=�~�`� �1��^ms��X��j[���3�_m'B��dL�dK����#��v�e� [�ޟϋ�~��e[�$ٕm�jlKa�J�[B�����L#/>.�!B|�y5�2S u�>r0t"0���T�\͠�7�+x^�l��A ��Kp���l��<��a|��o�/3�+v.qW�����?��ֳ�^f�H�F�w�΅�ne�1ۗ�NȮ������>r��o�{����;F�ڦ�>��D6��`�1͵��l7D���Dug6ٽg�ږ�k1��q��I&�az�� ��l��o(�j3���(�D��{����\d��L��a\�n�p�!�'�����(w��L�H�2?>z _�����zi_��f���ޠ���}�pEu��G�X嗙�����2S�lN�U�dgY�#�g�o��U?�[�{�i�>%z�K ��\ �/3 ��,�5�u��Kܭ�?u����ʶm���'��Wyy����~FϤ��>/��]�[u��|�k�I� KƐ~���5���wB���gK������ o�n��8���s �9|��}���ԫw-� x����;�⽇��e���^��]Y�E��]��$:�狲 Ζ�;5n�}�{K�/3��{���;n�^m/ xyb��K��َ�C_%��I�p��I���~�)I�����ᗙ��o���nO�ƕ>?`0�9� ��+Э�'K����S%J��&���%�^f���M�.�z����AO�ƀ#4L+�s/3���7H�2S��/�I�x5}a��� ΋ �'���)���O�t�ھ$<������P?<�tJͤ釂o�n���gزV6��!|�)I�7�� ��\��&BN�l�� 2|Ƕ5�����L?���\�e�p0�p����T�YT������#�O�k��ؾb,#���������&0r��F��2S�G�ͤ���2S����'���M� dkeOd@@�=�� �O�2�(�7�&�.���&[c#|^��7����>�DO���� ��8����]un���L��I��q�' �0o�.��z�~&���Ⱥ�хG�o(x��Zٓ�/3�*�x�\�� ��L%�je ,l>����-RΡ�G� �Est����٘m��j:�:.q7Cޫ�Z� Ҷ���9�=�e� �,|Bv�,<��F�e�eQ0�}���w=�S�攭agW���/E���+��w��@�ًV���2�@?(�#?��q����|��g���%�f>Yrí��J��;��1�ջ [��ts0����� &Y����=�|"[d��Ƈ,O�`�� ���y ���[m�3 ��Y����z��O��D�0��e�7䌳/ރ�D6�F+�uM}��= iYW�Qf��Pa+��t�z7����V�#�G�����<;�V�!�!��W4/qw�\4�h�+��B+T}g��@E�/�3�`�P�������K�7�� �^�?V7S������l7�.�B��F�lO��@MM����]��0^%��]�s��϶'� ��\Q)���u>¸H��]4�3��,��f4����"5�2���Jܥ�]Qx�MI2$�Ѝp�� k��o]����� �D��X���\J�$ٟ�P��x�� ��|�٦2�@&�W�w�� ,@1���w@�N�-A�����������L9F!ي��>�|ޡ��D����=>�>��A����g;8S �� �xk�N��K\W ���0򁹨A�Q�02$B �1`�0�z<�!h�$��V���p��ǖ�w�[uA"��}�b�J�%���3f�D���)~v��( ��̮�hT�F�|0��%(1%���: �` ���Y�#��&�Esd�08���o�KЋTI�mĔ�E€9����Կ݆���p~ }�`�SO ,��BSQ�{ UA��Cg#����U4#%��l�ms�5���Oi��%t�����I쨢y�^�c�%;�)�H�B~���e���TL�d@�e��gWp+�K�u.��Qr8933F�-�>�)g rb\�м��d m"s~���p6?3 l�m)z|�%$/����� �18-����s�4�@����� ��:p�A�aߤp�b�({(�Vr����޵/$���@�w�(�0'7|�,BiE�*"r��{o���y��k"4IlM�����T8z�� ���L�\��xk_��G3sr"�$*�#d�Y�e��@l1�J�qP���Dy/����U��r �ͩP�?q+�b���3��+�z"�{��0� ��i���t�<�E �߁��4�T��CЯm�A�/�Bvo �Tڬ����1��zUhT�o�����;�x� ֑$�̾��:�T#�5�O��H { // 初始化认证状态 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: 'wdcxsqxks', chapterId: '85971838', novelTitle: '无敌从吸收情绪开始', chapterTitle: '第59章 布置杀阵', 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 看小說網 版权所有