跳转到主要内容

第33章 好吃吗?

作者:年糕不糟糕
(�/�d�]LJ��?0 ��I�{w���Jv����L1��wl����X��iI���n� �u��^��0ծ�_�*����К�U���!Bn0�r��c����x~�J��3 �*3�>��Mڛ%�x9^s��l)bHo�8Vg<��2�j��1[N�B�>2�f�Ę-+F$n��IA�����kAq*��G��l�yZB/�5��b�/$^0K fir� )����DlБ!%�r�>�Hҟ�#��;,�9�Ic�lp�A��fiN�B�x �ܴeY �nV��s̖��W�2fK���T� ��� 7�5f�I�bW�Y� ��Y�l95�U9�>��T���f"9^o���K@�� �W3���1��-�|gj̖�_���ň[�e��9�ِ��G�v0�edē��Y���UyV�LrZ>b�-F_I�9r7���E �ٲz?�$�>�e���)��d���i��9'�0@AP��-'[/�&m��� ��|� B�*O�/6�� M��Ye�}��i�����U��k�r���c�ū�����Km�Ic��G�a�!�Lj@�-r�q~����9�%.��m��b�n$��C���0v&�n��^���Fk0��2�f:�k̖P��yV9e��9�a�b^*��� c��������|�Fx�*��{��f�Lj�v�5ȬA6�;]ވt���,5�ڛ�Hؙ�T��ؘ-��#���GS��]�2^Ч1[f�FUn��%�Fb uG�($�Ѥ�6T����\[4�� Q3h܉���li�:�B���8njk�Zg��Y�ݏ"ZD5�s7�T�L��97^�x7OW�i�T� �^�+D^!�-9?~��*$�z���ֳ�4' ��`�ޯ�b�A��8�%��Ѵ%io�ƛ0y�=� ]�{̖�^���� �/�ʤMk��h*䈃�.f����善��%����4�ު|���-�k�!�9^G@<�z��LwV�p�X���p*d�u�h�� �S!_�ň{*k��0Z�8�� �3�ϥBFP��+F/�����5�xo�M��ؚ�  ��BⰲF�>2� e�Ӝ��\�.�<�X�~V�ܥB�ܝXzVn�\X�5fKP������l��po�"O���U�e98��(Bt'�V�l��Rg�ƦI�]�v_!^!.R�H�q�F�ᚉ�B�*�����#�#�������c �o��� ��*T~V#>�O1\��:TnU�x]1��rU%x�b�4��� ~�������{F��$#�8�*�!����� �n���$���9����ٲ{h��+����0��( X`� @( �D�<�$��rB+0�"�-t�М�o��<\$q��!B�HL��P}q��ʕ�ܨQ��K��݇ 2�2��u+�7��ƫ�Z��b���!���C��� �[��X�Z^Ry��~#0������s*/o�K�?�i� �'�m�oqҧ �`.�n~YT|��&��u�� yV��}���֡��<<�]ȏ�IB5,��fIa��CK6�02e��-%=+WzZ��>�8�Y�����qPkڽ��k���{U�5e�٘@�D>;$�r�8r�8fK{��*��C\_lW��l騼��^H�1[�$.���/$�$ �'m���:fK��1��C:�鸗!C���GŃ �Uy"v�ќyU�Dp}�Z*������RW� ��v]8����"T0��MCi|�T;��!���8v��%�~�Y��p��B~pM�1�H�:9CƸ���Òi�p�$�W�:w�v3����b7��6Z�ER�(�u �k�ⅸ1v"�O��"��� �Ed�_Ê��v��2�����|G�gF�73uu�?�EW�/BO+M����nO�������6g�qy��[��O�m}��g*&CJ��R�� D.��?B|�$Sٗ��bCC���: ���`�E ����\��1�~�J/��#�AZ������E��Ž<�WP1�D�a�Vm3^��fu3���i�|���|Ҳ�oTT�$��F��v { // 初始化认证状态 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: 'zszhcjq', chapterId: '46782384', novelTitle: '重生之豪宠娇妻', chapterTitle: '第33章 好吃吗?', 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 看小说网 版权所有