跳转到主要内容

028 寻找食物

作者:八公主的毒苹果
(�/�d�n��4'9Pc�$�{�;�s�A��׃����lm#"ncA�$f� #�bM�� �0 +cәda`r~s�#dV� x����ϢWLP��= @9<��'r_َ.9��qxh2!d[ ���c:vOE��ԾL��yu���2_�C�~8|���3�̄D#"sasz�B H4�Q�֞�l�G�L&����WL߰ "�־��h��D#>�@9�|��U��tٙN^�Lk;r[�bN�$� ���bnl>�]=D�@�Ʀ@�\����0��ɐ�c��6 >4� ��'�c�5�W(o-��٠���:<�����x�F���9�x�� ��?aMY�9vO uP���,]���1^�p����U[R��{�̚$74n���>4�� x��7������an�^��'l�Q[#�#~��y\c� �;�+d����S�,�z&�l잟0W(��COH4�s��S��/���c��m자���x���ڦ:�n�>�`I��{2\����7<� �V��� ��Q�S������{:8���T��E�1�;(N�Ô��8�q��� 'ü�`@0�D#*ۓ���6Okg�g��p�Ê�k'W�4g�g:��e�G���5�S�ߌYiL�� ���Pű{���Nux��T��}�W6G�\R�D‚���8�[�GOuX��)�U��{Z� ?J�~���7�..�������=#���'�(�g���DT~tZ;��3@�By(�g���� ������3�\�H���'�ai�E��9��#�7�N{��T�C�1������G|o˛�Lu�Rp~v�!� ������݁��p잚í2��|L�Ĥ:��LH��!���G`xD�G�P��\S��D# �'C'5�����?�c<_xe�⇦n�Սz��S��}y�u<��'� +D� 2+����E�[�_ B�qܣ_e��|Y1C����!�R��9��J�1�} ��\�Mɞ~q0�T`�MBv�}V�;x��P��W ?�=��I�}���=?�k��@x¯�i��vuɡ�+�������g@G��o��-���SS�~ V� �Ķ���Y�ol�Íڙ˱{b�%dk9��� �ʻ�Y��vE�(̔�CS�jw��J�Q?�Nuy��F� ڦ�$�0-��� ^B�o�JgLߙ`�%S^�� �!�����-�� (������r�i-�*��NZ�Q����ƪl��=�:|y��۞Kս-c���+@d� ��#D>Tq�� ?8ؒ~qe�L�:��Bbt<��J�/����ފLNd>�LI� ���(f����3���� .zY2Y;��\G_@�U��f�H$$Ѡ���N'[ҩG�1t��ؼA#4���I�œH$�{J4"a�G��L����rFm���!8�y��K� vd�=�u� �$1Jx�ͨ�I���`잟Ƀ�3��π� ��',�p�D#���S&>�M�M >�L0����@��2C��:�I�E�dcn�Y11�tp�A=|2���� W����<����˘�-�Я�� �\ٖ��95��B�p�Sj6L�ծBӓ������y DS nx�=�<��6Ռ A��v��1:6��=�Ip��qM폁t=!̚m���#���)}���#�;�6�!�]YRf�p��d0^Rf�Üڍ�+ۢ��c<'5��� �1 C "3! �I��`��-24����~���I� �ֺ�H�oc>�lW��T) ��q��H-�k��s���x���h�ct�:$��� e3yʄ%GR ��V�p�P7O���:��ʎ"'�^�*���=-.~�K��o0��8 �E%�ms�� �I�F�蹵�zx�zo�`Q�;�M���;��ѷ���vhͯPC����c6h;'�?W�<S��B���[�ގJ����H������� �{��J H�ʻ�3����Q��Ad-o0���DP���W4�*�C�I?Xv#�x��Sݞ��GU��oΚ��&�9�)��RP�%���� X'f����� )"泡>p�͆J8r��o>�c,M0�dлC?���@��#ɳE���I���Ř]R7�yz>Y�W�5m� ��W��:j��dQ�^ ��<_����%M)��ZO�2�� ����R���d\��5i!��[fL��>\�cM�`��^j_���,�����b���B���O߭Y��O��W:=k=p��n�K��ح��f�r*�C�֧��BeL�4�iŲB��C�n�h�7�<�b�`U�����'�8�O���Xtn�ˆD�%L(�J�U�za��rV� ,$�PTG��>q� $�F�Mx`�]��m�_�b�r�:�Pݶ=C�sၧj�>"���TN?��@7f\�=0ю� { // 初始化认证状态 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: 'moshizhilveduo', chapterId: '80860513', novelTitle: '末世之掠夺', chapterTitle: '028 寻找食物', 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 看小说网 版权所有