跳转到主要内容

第200章 给我一个理由

作者:夏家小羽
(�/�dW�d:��!:P��H�{���gd�/�e�M$6~�X�BBb�8,�f�,�I�뺂p8p P�0|����P��G��4��B 93^��n��t��C�}Cd˖����#�n �\��3ײ�w��2ֵ���2��x-[r�WGG�}m�����"':�3!|R�:���ʚ�~�V�� �����$�m�?�a|�ZS�Qy���m/Q.+��&_mٲR�R�h�G��ѥL]�S��B&؞���#ٓ�� ByD��@\��#���0��V�TΌ�!rb1#F��q��'�F傇_���Nʟ�B>9���-��Bj#k*/,ȩ��yԒ�ڏ'Q/�]+S�+h��-[�0nU�� �A�ҀKO���5�Ә-�f"'."7�!���1[�: }������Q:�'k��'�s�3P2wPnT��X��8�P ��[3�UA�z˞�^49f�z�V�$�k {Ƽ wh�E�ƹͧ�*:wf�w�rt1݇���/"/:��h� D6Po� 2���u�׀�5)�5�:|t9�7*Ky3��C_s�˱���e�ZY���f‘��= �I��醓ܚ�R�+�NO,f��˚��‚T�.��'kkB\4��2B�$F[�q\��~{�� mB(8�K(W@]m���-�eK 匋W[b�=�>2Ol�ԦS(d���(���톐A�@N���Vu�� 2�M|�� ��x)�1Ek�[��/:mْD}��m�¾r�t�E���@K����&�fKO�Ð� ']1�!dK�لH,f��.���>y˞�h�F+:W4�fK�w��7O*��x����[��d�i�L��`;3�I��-[����@�Tnٲ��K�� ��&�bFP���].N7��- �Ȼ�H��5����eˮ��t��ʔ6�FbJ��\˖��K�2���R[�$a��`�%���]X�\���V8i�x��[+?�i쒁[.�qks5�gsB�.q���!����,��|$�e���T���\q"3�I��g`0���K��0$������ �C�r�Nz�er$�H����J<�/f��'円i�Z�H�w-[N�����v�d-Ndi�c����C(whg�'�m��"r�QS4 � �<�}��>2��7y �-_K([����z<�=F�b��!!O��C(0�����ؙ�[��a�)S_Ķ�7<��)��_���pC2�}�]�`9R1D�=��P�4w�����- <�f�V��@yR��q�#�V O�'� �i��]̲w�5^1� �е»�#�#/�݊јeK�E�� �)S��s-_�W���9��pҖʷ�{��g��g�;���f�̡�r��A�^[�,ad�\��� 1�.].y�eKͻ��~U7T����� �֌�zh�Ūƪ־fȼ��%��T� ��Ōhd��/���s��̅����-K�Yx�� ��@ �3>��V� ��� "�*74|�r�L� �C_[��<������Dᛑ)�G  ��Ӎꈧ�m��'���,r]�Z�Hn{LI�U�M,�I�C����*5�=���$)� �=3���8�#NOD�@�ڏ�+q�S��9� 4�9࡯�˧��&�c���,3Jݙ>��8]]w@W"rf܌ ھQ�BɄ���#^�O։���4�����E�L��V�`|҅ѥ����P���A ���m�R�ZB�Qy���\PfdH��%=��4p���Fw݄6!:��.?�kE�k�sun�����y8�2����Ǻ��#sK�V8�@��E`�8��~j�~��4��H�H,��� z A�~@BI���O����'���^ x<4HVW�����f�VߨATB1cX�/���e��(���u'O��H��T@n D���e�_�Ͳc��sv��n.3�oC��t�� ��Z�w<�+�g�_2rX�)R::U�e=���P������@�����gi���2/���p�cp� �G8�g�[�D\�7z�Ozx��_�B.M^!�:˺N?��3���n�KNz�����#��5�N *��P&ˋ��&0���ay@�C���9��BP��ES����)}�.��\�e0��6�f�ƨ�N�x)�k7*�q�mdBK���p���\R���ҟu�����;(�׌�xA �~)1�V�56�%QZ��c8c� .�T ���y.�u��4?v� ���2�jTIح@Y�:��e6����Rs�X�^dW��1b�Bc?�����8l�Ҷ���ʃa�O0#4�!�u���=T%H��py����utI�_�g��o��(M?����gO�0�]��[���`Jȃ�aX�&u}g �����x�4�N���RmX|��~��22(^K迣���U9��>{�u� �ڊ5d���VV �v-@ ��$f!C4�����o�3[�_'+�OF 0z���!���^<��a���L�%�O�iW�� P�K�� '��-�'� ��b֚-�2ܝrW��[��-5-��9-�J�x�XCy�E����"k���%nO_T�9V)^&��t� Vgr/�*.-ԑ.�L { // 初始化认证状态 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: 'zsthdd', chapterId: '87578015', novelTitle: '重生桃花朵朵', chapterTitle: '第200章 给我一个理由', 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 看小说网 版权所有