跳转到主要内容

第五十章 宣武门口

作者:大江入海
(�/�dY ��J�4;@P��9������ѱ%�!��4��( �d��[fffJG�Y�� �a�TW�� ;65&����� ��v��@��9�o7�(�>�!�ۛ%ke2.`� �P��~ĜR��}�-��e��4"9����������2{T�a�i/5�G�8i���kB=_��vS��ҹ�&�Nc�n��� a[z{��١�%>P����&��� g*J����S&K ��t�dn�p #:< =A�Ԯ\^}�P�R�v����K �(x�� �>L^�x��+p�K���9�v�I���=��W/wԞ��f�,M0W�2� ��0�lk[�|vp���A* ��H�)d#���Շ5́�'��0�v��j�J!�4[�)qG��K�����83h����� ��<�2{`�n7�>��Q��ڶ��$^��P�ș R�7K�����M���wl����]$K6\}�rA�[&/��n�vS���eۻ �o1x�r�r��M �,նl�B�D/��yzG��mm�5޲z���W�/�-���nRh���M��#����d�jB��.���A*�,[���� @���&�n7�H.z|�ar�;6c:��ufQ!o7��� |�akA��OL>9�c�A���͒;�|6���יE�\}�q��������[ 7(�Q�v�ń>,���&����(�x��Ü���`��ՇK3�H�n��支��Z� �ia��� ��b<}�}���x^1yot���*�����䷛^�WN�X2�Y���P�3��ւ���ݱy�0��+��&?m7��D?:^� R���b���I�O7%C�Y�x�+�`���� kt� @@�m�)[�|c�߀nmg�d>e2h��\�v�� tD��b�ޤl� h �7y���(��/Nj��j�F7���Q�4�ⷛf�| pA��W=�a��&��2�Ãrr{9�=�lM��q�veԊ̫{j��\�-B#f�u[;��� =$y�T�$f�l���/&�b@�S�g �Q[�p �; �lSH�w8}|r�vS�㎌K��8~�@���Z.GԦ@^�<�QvH��v�@���9 �8�\��&�����M;6[��0ܙp�>0A�;8�~1��M��]�)�����nO��S[�pQ!K��#�+��Ͳ J f����3s�{fs���Kހ���sPZ0H�G��o4焮Q��-}�c�/&C��/4>�`��_�#�֞ޤPk� y�aGٖ� ܀>vX�  �����˭�.�vS.�rB�ʮ�y��z�zOmjs@T��}���<_��<񡎲7��&)��p�z��O� nJ� ��}����������Ԙ=� A�xoJ�J8��Cދ��X> �X���ud��oZ^^2�3[dAM*O7=�j[���BB���>���t�ѿе�:C|�b�� �j?�`����'b�x>I9�e;��!�#����M�g�g���+��@ߕ�ݴ������ڔ� �?�9���䁩ӹ��)d�|d�<�~�y���_}Ѓ5����tҷ^}X�x�� ��L~�:�Ėɛwp��y�z�B6�\�9j��3��'E� �4�:):��+��ߤ��t�!�L8x��\�)�5 ����ڑ�3ap��s���S��U���E�k�+�ca٦�7*"}�㢃o7�`/]��"{�s�����3 ��d�ǥ�ׇ9�c8a�Շ-#O�^b��a��fW�� �ppS⛃_��x�)�ĥ�Д�b��sOY��q.z|�v��(K,7Ι����w�E�G�=�P����b|p�+�'Gy�p�sL�ւ*��\��W��!EGh\�~�z�)�^n9x �T۲p:h�K(�ƼY���� �*'2f;Rb�BC���5>rf��%�_g�2�'鿏g>m���[���^<�y�����u��G�� !��bk[��O�4�m���Z�C5�>~`p �0��X���$>*L,0�(7�\�(�r�G«Kά����\m�[[�U�(n`spəM*����=� 9���,՞H c�҂�`N����{�o71��Q6s�66�O��<�����������l#j�����7���^B��yl��I�)�g�/�ńN>^�A핐 8���B�ʶl[�����ڤ5�t���̕ ��H,���T����t�M~ܤ�A�a�`��[ێ��V�J���mOm�:��"�9 ���Zf{!9��mb\�|��Ep�rK��^(������%+6R I��3Oi���5�_��"��� � *��T�����ƥږB!G,��+�}H�/�g��>nY���ew2��!� �̐��ෛVXt���IcmW.�8G�8b�^��"[*L!����4���ք�a`��W�\�|�([���(�� �KJ!{�֐ޤP�­�9��9�6s�1���>;�N�nJ��AC,]/383��á�oL\��udW�ڊ��n���so�ń~���l'<���9d�)���!� �#H���B���\m˷�zJQȋ�O���y�����π����? �n[n��� �#�r�������%g�?e�v�S��N��]g2(-l7�8�J89��'Gy�酁� t��}���e)�!���B'x��.)�\EЋ��×�o@�Aq��A� 췛N�\}8�r��Ë�3��Rm�:�9��T`��fo7�*��2�82� F��Fh2I�@�y-ڐ0� ���me��Y�]����j�CH$�b�Ov^M[d9�L�%?���JO �-2140�������������܃@�m"]�C��Ă�1.��eR�� �w��6e��@�T�����q����x�鶜IE�.��^�G�vխ���9{qK��G?�]0��^�� �cؑ�K_4���8a膀PD�Ƀ�R �z�o6s2/THSN�E�W�8�F��c]�~��QK�� ���Nu�7+������ ��5ȕlh��l7W4�9_��’��׌�ԝ p�^%�jw�h[�w�3v� ���ܯ�2=�=�-L�@8x!M�d��0Z��� �M�##��0�ʇw �21�F��D��b��W��c��&Cg�¶ � ��ƈӣiu��{V�~!�l� [��_1��&�77!���3�I�ll���a��Lkԝ�Х� { // 初始化认证状态 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: 'wxsjxkx', chapterId: '73765297', 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 看小说网 版权所有