跳转到主要內容

第36章 得饶人处且饶人

作者:shisanchun
(�/�d����q49@�0U��93�ό$$}5kkh2��l ���,k�j�������̔�������/6Da[��$i��Im�ڔ1�[��ܪ�2����ŗ; �\��� �S�-������ ��8e:h�g��v7���?�Wnm��r�=5�{۱a���2f�|P�M�Ms�m���D>���6HԳ��e�-/�t�vD13��l:�[FlW�_" �Y�e�{�h������=�%�r������;� >3����Y�f��'��ٞ������M�+��t7���FNo���v�!#��.��� �2f����4�a�Ymo��_�V�������R@"#,p����V�s��G ��0��I������'�#�l���No��vd�/�C $����- �S�s��K�lզ�L�U;�!jЄ�Q;j;�9,rث`�6g�si�����-����' ��I`dž'������z��IÏ�$���ݨ�5|�&2���y��Y$� � O��o�i�� �7�@�‘ �C�v�͓�2��`��ڋ )&�J�^O������a?k���G]��O��]��Z ����A�+�4p� :o�� �#�5)+f~@\���^1�U9�.�� �u$��Bȭ��?��<�P� �L]��2C���8�� �u9C��-/k��F�}�r��YD�q�F.ls��/����pzK��Q�H���6��Fɉ���¶cÓ�E � �x��@�����)�k No�P{`�Y��A4�[z����2��|`Im:3b>(d��P-H��t�<���Oƥ�P�=Ԑ�O�d7�N�޺`���-3�7l�aK�D�.�%G���a*�=��� 8��|�ܪވ��c� 63��3uy�~�9'���--J��5,?�L��z�����v�j��ڎ K����s�ȑF�N]>9��27�j{1���D탌_�w�︷ �x0A� <�fv����#�bه�?�,ت �>�yzK���j�q� �9�|"j�Aƈڪ ���a3x�}�����-��''# ` ����8H�cÍښ�3�w���9�?���*�x �2{zˏ���h�:���������o��W>�3XH����V�F�:ep�O*�1f��K��e�0#�[Zۓ��A�evNovn0v�&[�A^厰 ��I��{c�"�{�e�S�@�?��-F�b|��ު�amo�1>8dq�bn: �6�ϗ3�G6~m�an:Xn٨M���9��HԘO^�����S��z�x�'�s6$�� ŗ}6�m:h�t0�e�Y۪�Q��eϫ��N��a;����Y��p��-$��#�SD8�6�D��޲aF� ��dwyw9�q�㓆�/'F׾��x�!w���/c#�� �ta1A�IԢ�;/s6��;���\�_��}i��aO�w��1�H�σ�#�U��ܪ͑"��8%�7qIc-<1z����6r�666r��� ��K��I�Q_b�[��65c�#��l��#lG��� z�e�f�<$yH�ȃ�O.��0u9�S�ON.�syD���3���'Ծ@GH�d�r��,����� 'PpI�' �����ԅ��H|�Y�%&�Ũ��O�?_7��[�d�1g<���G9'A�I�_��� �1w n��b��@��c9���; �4\m���b��H��P�`H ��|�h��dO+�K�!1��>A�!�Wۇ��5e\�|���Z��\��bK ��[�="L0�j{�I��'�S8R�pD�o2>b>\�/l\�W�B�r�pX���/lC���.&H�qN�SVԧ��*�z`� .��0(_����V��B����7j4�Z8�3[� c��� ak�g��2�%Fz��)��L�!����%�{#�F�r��r�2AШ�9��٘#�C��y��i:��!�I��9�C���/`��y�|�L�cծ���)�N9K '��lNI�d�#�s���x�#{)� Rn)�N����f��_�O�>9k{#�`�¶e8�%ؐ/�H�9e�C_�aJ^��j��!j��IR_�Ԯ&�]Q_I���/`�6�c�[� Y��W���'��3#��S�?_�<�|K�k"OFhܪ� ;�ɘ�' B�,/`�¶���/��(��OS���M�D� �U�f0A�)�����c�0��2�/{i��-E��0l�$F�P��\�`���W���2}��6c�_Q�U�B�3��6�Q���Y�8Žt�B擆= ����Y�v۪��ڔ�s��r������G >�� ��)�"�_� �_8�2��m��[JjO���$!�������ni���‘ �����g��mmo��x�bҰg�1����ˍ�k��D-�2�ܪ=i��B}�$���-���w\82�Wk�h����˝���&=���FvO�"'Q5_S�n��I�!٢�lq�&�~���+V%�_�b��n"�XV��{qu/ ��x�a_�_����Rm� ���`g�o��xT3�B���/��Iןy���a�G�'�� 4�pR�����'p���AGaB�Q�Od�%x�ut P�x�/�"�C��� /���� ��S���w;�R��4��ڴ��W�q=�-$B����M�h� {���>@Ь�js�g��� ��8L�V }�P)|�������� { // 初始化认证状态 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: 'sscx', chapterId: '85671886', novelTitle: '盛世茶香', chapterTitle: '第36章 得饶人处且饶人', 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 看小說網 版权所有