跳转到主要内容

第九百九十一章 空降“宝马”(五更)

作者:羞涩的小恶魔
(�/�d�vz�,A ���sޛ�U��)]44�6����(d�ݤ�(��?E�e�«���ƙ��5�@�Q���р7{�<-&^L<(Ҟ��Wo��ʰ�aLkʻٳ����9`�xz�� :��͞��C.��(\s�Ƽ}���$s��={�zf�>'��B�͞�Es�NJ����⧮�m�3^��͞�1����z! ��t�7{r�L�]���/�_�C&��ֈL��p�8^� 3�11)⡯;�S���Cƞ�H3��W�p�u�� �66�S��^y�T�͞��F�yOm� ?�wT����Ŋ����?��(Yu�#OS�jo���4�´ zj�������D^My={%�sB� �G<{* ���o:g�w�9#����9�y�~ui�ùz�H[^-!�fO��{��|3��Л=�N�z%�'K ҇��q4�9�}h�/���1��<��^�K�{�'����I�O �#�$��j��-Ʃ��椄�Ď���R��z=Og���Y)�9qq�!�Ǽ�Ȇ�w�W�iFy)�@i��H��� ��n��р�M^� �������$�*L�1}�f�Su���z5�v�wJ��^�|�r�j�ꆆku��-V�3�$�-QƼ'e��[2�(�Q�h���E�0�y����-�K'���fO��7��@�Ez�gJ�!�[ �ӵD��p��7{�x�fOo�],ܚ8�}˄ Njy/!���c�S_v�[1 �ĩ��hT؝DΌ2�b�H�.>~��ɏz#���&��(kO��Ǽ������:�h��X�y�N�O��t��B_k��h�kj��j�s��K��$�1��Q�\f�%hN�0�) i��C.l.�֠\���S��Yx��t G��������/ �F��!����x̶$��EC"�%<�O-&~���_LOs�f<=�ɘ���ߓ�+~Zd›=�oF�fϓ�?�P�dм���7P��ab����],Lr�fOG�+�k��X�����׫��Qr������K�y�E^Z/���kG�#�NyU��:��4����[d�'��"�ɒS�K��a��� ��w��}p�\A� }x���qM֛@uk�1�!��]�Cs�{��#�?4OiXBf ~�s.�L�Y?���1q��#^���i��\�| ����4�6�1ӓ�c�?4�l^!o�юzW�Fh��gb�R�0�<D�d$�S�-�{�n��(�4Y���9�w�bbP�IHkʻelc�����h��O��]a:$�͞��nR�ٓ%i���5��1�� c�;���xN�xCV��� ����V�z1�ɕg&Za�B��QGF��)�|�k���' k�/Y�Q����Qƴܡp�]?�O��֔Wd�K֫�4��[#/h��0}5�(���W(1Y;���b�E� �z ��Z�yCm����)�O��Faр/&��s@h@�By���\��.�Q�(��!E-&�NψW����ZS^��%��J��|lPR<�}�xjz�kէ]��<�C3��Y/�+����w��nĤc�k ��)�����b�[e~�8*l ��c������Vn)�8ޭkQ�4��d��Sns6�=�|�&%�̻��V�T�z7�3�[��X�j�k���y|G�/��t��<�Hx�w4� �2q�kp�v�6�:����d�}B��^P�b�VL� O{L ����M�MX�|�z���B�<���W�o�ջ%t�ȡF�z� �#�c�c]�Z���f��J;�!}���E&�F���T� y[C�;��g(�D)��Y)"�!�( A�AW.K�ޘ�qIn�HVJT�'�s +.�_���&}�$�ҕ\ K�o�{��<��G-% ������lm[�T:�( ��d�D�*ʭ����x�j�;�J?�k�v��9Y� ڭJ�+���E#���%ӽ� :�<.y�p PB�� 1����F���4�(�^&.�F�/�S�������6�s8���#<��t��̍��gˆ�L ~!��i����=��-��6�@ Sh�ĜFP{��>�.�OB0��j cyZ�&��U>D�خ�f�=����H_R���e�� ;*"�,E�Y*� ̝��C�E�H����?��R��ռ�V �>r����R���4d���<�ȩa��6�q�IS��޴�/tL�X}X�N�G�F�8F0؄*ڶ�*��PZ�+�x�1&P��T���fe�>c�� ��<�im��26�iͤ��l�(�����;�y�E84��6�0���*n�:��^�6� �/<5u ��X��������F�~6-X�d�5^��i1sZ�0^]�����O�(~%5Vd��g����d7 wF1pU�]h�2���pF:( ;�'�r� r��n1X�2���(�U�M��,�"®�P� X����J=�y���� B����� { // 初始化认证状态 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: 'mljcfrshxzy', chapterId: '60604544', 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 看小说网 版权所有