跳转到主要内容

第103章 大人的帝国

作者:睡觉也码字
(�/�d� e�� -?0 �+�s��<���o'�� � F�#�� xd���,v�ֱ4A�O�O�@��r�#�{kw=�x�-Q 9�gK!�U;N�8�d��C��n{�LQ�E���� ��9 ��<�D��� �5Y���8?��R�� �Cx�ȑ�[^N$~˜�������p �}�����]?�L%��e �-�+0n�'J|�h�#GR�Y\�>�<�y�[�g�-��rݠQS��U�q������)��Z�ڂy+��!�GVN#Z�k"���IQ.��8hK�mP��}k� �'�c&��$oe������7�-}Ҽ��R�Sb���'��|>>ݓ����|�-�s �G����� �ޤ��v �\nyy�m�� ��T;�|ؽ����'V�X1�M��3�x�����u�����gYM�� ?P|�8�Z^>8l��BO���}B���[^>0�&�G�.��hm�94[^��\<�)�B�#�^���H����J�d���nkwύnyY����`�H� 0��rB(OBy�]>���ĉ�ΐ�$�j�� �7%ޔؖ��7g~��$'��ڂ����p� �&��2�p��7�o���x�_R}i^��A�]0�2�VbkX�`���(��y�Z����jS ?����$��3<�U��5b}yn�ÉG�$�V�����Ē�(��b���E���87��}���j�'�X��r���>����"78�"c,9Wy�vW f��^�W�[��Dz�'k.f�z8w:�q����h� ����'E�)���������b��G?���Z��a3�U�5��x�s�Q,r�V[�k�Ԡ�my�Dؐ��g����v� �#�F8��ؖ���a��sd����)\�l�{ �'>O�����v�9]��ڐV;syş-M,���Vb����oJ�8q͚,O2�&�m�'�$dPŇ�����@r��=J[^���Sb��X���=�<(jR� �U/d��Nw�$\a���mp��5�bK ���O��X���eI�7 �.�>nK�~�+I���"´IQ;����rƑ�=A>�tW�#���8�~����㓅/�!�����x��2�g�C'\o`��U�=��i���c�.��M���%��[��j+��Sx4���![^^t��t�Ҥ�5�� t���O�I��̾'!{[�œF�v� a>4<�~���� }<[x����D�i�ɋ#?P���7ܒ�+.ǐ�:)��]%�f8��4��o����I��g0�QGTWP��sU�81u}a�1ms�D�) ����'_^`��pr������?��,���<7%�x~d���������]%ޮ-:2����d9��\L��V��2��I� ��������P����%�0d���SR��$9ٹ�N�~�� �ȣйёO�{�O���䮢��(����>�ނ9Uu���\}|�hŗ�/t>Q�J���@�����-!T=at��6�X�x����ʙI�7�'g����(ңD�ɑ�(����NTO^�1|�\�� �L�?�ϖH�Y=�t���\��79��D�_y�p�"o���:~����z͜�?�\|� ��Ė�6(K��l��՛� ԑ��ٗ�_�-/s�l�G��#B�� ���#L;��Sa�D�0qh��A�ڞ�;���ZAը#s�7�@ ���(��'&>�X� ��KN�}�%�G�F�:�sjU򗈪'V�8f��[�1d�J��8j3.=��u�pΩ(>NBvG!kwM95���ܼ��� �kw =�J�@q�D�����]���dyb���m�i�5�@΍Qu���� Ez��B=�������G�; ?0r����!���_V|�!�_e�T���GV�<�9j P0� P�@0e<�@ �`� ��\pA�]�-{��C�NL�ߔCj����A4kw�D �[��s����A��/SO88��&�IQ_V?�+���}ޖ�� ��k���/l[�{ �#�Nx�4�!�s*���JK��c׋��i�J-"iJ�9�V��<�vWI�+�-/O]J�v����9�9owg�+�1�,�BqBÿk>Z�>����s�0zb⑕R�xNE{�F7�̹a�w1)�D�+��,h�HOH��j�k>��b�"OVSe@ �=�Q5���T�EvBBA� �O$~��A�?�+||t�ƒFWd?���d�^y�����^��z�&&�����}`Q�'�\ڝ}J,�XM���[^m)�\�gK �o�pr��~\���-���!v�L�]�ϖ,/OLj_�c2�,��|;xƑW�&�M*���ţ�GTm�h5{��y��U_�쫘����3���ě�+Ӈ6W@^�������-t���])�o%�\�}\임eQCkw}tB�>�ܨ1���(0%3 1@ ��Nr@Pi-�P@"-�DX@�iԲ��>�i���r�kȺP�՘b�l%�쟆/D%?i[�ac�3MP����$�e-scSw��TR�ED��JB�#�%%,9C:�,<_���ג,����*@e�L6�����X���ˡ { // 初始化认证状态 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: 'lbxxjdmzz', chapterId: '64351883', novelTitle: '蜡笔小新家的猫主子', chapterTitle: '第103章 大人的帝国', 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 看小说网 版权所有