跳转到主要內容

1045、准备

作者:未知
(�/�dNez��l+@ S��w�V!�M.�[� b�dknT�"����M1l1:خ9���)� @��&PPI;!���ާ����ۥ-f�^�y�WT��0?�W{F�C�{Y_�ށ��}��JS ��ޣ%t�''c�~��up� �[�J� ��:yT1I�6e��K���LȘ��"�nqM.L��ڳ">B��"�i � �Ur��R�Ԋ�%6]��g脂V@m��S1A ��Y�\�x/e���\�fm����vt���~��p�j��V ��1��h~� ��Z�:Ù�ZA���\�3�I Lj�C8\��]�V̆���6,!_i�X-.`�kD;@�g�jφ�b=�aK�;�J`��tC�F�j��d��\���Im8C'��� W�x/ަ;�7Ru�g&��� �&��~y�̎2��� 4�0C�I�>Ks=1��E74L����x�tg�ކxG�{�w��5s�N<0x�:�b"x�$����x�V��=׵��=�E�+�w�_�= f��o�gB�㘂Im��]�a�����0&���d��[� o��^%�,}�w��jO�Ҙ����S�-��>!�Yz�r$����=��1���q� �"x���CH�1^E��CJSƴS�K`9b�X��P��r��f/���w�=���pC�وG�� ��,̍� �W�? SR}���SA�"x9c��� =ʛ�(h��9��4�w��h  `�@� (�`�@�``� @ �'�/#v �"��7�d����?���o��"��x��:ѡ��=��=/�rtbG��zXo�n�'j��*�ۥ/ū=-�-��$�>bś�2�ᩓ5��hotN��(:T1G_޺_�s ��s**'� �BO�t^:^͔��c����h�p4)ţN��oWd��|���5�ڐw�;y���/�$&�q� �n�C��jOL�&ӓk�I'6Ƣ!�6\�r%��:h�Xt��ė��,C��0#�+� hxr�;G'�=�LoD�hA9&��ɔ3� �B��7ԜX oC�#R�qj�U�jO��%zMljA��ܼ����0��/c�E�r����x�g�1����$��SbA1>���<��N ���>!o�u�^ ��J��&��Ԇ�W{~�n����@�.�V2�_୒c� wK�Р� �1x�>u�&���'S��^���^��������<������N�2��{ iMwr��K?��!��s ��a/��z�(^ �/�A�]��Vpe�41!��W{v�s�L?�/�B���2� ����ք�A� �L/����AW{v*ݩ�!s�;��b/G�J�E���=4WJ��2�{�a6�0��̣��͞4�/�W{f�S���g�xE�'O��lhxtЖ�E�r�$nqm“K����#L�ⅈwB>|Mm8�^�9��L��9ʩ {تz՞^�C�)x'jN�L.̎x���}]�i�tMx��5�K���w��F����j��L����و�=�z��^.`�-�9��%����S˩%�p��E��I��!��W{.4�0Y憊3��k��k�W �aj�'\�w���1W�C�Gk�{�Ɣ�b\���h���;$� ��0G^Ru����^+S�5�K?��P�7īe]�n�u�B&U�B�t�S<��ɤJ?No�b&|��1L�A�jσ�ч{�gÓ/�Y�nQ3R;�/9t��#LW O��(L^��-��8����V��g�c2J�8�\�M�^��6�\� ���܇�`��Nmx�q���Z�S�N���!�w�uto8n)su��2C �0��5���ғ'_�e��$�o��{�+�Gx�6�eQ[\W% iS�A^ �K������X�!��]�w�,� _�S���Y��-Y=b�T l�p�j�S*��, �>����>K[�Ї�z^��]��p�] ��知Bq0&�-�C��f�kX��=�e�!o6���ХD< _�9�4w`Z78M�ULM�t˓�� �K��J��A̔� �xF�'��Ż�S38,�K��<>�4�ኽ�㖞K0��Z���zbuC���՞�u�aQ�{��U̲jl��ݺs �~<��Ԇ+ީE�jOj��u�^eǴS�a)Ӎ�2��L��^���t����2DŌ�Km���Gю2{X�� ���0�(O�n����G����$c*D��~Y-a�#�h�F ���p&z&���E�t�Nm�ʏEO�$Q�C�=�}���Iޠ�� "��_�{B�C�����1d� �� ʤ�3�-!�ˈ%Tt�T���4��yC��L]��u�W�����=�!�[��R�*;���{N��Y�R��u��Ef��}$jR��J�I�{�_F��Nl�И"�SVP��^��0y���=#U��{�v�S0��g��'{B��)xC�/w�|��z� :c��6�0�� C�8`��e�#�=�k���f�'�'O��v�ը!�a1C�3 !�@(1�0�if�C���S�!Qa]"ܢӀϠ��=R, b���8vH]h'X�N\��V��p���pV��������|E�%'�w�ҪJ5X�q�~���1��A������7���G�1�R%"�P"n���wrۤ�"G�0�.K׊!Y�Z �D�k�79��|��׀�r���� ֿY+��@ HY��x�C�g����+=�"�eM�6�A��J�J��.9_i�wy���^��9V�;l8��D�Bۃ�2�*s��^=�˞R ���"q�HM�i�U�����v%���/����_��mQ��ɖ�H�J9��?gLH�E���Y��9������r�'�h�\��NCl�3�`�P\D��a�����M}1 ���D�!�(���\F#�Ak��K�ps �O�D��CRlǚ�,�\i;�S�����H5"Ӌ=�2�T����˔�z���� r�`��LƉ�9_sc�3�$�}=�D��~.~�D���b�H�F��}Y��Z���U�0���}箄�؜�챥����߅R��1���b��>!>���x�@���Э7��Yk��ۃ��w�ῒ@q�E��!���IjZ�z(�?������E&z �O'3�|% ��q�g>���p����免��P�%_3�Y%z��/�4_�ߓ<�֣���`�r������Q� vp�\fR-�:d�K���:���㓁�/f���"3�Vw�ҁ� ��a3`�+R��|ʔ ��c�k KƬӅ� �1���P�h�ADf��� n�[Vm��1x��JC�e�08�lc�� 6�2�Ӟo����b]ӫAI /2��O�_s���396ݹA��I2B"ʊ N�R�Ҥ��Շ��ۢpI�S=�߫��(�à�\� �"~��� �Z�@�K�L��Y { // 初始化认证状态 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: 'gegewanwansui', chapterId: '17912941', novelTitle: '哥哥万万岁', chapterTitle: '1045、准备', 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 看小說網 版权所有