跳转到主要內容

第154章 打败凌空计划(新的一年,继续努力)

作者:未知
(�/�d$%� -3>0 AU�%�{�b� �d��ͱ%�m����"�vlI��`���r3bL]�?f4 o`8a0 � ���t����Z�+��ڲ)�K�c�+��Ȕ�h̀�����a�i^�{p�#� 6��4�z�P̀6�k8�ȡ��02%0��&cdZ����>C�C뉁sÃ{�B�T��Kaw$g�12�����Hӥ�W�K�/��̮,� ���*`WB ba��e��cx�S���⣢ $�8���t�<��6$����44�5��koZ�c�h��t5����)�2= �)�޴����S�O�O�}�^�ZBA%#�R��'�O<��4S��eXF���A勢=F���Yg��(n�������|b��5��+���[K���&O��,g�dx���ƀ��> �����E� 2���#� ����a�5���?V'�:2�AgȴD܎L+��W&#��_Mu�<�����C����X�酳12U�7��9��Q�%�R�[<�L��ne�y��R؆�g���,�6�}�k��8o^�FF&(#Ӑ�PkQ��� ��9�2��\�j��F�N�Yem�R�6t�9սBӕB2���'�w073�伕eq�ZM#(>���p��?�R�GF��� �_6��Nu� ]1���s�1�{ �ZwVwV7,���Ȕq���T�!R(.��2�����;�;&4��Sݓ�cZ[�c��l� ����>�c����*��B�T�b�"s@��bd �<*�J�t:��* ��|�q��ʲh5��F����)����T����D����t9ս���u��E�B� ˕I[%nLrn���� @��P@��P p�40��$@(���b���ʕP�⼢K�V���E�b���$[�����έ6�f���gUofcdj���r����)���b{����;8�@xs��aFnj��i ��S.�1 Θ�JY>���i)l��j ���΢��f�2�=�ȥ�'��-�#S �t�k l���K�g��(��#�M�9���?����ye�Џ�U�ZS�M�.�9�Rb�sO��@o&���1.F��Ye���S�CB��|hq��;�?4�������\��i�u �S݃fW�嵊6,x�j��#'@>��%[ J4�}�uG(F����tc��_xCe�-7$v��$ɔ'�_Tm�as'�g�1���gpLδF(�i� �M_Ȟ*w���*�:2��$�*�6�2���)� Щ�1�M�� ��P�!���LͰ\Y4IФ�12�(.Z=��x���<����"\��<��"�12�ln=�� ���Lu�m�4���H]"�C��� �Xy�8�r "zF��rIk�l�L)GS�?�5���bt'�3�Gp�fvgh�ѕ��UQ_Jn�ue�K��pC�T�QYR�%�k,#��-|a�c�� �D�!�����p�� 1���T�]e s%� ���M �^w����pJl��٠�4�uE(��H#S�5�5�h�fvg6���(���LjN��؛9zm.9�Ut����{�;*5F���̀�c�tz~s �o�6c���7�/%o?Zt3�Jtd�R�G4��Ї�ދ4]��� ���%%]�19����M �6!�U�(�ݑ\�:��B������7�2�Fy�����ţˑ?�V��x_�͝WAq;�cdځ|Gҵv����.��%�����D���:Nn8/�� &]MPMt#S�Ӈ���:sxD�z�9/�Ee ���B�f8���x���Y!��׈���_�_7,[E�6�@�9#�G��i��G�ĩrbd��&,x;�J`'�6l���������e����78zG2����_�cd ��d�b�w��Ɵ<@+�/�6d]Y6p�Fy)�Lk楰Cbg�7-0���Y�*X���!��"nd���/�J�t o�8s@Cb�Z�kmsl@rގג�w$���]��|!�ӑ������)f�\��T��ʖ��ki����Ә�,���:�q��<M~�̰<YrV��`q)C���w��V�*[�Ң˛�6�c�d�eTq��凄�q� ��t;�:�Y�h�ʲ�r��qh�u+uEᵖ##�}�>�Ld�C�b�;9/�R���ǚ4�h�:�)Я��לJ /Wn�0���%�2�M(�(�!�� ��*g(�=�vlFFtEⵔ���书2��Yx%� >9���I`X�f!]L���F�t�R� �1�8{�~��\9�Ҵ���X�P��Y�9F�T�Uyy� T��"6���T���G��w80s��- ��豲} ��5� z��?����9qPxC���@�ZV���^s�`���K�*o���f�R�?��4ݑ������vm��u%v�@E.�z��hi�s�C�^6��N�-�4�T��eΫ�a����i���K�["�g�`m�������ڜ�ș�,��/J� �\L���%��ۦ��w��o�d���1uM�M3�Gy�~IR�cWś���(Q�/i6#xd`ԇ7����2�ҠK�{�{^f o �WX�`�q8B�[�W���$s5�@�?TӁj�B/�w��h;��$��{�$�7�(tm�h�[*��wx P�'�&Z ��m����¢ �@%�4K�%{,��va�=��9Ȧ��z�q9����W� ���Vks*�NNd.N��i*��̧��ꫪ7���D)}+�Mf�� k��S�o'h�w��,U��_]��O���Cjl��x�f��&2��ȱ3�L�leó�5�ф �IH%��ۍ� ��(Cx��l��ݞ>¬ 3H5e^�@��\�0.� ݌~���Rmj4�}7����#�(�����`��"�������+6��vN�����yu�:����U���EC�+(��Q�!�� i� s�����mt*���E��n�3�;蔩Z�ph��2��i�Kb�M�$?��"�1s!��������O� �mjv�ӂ�� M�pf���[[�"�K�`u��}�N&�ձ�sy�̑ { // 初始化认证状态 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: 'wxdmrwx', chapterId: '24942621', novelTitle: '无限动漫任我选', chapterTitle: '第154章 打败凌空计划(新的一年,继续努力)', 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 看小說網 版权所有