跳转到主要内容

第63章 软柿子?

作者:陆鸣
(�/�d*�j*��#:P��I)y�a!KN "Pa�� E�Mv%] ���-���U �@ !,e�*J0+. �@��R.A��,�=m��{��.L)<��C����JN�ej� G 9����� p&y��[���#l�v4}��>��c��v�����)�/%��� �b����SD�ɇ͎�<�.C§ wJ�]>2x���)"F8��res y����mj�b$��\�ȒvU�A�� � 7�������{���O(.e&�n�E��v��ӎ�1�׀g�O;f�K��qπ;�.v �.�0&lN>$d�D^x8C� ,�x�z��R��p@t�!! 4�@>~�Nmw��DŽ=�i���� s�!ӎ��?���"y��$��Nׇ �=���� Kڠx�6�2f���KL�]��b��E�/ ���#$��z4y���=�O;ZD.�(u�����3��}�Ȝ|�$��>[<��9�-�t���S�v�L�a|��?���c�����1a_�1�݈���ᦪ�������!�O� �p��̱�7ݓp���v1+w�S Kڡ"s<������"�<�c7�\������<������ t�A�[�b���@��������gD�� �(����p������~J�(�t��$_.3�T��� ��b��U�V�E�� ��r;�<�X-�w&�Z��ж�|��\�eS� Nq ��R۵D�q �q��'g8F��pI[v���Nv71� �����-�k�k���z�!�Y�媶�6��B��G��L~�=��n6/i��n6sL�Um���/v�D�R�iG,�&����?��@��q�l��2h���b��s�뷅c��*iyڱ��A��]��ʼUmM�1����� ;{x�s���8� �v�ܝ�jK��&�c ѹ�-�''?i�v@L�2��iG�� ѹ6qAbC:/��&}B7���h�"�GmH�]����<��Rq��>l�|}�a�B�v�>�T.�p)�_�e9�E���+Prs��=v}&bL�+mL�� %_PD�/K��-w=!���f��(?���+xR���0�]�a�Fx�фp;v\�*\�� �'9`��)q(�2�'���3�e�%�Nm�"�-W[C�ɇjy�p�˧)�A��K��C �Y'C�z�� ��li�].M�[<�݌�%���g�y��⩧�w;��O;.TLr��zI����l�ڮ��O;64>�ŀK���C� 1p�p�����|��iG��P�J���� ��p�1��r���a�����S[�p�&����{q�1�|��7�K���%��=�k>o��{��Z�$�iG�6fe��"$�v,}^� n��CEF�XT�H~��Uۡ�����_X���th�&����%�uC�9��o�1ڛmN>tW!q'���nh��RWږ&'x.�7Y.15��6J=a<�p��|�䘕 j/�#|��R�J[ȋ��c�G� )���MmwJ<�Xqdr'�/�~Zy�}t��1ao.��ZNm�\��R7h[B>�(��2툑#��ɞ&�ޅ]�T�Al���M;FJ����S�e����\��!��U� �����Mm�cpŌ� J^xx���´r j+x���"⋻��V�C� �|j���M��j_�gގ�µ��c���2���Btj����\��pN =�Bř�%mp�M~B�Qj������s8���n���wh$�����r|)u�-1��?�L��4T˫� �{Xҁ˨A�q�8"�����0A%E3@`���TX@U9��i�Q'�t�Z�`IVA���4��.߇ߠ2 ��°�l��P(�c�#�w�G�O5��x�N� Fzo�,�re��չ' �S��r��0�=��GAXАC�R .�_�����]�Y1В�qb<���Iȡ�BDKx�"nKp��79*�E�_� xwM�b��qe�,�-:qi0 L�̦�sS ,��'��� ɼFB��v�3o`� FJ�I��� �Cz��#� �׺q��<��ldA DT�<�H�z9U�*�^�0�-����-ȓ�arsx���*�.�Ȫ�k�d�Òh��<��'�$L��T|���mR�,� �����7��ZD���1A�_*�$!�tˆ�pX~ c�Ec� �^�2��[��-���k� ����EM�vxp�W�D�Cˆ�������Kh���[��u���#��6t�a|Y��P�o�Pcn^f ��P���v��F�!��_Qu|"�O�lg}3�Q�A3ю��g��d@��Yj6��9�N�߆ڽ��#F�� ��c/�I�ۘVʣ��%w���B��%��}7�"�7��1���GFZV�"^T h)��W^�y �T���"Eu��!(v��g&u�G7��l�me�[D���_�^2��������5ج~�P�X���p�G��� ��#zB󒵭N-��V 3L�n1H5�����? { // 初始化认证状态 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: 'zzsddjjjhf', chapterId: '38528364', novelTitle: '至尊神殿等级境界划分', chapterTitle: '第63章 软柿子?', 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 看小说网 版权所有