跳转到主要內容

六十一.我家的提督是蛇精病怎么破?!

作者:星昂一世
(�/�dJ =���37P�*`�s��?3�MZ�cK4�ݚ�(�X� BPYdk ��JKկ�"�/+3�c|4�X� &�[�<�^�C2}�%���yȈ�Rhg��ݜ��"9��$ 5a��c�� �/��x➒x�r�!��&q��h�ͳ�XO�W�#�{�% sE��{�ފ�o��{M74�[�bܳ�L{��(�go#�� {"�e�@�l��}�xæ�W��rv�Q�V坬���Y�X���qy�r���x��[JGho�=Ɛ� �����2K��W�\�Q�a��r��D��`� �~�q>qo�x�w���/G�vt0i�Fya�Cb_fiT^�����k<'`���,%țZZ4D��yg_���QӋ���G��2K ��@M�����N�1{��7g��4o#ŵs���1ޗ�7aS��*B��&(.��R��lr��y����)�gc�_עk<ߐ��1�w�(o�9 �J�/�4q��T�g���-{)�E>q�un�[5b/�_$@z�p�����C�]�y m��#�CMH�Xx$m����\��x��Z_f�QȚ�O��0�j}@�#t�rI�!�'&��2KXW�'�T��|)r��-{ ���7�tCl�� {��#��d:�P��(�� �G�_f),�%���B�X�8?iMqpv� >�!����L��,��,��Q?q�U�y9{��0Zr�W�����ë�->�+/e���/���^�|�~�hҁ'Ȼ��q�׵�p��X_f)D�B^�`�� E+*nV\co�{�yȢ�W{9�\1p��YBTܝWC�2�E�Oܓ�v2g�U�U�{�����y 5�d���G�@8��2}枴�~]�&-)Dy�ԙ�� E<�yZ[�S��D|��e�DL?@/*}�q�� V��b���B\��h�U�Y�h� �����1{�C�h=��p���݀w! �1ޯ�N���c������z��B;���2އ�O�Gk �1�{ �9���;�qI�XxHl �E����ث��X�ZcߓB��_��;*�,� ���<��zV>��� ��f [�<��v%� 1��ƻU�H��|�›�n�77�d���Lc ��"������bמ�0T>���#� ��H:���'Ķ*ϸܝ��i�G�B|�Ņ�تܫG3��a֔�����҇p���w���WQ=��9@��Ѥ��Kʷ��7�����,��V&ݱc��{�;]�`��}����$y3�s�#ЗY��^_2�t�!R����7>�E��|Kq��A�/FX�b�E�>H{�^<������H[�Y�2}J�z� �-Œڣ�O�{T;�vA���7�>%?�=B\��Z��F�їYB��� N�"�ɴ���� {#hG��8/I��hzts�a֚�+.��R��9��X'z�^�b���c��a{凛_f�~���co��cؗY�:�dA���L�|��p�0뀅@c�Vj&��@M�X�b��Z�ɲ9�.l0g^���(��L��KR����N\r����,�� .lp'A�� �x@(�M��JRL������r��,m�ph<'��z�Ԓ/�$z^(����W{'�/^�4i��E[݇�g��5�Y��x�ӹ�������� �j�Wj��w�KS��D+�-`� /Hj;��-�2����C����ޗaw�O�O:��J�)�OM?,��rJ�@�9�����`�N P]]0��� wT]EPX>^|�[~a���͊SGk ��#��7�,/�EX����ZS�0J�����A�c@�����X�p������i0�/!nHR�)o���9 9R�����E�[�*R��|H3�Cf+R�ɴe/Aա ��O܏��D<� E��� �U���E!�B���F`7(A�Iݠ�ZCyl�����<`���jJ���(ה�<�O�c�Q�]83�vO!k���S��r`R�R�/D_(��r�.�O�"Su���}YG��Բ8��ϖ B��ڊy�hͳ #ͥiz��vt��L&��l��+�ܫW<�}{�-��9$��m�_:�d[ȯ�:xاf��;�ޓ���~Į�Tr-�ס��c(輑ςk�uX�W��W��"�=�qvb���Y��/���[[-[�.`��;�r��C�u�f�є�g�I�NZ���bQ�*�ͺRle��_n9DZ�3�31S����3 1�Ԣ�,�X�3�G�k=�d3�v��ck�.*h:��� ��=�%�#2M�#4d�@f��g���� �@��V�ڃ�޾���O�u��;�,�;%��T�%�f3��f�S��4ٿD�:��ܺ �����kA/���Vې"W!��� ۔.J(�, �P[;� >I0��h��J⨢��a*�V�����& �P �~)D5t�k]�VyY��i'����^en��mB��*�f*��G��҆A��6�j�ޡ{C��<�oEx���0L�����ٿ�:��H�1��s��4� xfL ~!W��Ҏ�~�x��j�b2�����t�)�<=�I��L�t�D�h���=*mٻ%)������:C�W�)��^�}�3��?��9��7���\ ����So��q�|��ʊ�s1N�ݢ���AW��9�Rj�A'��� ���b-Z�uF�5D7#&z$��-�놆�.��A�x�� 0�jؚl=鳅W��s1 [(��+�-�Й�W�J�]#��R>�%$ھR*�N�U�����''�w�L&��o�K<�4� ���|: �'Z���'��tx����$K<�����n(���I����eҿe�>�ptÍ�ަfi}�M$�p�I��oP?C�&� �]=Ղ)��3�/(�<�0Γa� �H�7g�(� s�̶��q�Z��f�GQ�gy��p��iU��v��@�U#��q��� �6N�|�vh�B�����4Y �E��?q��FԹN�5|����`�€��Qʹn9rwl1���$�@'�O&�v{xC�V�t5p��&Ѻ`��黾יQ�P�̆1����I�� { // 初始化认证状态 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: 'wodechudaitidu', chapterId: '78371927', 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 看小說網 版权所有