跳转到主要內容

第32章 陈黄氏训女

作者:桅子花
(�/�dp�ڌ(4@1E�$�;7�ό$�lJ�)Fw�0�נ�nc�kt3KYm�33333333#swu{X���O����+ ��ܳ��;�X����82弈���F���]!�g�Qwl� �*vr^2�J��N��+e �b���V>6�� �ʔ 5'�#H�8\R��DkuC z`@�i��7MW���We�LI�I�'�A떒)ͥ�@�-�)��ʡ�7�#\=9���J�Z"�+ ;>�~��8v���X�H�����mR� t*?ʾ�X�L��v�S� Z?p��Y�x'sE�M����y���en�L9�Bє�z*W�t�8v�!�V{�_C�����dؑ�5J�ce:�|$>�,�.V� ��h :�.�n�aZ��+*{*O!𒰧ʝ�_ceJ��I�0-H�O���bwF���ȋ����S�"2V�ז�M@�����bw�ɝ�1�k+ӳ�[�J�{�'�S�5�c���zG��j�L�� ��)bd�r�EO�ku`W$jQ�nR���7��7i�b�QceJ���|�L9o�L<^Q|�%�D2c9�H��~�a�6)he p�����G2�HP��y;'��g_K¾��<��֘˭4��|�Lmn��ô@2��f^i��AA��JJ'U֓���+͂*��S΋��b��$���a�kQЎw��� @���� )�t�Kke*0����bw��1q����M2�Q�;�|5g���`�,ih�� 7������t=c�%���[��f�hd�'� ��>ؚ*ӄ��9Ǽ��ʍ�=��]l�b2U���+͊F�&����7��w����d�x��'�%Uv3hO�Ye��e� 2��-&��9ޭ՝*�%"[�[O��d\�ܠy&����^[W,����ɰ�I���&-v���F]��1�S�r���S����I��Ę��a��M:+x$�MhIܤ�M����u���Й�djs%�������"��t�v�LÂUP��)H�� �T3��-zm]y��U��q�%Б��$gu�AC�3���f������xG2ƀ� (h���<ܳz�ߤ)���T�\��b�9�?��� �R =��|�e�=��l�|thT}![쎕)cҌIkԳlk��*c 2�p��b�o��i��\Ȩ-�������uV+S��Ѳ�e�I��_�WD�<�TY�r�2%y0�پIO�K��)q���qD�̩�R�[i�b]��=12�9V���|��N�����; g;�Y�<��x��� �X�* �{�xV�b��;��]�.�!���I!�0- FƼs���М��$i�z]i6����љ��r^E�0�%� E{��/��N�[i��YeQ��Z�c�Y��v�%��X���:��Ίᕔ>9�(��v\sl��i!������qmv�`���Y�L9�C��j%O�;�9�~XZ$�`�K�$�-���k^�+���4+�iE �le�`��|*O�N�t�ه�3��8K�nU��15g;Ȱ�e80mI��yQ9� F&3���2�\nEd �X��ٽ��8r�4��`8��,��H��I����:>zv�aiK�LS>��,ԕ͚��]!��j/6kR,cңC��w��=�_[W> ��]��]��X�NH���p3�(�����!�au�aZX�,�@�l�#$��U;Dּ�+v�W�E��0Y1�!�2i�7�mmQPJs� �*�P���֠ʋ�)�4�g�!9�0-t\' \�{(���xw�!9�.uJs5�w��aATƦ��f�_[_D�093� :X�� �{ v�4+jn�x�X��H?��@� d1-��*s�=x���p��c�k�b��>��tO��"�b6��`d ᚇ[9�}4p5�!�bwKd��nǵA�]�Wc (��2I�S�͠ �ce:qvt�i1t2"�]F�i��6��T���w$-vbx=�M�kc@�B�D��/��G� { // 初始化认证状态 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: 'syqnnjjqxt', chapterId: '87285089', novelTitle: '神医俏农女:将军請下田', chapterTitle: '第32章 陈黄氏训女', 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 看小說網 版权所有