跳转到主要内容

第26章 拜虎将前往常山

作者:凉州大司马
(�/�d�uq�ф'<@)��{�g����㴥H l-�Ԩ42�!��LR-%9�K*8�{饳:Uχ=�f`hN!O!�cKS�;�cރ�W@�y����lY���]�ݠ�����ㅗ8X�� �M�)�Ѧ�5�Z;TpFǵ9?����]�R��wy�!�k�����n�9���A�_�V@d������� ډ�A�B�y*�����T�+$���s �;N-<��9����E���#G�aOmk������}x�e2 fC��*�ż߰�.)��\����s�r�5[r�KR�7:[Fy�Vw���G�r#��;i�� �`R�-"U��.�0g�NX����g@��|A�*�U!n�G�lu�����e2`l�1�'����[�2��1�>���5[��7 O�=(��mP�"y�Uk� =op���F[�e#��g��k�D5� ڡ���RX�e �$��FNj���#O��6q�ܕ� �a�q>i��q���)���5[����25y����E ��Ƽ���`D ��{I�����|�!),���.�� B�ْ���]Ye�I��!OVi\1b6�F�L���!����+ ��q�Ě-���3�bT����Vw%�#�����l���F�s6��`�8p@[��/X�֦�+li���f�Z;S�F�U$�33��K|�����A�Z�@��8b6<���lYibcޘ S 6��mE"��N�1և.\!����ėvԮ /���v7�I;3v��r� �,NJ���!�g޵���`��r���݈|b��\���^�.:|C�� �������k��\�y��:�/j���/jg�9����n'�; o4�@l�'��@lD�8ϼ[/FEz.FznB�=o�]�\��N>��b�b��Y����O �ވ���]��^+�a��Jl � �O�T��p����/UO�3c3>?�l�Ax� /.�U�*�����y����"?��9ʺ�� /�hc��^��G���3�a� .�A����� ؤ�'[� ]xҖ�����q ([��H.��@��73A���&V|��]����� ���3�O��r��3�'�'7GYW�e������+ɫ>_�Nj|��v1�ŭ�ք�����q�y��xN���w<71r͖���v7s�]��Z�Z�%5.:�����g���?��luwQs�a�A���l�-���a͖��M�GX��% +��"����;�� |���9�h�$O ���V�4�VwK�����7��m��7�Qו�>-H�?������.�qS��Q#� ���9b6���v$7��U� �܊�nY�A��o�#���m��/� ��Bb��g�F�-�5[� 2�2��^D[��C{��率g�^�OX���A �jj� ����s�� o����m mDnpi�;�+�^������ '^kc����$�N����~�?p0~�򨑓B��.$t@�N�j�#�G�'�^kk�E��*f00@0P@�b6 �� ��DA @� @A�-�!�L�5yps͖�k�C�^�'HWd�}��@��w��k��ļ'��%|�ry��O'luWc���Z���@<&r����a��9��\�{K�I�3��RHzx��$W�����^%���ڑ�S 9)�}:a���*?i�B_\��`䨑/j��'W�)���a��^�]�`��o8)�Q�e���x1ڇ�'�̻�wI�/L2j򕱫�b������1ڋ���&�{� D6a�p ��:��T�P�a6�(�=�-�!�(�3HLz.�“6�/�WVYs�d͖��V$��8���q�q>��� >i[��\�f����Ѕ�3���A���{�`��Q�Tn!���W�����pPšk�L�΅�q���v#/�����=�Ã�=��v�#c+T�i�� �N�"�I{��� /=|c� ��G�nfdd��;^���� 9ό��df0�5�� fCV{�<�|L`�w� {�AR����뽱E�k�\�uyL���v��Ԏ�Wt�)���S�AlF晎�5�7�gX2)� *��>+$^q�z|����0ٛ ��# R�Bb�:�ْLȋ�dB��\!���Q q1"� 0 !�`(I�=@�%%�P4�0@C@8�-<���}ch)&����4�CF�{,����&�H;��ٍ%4H�^�=?�5&�(=F�\�T��D& VPQwm��y�z���a2&`�D�Vݒd�����b���\T�Pτ�h�z��I��1a��1� { // 初始化认证状态 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: 'sglyx', chapterId: '52450389', novelTitle: '三国狼烟行', chapterTitle: '第26章 拜虎将前往常山', 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 看小说网 版权所有