跳转到主要内容

第21章 红楼19

作者:弹剑听禅
(�/�d��p���(<0C�%�;��8���M�M�'�� �A $d��EP�&�#��^3�ݷ=1�O?|��y��|{z7й湁�f!;.a�g�)a�i�eL]UFyt<�=�=s�ep��b ��' /F���=F{]��&����r��4��G��h �>��K���;pn������12ݬ>����6���;����jl�V�+an��ӕʥ��rf���:��2��#gK=Nm�a9�2hqI��R��5�c�xF��32�� �o�+Dh߸:�l#�h����� �� 5���%.������!+��y�|qު�G瞤5�kwq��h3�=M�Ȕ�� ������t��Q�\=G��G�V�G�5�Ǐ�(�|���z�@����#��@܉é�F6�0ׄ��xC�*_((F���]��f����*[Df��1b��B �Q�����G��Xop#������p�g�ڬF���u�Z����12Մ| ��l齡=�l��ޤ'�MЕȔ򈧩͖ީ�N�?�[�, j�t:���y�Z"v#Y�\��-�K�;�Lm6�iK�f!`~m��l��.&l������&���=�3x.��rQ�F���z��ȴ�Y��Ue�<�c�Oɉ(A�fq)����sj��1����'t(�t5�?�� �J��c��1211碈(JE  �(��Z����#cd�0rA�>�fX�cip����?S#���Ay��`��rH�+sA��iC�f����t)J@}�&�5O���fM�� �]�L;�e9�^J{�s���"rA��/�12;Mm���(A?э���NL��9� �ڬ��X+/0��?�N�R|jѼ �!���u:����Q��� �6ː.gd�{]�ah�F>�!_ΐ���̯��&�M�١ZG׉ͱʉ�3�{b^=:�@����u#dʁ-� j���2�Fij���=��A!63م�/�*T��_`�QU/�{qm�O,� ���ڱ��&�(����G��7B�D�c���һ�q�&=��� ��\-a���GQ;*7 #S��~�DnH���mq{<�����c�ű�k�V o�q�9u���Y�L�4?Ѕͩ͂��@�/����Z{Xt-�Q�qf�c2����xfЍ���/�S*�pX�L���=����12���Bb�(B���s�L��)����\@3 �M���X��I;�K��j�ѕ���F�ń��+���j�K̋T�a��5�!�+d���c� |#ӆ쎎C�nH���4Kr�Sު2�� }����D��i'��wj�������8F�cyI�.!�7�'����@ql�x�%�}D���%b![=���,#�Eg!s'�M j�h�S��\+p��.�����y;����y��g!{6�{9�rB;!c#��� ���Zj � �)&�YbA{$�������!?�� n�C �9s���u]%���r���C ��[��]_�k.G�/�� lt9�[D>#m�n$��D�fE��7�/�5�-"k�C���\^%�i���� l�bdj�z��f��$��\b޲��G�D��nC�X�,���g��Ԡ�E����3����E�nhTC(tr�Qg ���kEؚ�h7�P�b���� �*�n(ЫB;���ՄL9����rB1� � �E����6�/�2 �L9��4�k ���.1�)�&j,�5d��7���l���G�#�g�9�Q|�x�a+���E�c��D8��RF[���)#���,dKd�y)��a�b�Fe)sG�7�+ң��2t2��� �5Iw�-"cdzd�"�� Jmց��a��Z �gj 57�B����ț��ԓ�rF�*g%/6�q����F��-an�����"W�#�Ul�ُwK�J N��^j� �=PY�%�s����Ǻg���QȔ�V�{]{�G( @(P@��p�[z�<���bu"J�Q�.�1�P��x�!r"J��<�r}�i�vp��I�12���-Ъ�D{�p�L�� �"g!C2���ah��Z";0��P�%�ݜ/'����IP�y�LSg.�(ޑ��xL��.�q!�ԍ�(A=G{]gW ��=���,H������� }}(�jOq��&:(�YEt3�+�����G��IDOD *�����f!VsQ�Y����v�$hv�f=ұ ���)#S�M�P�tC� $��Q�]�u�P���� \�u�8oUT9D��bd�.e��2d�i����R�UT?�>��|�.�®12et�. ��c��f�(bb�(~�\ͥ��uF�,F�����([�(�9<2p)�3R�R����k�B)��XLe���q12��V� Q�s��~,��XM�8L��"F�p��;Du�O9���J9o�w gk�k����B���B.����v< Bܪ�WZ�!�)�-'4�#��啊��K�%�7Cv���X ����d�(�y��܂E/t���< Yb�`�� \�U�p���U��=ܵ�5�����X�<�y�g!oR��;�B%�[ .8��jIB����.ztn��r�K�MC�V����q�@�# C1�HR;j(Ph@A@p���C�ꋧ�$��Z7�����~�����z��2J@w�r$}h��E��CW����x�< g��?� �Z�,�f+���Z�;M9�f:���u7�LCtY{���� o�/�4ѓ�a[Td��F�+��@�_u\����2�9p�P���#�L� _����é�X�ْΘ�[�Dmgk�:���_dŀ��~7�9Y��G߈b���:Y�]�p�rL��8�� ��4�%����0��q��vZ�X�0� �;{�|/�\�0��3E2Lc�V�)�ED��Kj�l�X̷ (i9K<^�^l�(�bX:n�\�NF*�\��wP�K,� 6, ����SN<� �1�^2�(}iK�8J���%��jm��.4�ʲԿLMBI�`o�Y$:9�KA��V~�ۜ�#Ԑ�j�k�7f�>2�nD��v6��R��b7=�w����e.�N�g�5�b�!h( ��-�lA*�]�l��OtƱ��c�w@d��&�d�<��3W[x�BP�r܆tV�C�ϝ]�>�v��X=^Rbя���si���Ø�flBp�{1�����X�T� Q�6� � �ݝ�s��ݹ��� ELcb!aůN�Ms { // 初始化认证状态 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: 'jjsdxdztxx', chapterId: '39322982', novelTitle: '截教扫地仙的诸天修行', chapterTitle: '第21章 红楼19', 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 看小说网 版权所有