跳转到主要内容

十一、又解决不了问题!

作者:流浪的蛤蟆
(�/�d��r��+6`T/���{�������ؠ�uZ���(,�Ͷ%�&�!C���S�5���i�����yFsͨ�:����M�4�5v���W���:8R���{sB/��/��Q�TB�<�U~�%s�X�r�{���u=�aHB� ٲ})�!e�%q��=G� �=c_ۛrJl�^����r����E��ܗ^z�'̕�7�L��� ���^$y{S��k����S�4� � eᤇ�3�S}��Ƞ猉 0&�d/>�*q� T�~���r�8s6��魮PZ�C��Jnmr6���$�ۛZ z�0۞d+��}<<� �!�A��� ��M�DЊԑ3[������������{�?��@���ܐ��xll��l�Q�75A�K��A�彽���/�S�H�"]}Cz{Da�l{S�=W�1ʢ��7�G�,P��Zf��fۛ�N�R���f$ � ���S����E ��9v�q��]吲7�O����^]�: Rp�"'�.N��H���ۛbD�$q�2t{�ֱ̀=�7&?�8U�"�별O�3j����moz�0���s4�JYyJ$ L�B妆�&�fTo?��p�/̜�#g�7/���Bj�}�z��)g^p��Q}妗�˲������=@ ��м`����؍�ᕛb�M�T�B��3�#�G�W��e7�oL���H�llM G�\����(AG�S%��8��Ƞ��_ʷ7��\��D���noJu�a����0��\0�O�C�=�"���-�f�L�I���s�w�py�_��6?��~�K��#�؜�9�賱+���7�̝�Cu��C= ��4e��.�|¬�T�- ���ܙd�b�X3��� �3�?2w��4D�ƞN��G۟�ޔC��^�ױ�K�7'T$�ulЁ��+$��G�k��jFGd��y{Sl�:v��G���T�-�/�w�/>^�=�a�����$�56f5�Aϳ�A�WHmo:�� ��-�S0�@x����u ��9�ۛZ�gck�g� [d��MI fhO*�t����J�Kloz�}]�Y)3�I��8AVH]�%�j� ���7,�poHxЁO� 7�H��<�‡z��^�fW�� P�����أ$�� z�`�Í��K@ �����"9�z�Ef7��p�l����MdC4�.����9���[ ��h��� �W� Rgc�2�>0�ӃD?)��ꋕ+ h��Y=�f��" F�h��}��^�� 41~$؀�I��ɱ�Wino�Y~���}c�ޓc3<��T�a�A ���W��S^0�N9!z���X~@vȽ69�AA�^0�Ae�s{Ӓ+,Ou�½u�=��"����Ð�-�o4�1�c�� /zb�ږ��"5wfH٠W4��mN(����[�a�:��.|��.B>S�[ɹ3?�sH�����m�E�S�JRp{� ٥�+7�\^�zQ�Q}��� #L��F�|D�ll�M7 'p�;3����rϝ�Q�W��������/�Q�� �CnCG�hQ���ޔ��7�:�����g%��M7cB�y��]9�7���!���H��ԅN�?��Bf�f�kl����C�+�.U%�����p��u��.t�NT^�Qd{S�0�Z� �TxCs�l�j�H�`� �|2W��7�68r�{�a3�܋y�q{S����+ �Y�U ��nh2yə/����]�z^.z������u�c&���Iȥ�-f#L_���P3 �j��U��'6����jHx ��?�}dp{S���%x��Iv�����MW@~��I]0ܔà�ll��g6��|�1R����Ea6In�<�^��5v)�|.��7=�£�S$��QBF����\xf�EI�Q}W�O��M����}�A�M��#gNH���B�7�0ً$��|@���͝yS�bHx�u�Q:�w��3�ǘ��d����%�D� �ύS�r��}ŁI�K�ۛ2o^�9d��A�k�M���E9�d���nhc��eoL��>c_r9�r�����r��A�s(_�Ƭ�dkfd[s�̤�g�E��ۛt\zhfG���޴Cf�s��9�e�:�[ٓ)'��%�W�g^�-^$���\gCffG�|]oo��� */Nuؼ^q���A"�L� ^^0:x���7t��z�2� �K)[�pӁ�ul��e������3�A������(8GsN�Ϭ�\��a=(���'�Z����O�>x�~�{:+�(������WH-�<$3F�E$K,6�lNhf68��e�fw�<���c:I696�h{��0�>��� ��H ��i��^D���L�9�‹HfT�^���j� [0<2<����S> �TQs� �#g=���+�b�W��Ў���xE��o%Q.Y�s��xLuxS_��Ȃ����1R'�n���V�ٕ�K3;Nu�� �7�K�c��Z(!C����<�(`Eh,"�F�U%��1@nvpOGq�>S��DǮu���ڤ��)�:�8˜�۪�Q.�����l�1�g�\�'}]K��i �E|T�E �eR��1� �Q�fQK"�&���8�rN���F�̹�L�̆||h@`���`�h"���'��U�D�*�a�r }��|�.�/U�`��!fL:���]�<����\3�$�XA��tC%3�꺗�"ߓ���h���Jɦ=g!i��Q�|� �Kҩ��E���|hL��3���Q �� { // 初始化认证状态 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: 'quanzhiwushen', chapterId: '80285748', novelTitle: '全职武神', chapterTitle: '十一、又解决不了问题!', 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 看小说网 版权所有