Deprecated: mb_substr(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/kxs-php/controllers/NovelController.php on line 303
第349章 点将 - 红楼大官人 跳转到主要内容

第349章 点将

作者:未知
(�/�d4�nJ��'>0 ��I�{��*�*dK�>&�� � 5`�ңD`��D�)�E���op�P��_�ʇL? @0A 0@$ �H@D�� �����ᜫ���3��� 6�D��5�k�w`GF>��48����R�ȳv8�n��!��8��=�}"�ź�az�K��_|ސi�I� �Ϥb}7��� S!|L����[���� 9�a �?\B͘�@d&��9S�y��p��W�����q8�1�4?kGF"�0$�!3|^��DuR�Gֈ�A��|P��� (]yf0��?��@�4��EZFi3f�\�06��\՞�O \"ezK�[�0����L��=&ĥ ��������sw��喔(�˘�/�[:j� ������� �7�cW���3�O�wy �����Ǐ�̉ό�]^LtYmzK�3p�daɁg�O�_c� �?R���V%;�X��C��ް��!�k�>Y8�� �H�� ���o�5έ��x����6V�bD�ƃ�Pa+v|r�-pV;A�sz�ʓ�D�8�x�b��1_#vwK } �ЕK�����1c��%���%�_ �㸘Ȓ�����3�����W�կ&Y b�oT�c��my����ߌ3fzK�⳶���##�$r����_c��_ֈ� 1������G���[R2�$���H!8���ʓ'G �|P�)��t�A�FR�G�G�]��e�����607:�7r��}����� �� >��Y�M^�<9��+a�[r�FA<�@|�.5r����c��s��j;(���-%!�: �ڍ����+p�%���gam��O�_�S�nIyC�)gD���sKÌT)$5pF*k�o0|[��Q[�1\H���4�~���9����+F���x��r$��|f>�zK�/w �aT7�<�R-���B�<����� �߰�>h|���'�w2�qF��\���l����p�{�m�w�/#���� 9uyZ� ɷ ������0���k�!�'��� �S��8�Xl�ɭ퐑����yv�Y�o�Y�1�����/�- {����|3z��o�!� �sA����B��mi�����s�.I]��R��dž�:;�ޒF<��=|T�Q[�I�ޒ$�D�Q��� �q_͌m�'<���ʓ;��vP�����9�; �~fpc��T�p�ù� �-Eak�F�(/Oo�b`/��|8�H���y>|N2k�A�`*sho _�&����/��r�pK��vc��!b{�)��BZ�sjg�CE[1s'k8���If��^�����{Z��r�b=�!�o�gd��4�H�T �j��G�.�|.��ϰ_�ΰ��-v�d!%�0~ܞ�ނ�(����� HS�7�<�e�6F�*��##G����ʓ�� q����L�!�Q �98d �!#Ҵ9�%)#xْe�%�� ���@��q�� �Gxt`zKN�S���1c�@|a�'�;��R�x:�s���5��������[: >omG��(x��؞�X~�w2� q�7��v��s��pCG~�)��|a����ڶ�1��߄�Yh��G�?���N#y �)s�����pq�N�򁐨1�a0�# 1�P��8V#0 B� ? R��t˕� ������UH �)����.Ri�b�TI�9A�wej_����4�%� 2�ޡ-&��j�=@��� z���&mO~ZU-ߕ��G> �6�t��&u��~���/ �m�� ��/]�ΙND�|�KֺT��v���c[źA�92<)JK�Q�tz�K��8 y��ĒC^�l �A�Gax �<�Ӟ� �'�NH�����c�x9�ܷ �'�a`��N�_�S�m�q�Y?x�PB-J紛T s�}����,��_2 �)�?b�����Q�kĤ���J29&��[�Z^A;�@+w�|` { // 初始化认证状态 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: 'hldgr', chapterId: '28045261', novelTitle: '红楼大官人', chapterTitle: '第349章 点将', 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 看小说网 版权所有