跳转到主要內容

第二十二章茹雪的小家

作者:未知
(�/�dk%��399>0P+�s�#e���M�(�ȶ��`!�ލ(iw`C��W�P�n��m� }���=���}���w1�2�6h�/w����~^�#�0]�5�e�ٶ�5�4x$ݲͰ�e����C�3�=���p۾"[�b ����~0�8y���� W�^�)������6�8��f�?� &�U^A��8��O����<�y�x�UR.&�/*gf_giT� ���Y�?%V�^��C]p���'�>Ŀ�~��p�;�ļ�oH}�%��ջ"�*���H)<&|��1� ��0��3�&w���k�1^m+�7#��܀t)�C2~V~#9)��Y�D�,b|���}��$䯳�X|�]A[b^G��^g�#�MƻZ���z���o ������f9g���U>Qy��z~o��t�����,� xa������ջ�%�¤��򌐧�O���2����tJ��ȇD?�P����!�=q׫c�H�s�����醊7�Wۛ�*ߔ�໢�Kۍ깳)�B�(����x˲����4~��q�e�R�7��2�ɸ�)do� ��1j�򸝌oॐ�پ�R�lJw��F<����.X�Q�u�e;D�d�\I���E��v�vyN�/� U~�.f��� g�K����3�/m�@�2G��#|E�D�d|TyI��� @-w �W P�������:Ke٢�A�˲G�kuI�����^gi���}I��� �C.#�"2h�M�w���O���⃆;��j�,�[��et7��`m0e������%M�<���^R]a��� �U��]��Βg�� ��K�ذ� ۋ��H7�]��(���F�j�lJwQ�lW�_g�c�3s 5�es�����=wvEv5���O}^��B�u���c�G�1�(�<\�{��|�%�����C���"�A��}P�"��H 8@�` �� � � H (@d���7�%@�SR��8A�h����RĘm3�l��m�tz�Q����c��g �NI��P��v�I�� ��Q9}3��`�a�j[����]���wA_� T�-�3l7<�T^^nAx4��f�7�[�I�y�r⯳dVj.VN���}YF�pi{�.���!f?¿�R�b�&y`��ʫm �x�� �\m|��p��4qW�e��; ��Le\A����9�k���4�S�Q�@C|���mN� �zW��Q����J��g_gI���'�$w`�h8�˝���� Ν��Jx�-p=zO�/*+&7��w6�ڮ:���YR��K4�3b���3��W$�|q�v���'6�hrh�� [��k�e��� �P �o�xy�.�� �_���,�8�s�㩌�@�]1�zSt��,;QI�y�Y�C"��W������p|H�W�/(�D]Q�zH��+��8�|H������!��e���� c6�c�ނ�����7͹�C�Oܵ,�4�Q���1��u�P����v� �W$�����6�\|xz���8�!�+h{!�����yI9'���t/�;��Qy�x�l��R>�:K��c�)d��G6��)�~� c�/�YG����M�y$���I\�Β��wC�%CǬ�8pGp+�c ����΀>3;Ĕ����ldl��˱�H�e���/��j^,�D����!V4�u��.`6��I��̆���#�V�.e��w@|�� ڇ�BO�G���M�Xϝ�0�j.V~�p q�ն�亟;�R�A�1�6g��O��f�F��X7q��ˊ�%b�ļ����b��9�kh_ �:N �H��¶�mD�Q�>��9f;3�B�|2<�ˈ�kh���c�+T7�#�2N�d"gf�6��l�r�^g)C�"�8��v� ڠ/���(�3��ኲ�/(rm���^��DW8>z�n�[mw�D�\�d�b�����P��,U��,޵(�sn��mn����į�T�f"ď�[���P��q'�S��>�'����j;Ԝ b�Y���'8��*p��(�$��Я�$�\ t��C�C�c�/Ms-� fWۘCF?'?'CU^bua��?���'�Ȧ��!�����ّC̮�;��j!�Qbvć�p��s�+�IkzL�� "�ތX�0>���������fF�k��p����l{��;���+�>�*Ť�c�=�Z����1�b��Y�lS��#0�ݴ��`n@��U�N�{�b�68�"�Ig.)wh��z����-l[�[^2�e�?%^T�Fh7@>���QM�iΝ��C4����)�S�W��̜a�={a{Q��y�˖��Ɲm�t�疅c�4b���Ȇd��}ErE� nxNny�I�5�����\�wӂ ��َ�9bf� ,B<��1����5n��(��� �C۠��9��O~�X`�#��UۚҹWR'C��R� ړ��� �SȾ��~��9��%KR|� ��W�wT��fD>ٓ�!�(�+"]�x����7`n����* �(�1�F��" &�����)�"!����;�g�K�.��'i �3���D�8�/��%�\��@�"�ρ�I�[`�՞nގBJ�)Z�l ��dz|C7�5ל4Ї�`�!�(K��"nT+r��M��c�GߺڐH��C�\;���;�(��^�a&N�1� ��U�Z ��-���E�BO����<\�� !L�M�Ns]Ϲ���)�������F��7�G1���}Z��b�b�|éݶZsT�k��MYzO�>�"� d�+PK�5�\?��h�u"R�T �ҏ�qB��k0�sH�A�Η�J�.s�|��!/ue}$(� h��txf�XI;�Y�Y�ۢ�����Ug<_A�i� ��$zL;��� �`�ϖ QA���wVk��sb��:�,�E⾋ٯ�NԵ��!U�1x��-���6s�aq01G��:w�E�9�U��j�+�kK��Z �5{ѧ.β { // 初始化认证状态 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: 'jipinbaogongtou', chapterId: '17780783', 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 看小說網 版权所有