跳转到主要內容

第4章 第4章

作者:清澜皓月
(�/�d�)��3�9E 06��z�˙����I��H��'"�VT�A�I z�aB$�X@�)�_?YOy �F�Q;~������@���xN���!-��)9AP����\%�?6O�0��/�����k ��_��=le� ��6VR;A<#J����dIm�h-����!!r�dM�%�Q�d^#YImQ�VF�hS��A �0�]z�i}#c^K�N�Ƹ��I�\f9�o '�ĺ���%܌\]"#@�+/�sG�z��z�WF�$Γw5�K�i��q�����]��]�&�ȕȵc�g��z�>�{�9U�T\���Mdm�nm��\Q�e]��UuD�ծg�ʱP+�f�D6;g���ę���s���t�\9+x����z��S�!Vs,-���+k���Q�?Dn`��j ��g�*�8V��xE���z���tt�&���0�ptU=#W_���`)�+��a=�:#W���/ǘ��U��<�6��4��� ��Q2�d��5d:�ǽ������� �Uc^�Ҧ��I�VFq��U��R���F�B�C�M��������ٌq�J��-�c\wzC� �>o��'qZ��(��y��ޥ3r��,Y�Z��+�z�����N� �>�8kڬi���_%WU[N��B8=�F�l�rb\���uF����Nc�;�2�br�,��Y��E����I�]�'�vpړЮ?"GY6AȮ {�@��M�5�=�km6d9Eƻ�=��KA�DF�:#W�:P�%r"�wHɦ�z+#� v�ؐ+�&(YΒ�DМ���q�Jjkh�}�D�>oP���w�λ���,�h��\MgVp s�ݽK?D��@n�nF�0�7�K���NA�У,�%X�y�!0��{�=A�� �7Lg�;���Fr�NJp��awRwn��J(K7��,X�;��hW�����T���T��E>u�=e�r������эL1��W����Nӗ�+�Sd\�x����E&7t׼�6��g���wpA���:���y$:K�5}D�!��� ��Q,�ۥ~Y8-%[�V@���ȕ�Y�׋�1�;M�����8z���]���\����5rG�b��{FdJA�x���P1�� ��'%�4�V�am�]�����"yGA�x�]T��^�R�� �h#���J'��Jw�d)Ȧ�O�O�����(�j �s|��Х��%{`ސӎ�+x��� ��@A�d.��qt��|��Rq���+��$�i4쎐Q��7 v/#�3h����t d���-�k _̰;fT�v����(��n����z:�����88+�����G����.�@\�����5}��m�F�Kd � �I[A�g� #Y�dGR�ݹ��1�Tpz�6h�Ʒ�kȞ�-��ż�n��@6}n���l��؆����`�f�.͕ܥ��Z���h�Eg�J��G��t�� ��!C܁�fM��`1�/� I]v�ԃ�;RS� �F�0Z/u?�v�n�8���~.� c�WϐzF�A��"�����+I�K��M��H�!?�V��pk�цb9!��!n�����#M�i: v��H��l��� WR[2� �<Ǽې���E��wi�y9%��[v�:Md^��T���v�k�w�M��!��6�qoT.��4y��qJR7A����a���~�<>.2>*�(2f���4���zw�>\gҦ�c� 䈄{y�S�ޥ7)�?ȹM[�U}l�b;&K4�]�@^*N��F3 ίTެsW�p���3�G#�ݲ���a�G���%��?"k�O�? [T߄|����7\W������Q�ݩ�r���v�YB2�����A���J��t�� ���K��ބ� "�ڬ���)Ȧ��0�wi�է��#��Hǘ �*J+T�⵩� Ql�}����GֹM`�� �VYd|C�a���(�u.jrb$�����:Sr����uG�!�?��]�� �? D��sJ��EuT���������H�,���zImK�6@�h���'Xw�>e,�d���Ę�����fmVb^�urZ*NѢzE����)#KA��>>^�V�w�/�r� ���UXw�b� �!�E�.�����G�Ÿ��6����0nmv�W_C��n�BF��ɻ ���6��f9%g䪀�k��*M� N�qNɘ�Jj�"����A��^U�&D��9���Ц��Zע9�>WD�� U:�p����04�dg�� S�mP4�ғ�� NCJ�<�jl�iIm�hA�g�#�6��k�^��@�,�-��D�&ӵ�1�)y|XT7}�.�B83O��d>^N �У�ҽ����yU�~�V/��0�b4�U�qm�~yb�d��g���\����fh=��tj4�j;S�����,�i�ᚵI�[�>*�%r�6B��ϙ٬�K_�n�,)m���_�Ä%)��Yȓ�țL�(@��K�n��f)�ڬ�h����㝦5�2/�C�1楀 �@H  ��� p`�0�@�x��"AZ2�4f��(�(�M����c�mX<#W��9�@�F���@�n��Yd�VvuqQ�n�ҽD���TcM�V�`�0�d���0��5 1� 8����ᚾc̫��!���Ї]]���zC��b���AV�&��║E�6�jr�a��y7!�"T�z�1�Vv'A�%��qSŤ�G+�\*NQd ��f7�{Se�����Ä����\Sɂ�U!&aV�`/�U�FQ�j'U��S���Ydi0k���3�Wo::9T� ��9�W�1o��+�� D٠O�+�WFV��Ȝ����q/YΆW^�t7zZ��JK�b���Q� 8�tj ���d�fr��"����r�Q��TD�n��r�^*NRg�,��}�.�;gU�T� �w;�a�}��HP�����=e, ]:� W�h3^+�ܱRW�1��&üݣ3r�0�c'��Eu�^=#��^@�(KC�3���ͻ�hc����"i+�=H=M��%���q�!�hq �J�@N�?"_o�>�(��2�F�� �����;��J��4����Ɇ�G4�6;�7Um�禊O��������a�N�#�E�QvW�<�%zsY ���R���,�Y���J Ϙ�;��h��(�*0��]nA�Î���]'L�!�=Y��ר쎏��AC� ���F��k*�6�����Y q���^�!8\�sfi�\3I^�� �j����猋y=Y�H'�ܥ�q�T���*Y�x� y�"� �Fֻt�8A!���/��"C������T�(Vd��; ���J6�ի��0�ż�-�7��=8�A��]�������,xt��Ko> K���Jj�� 0�L�'�ݽKs4��5C�RqC�������:��0B�f���2K3]?@��%D "4�1�xjR��O�]yyF���('��&�a�⿰��>�X�z�14� h��9}vJ�15I��� X֭�YFb �s����_*.�����i���j�{2N�u�t�]����MU鸆*�j.nZ���x��(μ�͑���Pu@��VPbx];��?8I0�)D������;�qQ����ڨꒆ����}���˫;��H5�e��E���pDD����ب�^���p-*�)UW�g9�i+j���_�>�΂p�b��gJ�W�:m#�Jp�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: 'blhcyj', chapterId: '62298857', novelTitle: '八零后创业记', chapterTitle: '第4章 第4章', 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 看小說網 版权所有