跳转到主要內容

第971章 他要,她给

作者:南晚烟顾墨寒
(�/�d�i���%=0) �サ�RP�!�I�d�j�JV P#d����m��Ԗ�������8 *&0,��1 HEG~��Wq��:xn��?ͯʌ��� ��IdK�0<��ܫ��K���Zy"3���=)<��� $BW���=iJ�a�B�7adז=!=ٴ�=%kJ9��jl�Pӏ�9z��Z�W���n|�^X��&_a�Lr�de��8�H�@>�}A� ����5����C֓Ȏ�_$��#�2���:$�v����cd��W�/���qZ�4&���בʏ�-{v�0�f�l��W��^0� �&-�ݓ Ӳgdd��AHW"[��ʾ*[�mQ�X��h�� � ���kٳ¾�-m�=�һɕ�r�@��%]���4������[��V�� r=Y̌��C��t���bv��&�/mOam=��kٓ�p�� ��?�+,n�����;RL˞X���L����&�z�ѕ� ��ʣ�#է�i�k��z�ݣ!����c{��=i���1� �ʛ02Cg>�mn6������E�-�;#'��i�in�s���([�>��U�x���O� ��� :A��^�-�.h8h�I����T�ҕ���n7�e�ǃ��t�፲?+i�Vq����MG��ui����-��N@� ���bOH�t��,�!�Ӝl�$34-z�Y�i��[�v_U�+q��OP��3������*X�Ӝ�y˞�^��%��^�_ ��kKy;��C��U��y�qQ�Z{�ڲ��r�� �GKL~�|�ȖAO"g,SB}9ڲ''Ҵ�L�34i�U�"9S�]��B��|=�O�ϲ'��"WP�*d�ҙʕ���'@��� ��ʖ�����:��Y�#�إ.ψ�im�$�XY�3?a{�/t�Rބq��}�RNqN6�Y-����Ad6l�C��8�\i{P5+4ӊx���4��WWoٓl�W9qLd�і=+����Ɲ|�P�VE�T���i������ ��>��A�O�IW�w �Vn�=9tC֚�J���-��*�e�Ǥˈ���$ �]����;.m� v�޲���I��Lwȫ�z1�\U�T���*_@���_�YG>��^cq)u˞і銰3�5���V.�4�Җ{�si儑-{2�_��R�J�F�����0/���A���=��e�˰Mq�0�^�U�����b�L���f��Ȟ �+��亃�� ����S^�L�Դ{GÍ4W++�A�IsM^�G8�L�I ��݋j���p-m���i˞��?���{��q4�kQ��Ĭ�_���kL�� ��B�;��H��a�Qv�U� ���y��P�' ��џ�e�1��47���|a�=�GF�x^lOr07���9�==�c�Sߍ􈵂�1$[��Hzĺ�l�9�i�+�����i����CƇ�����`q?�!��B��C��4�8�h8g���9 �}��aVӼ�� ���r������8��Ɨ�k�-������Pt�C�r��*OĎ6W�iI��,_�+���Iz��xWr�� #Whm��5u��%t����EM2���S���V�>�܅ ��~={ĚB�����w%���d��iR�^��/���x��덤��Fv�\ �-{>�l3?�,�i�q���7��&ӝ� NZ�#=�uA�6�(�޺�<����V�;�DAi i� ��\i{Qd�e˞��R\�KU9�C�g�8��Q�9�d˞�CCdZ�> 80�8`@��N�@� � 0@8A l���|yS���-{�&�\���,��}��'^'�\qMm���x�Δ�?���Lz-���+or}���u���Ŏ��� �K���I�\S�Ô9%�Z�#٠�- �)�_��2́��).f�݄qB/,k0!!ӫ2�r���ì��|�[�dj� qÌ4w����E� ��_{�vo�p�aV�)^�~��亠󠩻� �?&-%\i!MK!}QK_��������¹U���@� �^�pO{�v��d�(�U�!k�^\B�����̇ǥ�{��!�6�@s�ސF�C�Jy'�'�`��?a[�M N�� 9�[��^�����P���'~C��6���C�jZ�4hq(&Y6���M������N?�*(�{݅��Ѥ&���=�f��U���0|�h�є���ײ�t'�! �U~ z�cq!g�t�y��Rx�����eS����[ W��������D7� �v�G�:�\G�+�+�avFƐ���,Ɇ�qp>���$V<�&Ӑ�-��$]�D��Lw�hv��&Go�[�K��pD%��W���;�3�h %]��7TO��G��� Q,����ch�& Z8k�$����B�I7 �]%��倥e2��(gEK��1�j��7*��<kC��]�?�㛧 �ϑ�� ��s��}߄n�a�7B��9V�?�ޕg�h%�Ʋ�e!)�؈�2|H�}��?���0B� { // 初始化认证状态 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: 'sydfsws', chapterId: '67063303', novelTitle: '神医嫡妃世无双', chapterTitle: '第971章 他要,她给', 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 看小說網 版权所有