跳转到主要内容

第64章 意外

作者:蜀狂人
(�/�d�*���Q3? ���y�I9Dl���7(��-J�T*�R4�=� ��$@ >BX�`F@ ���Y��86V�C pJ�m�~8y�{����ԶjS�kc[�����c�-{R�f��=� 'P�j�66yp�B�س�plçIN����B/�poYyC6��L!{��b[�-�|E�Pm��UwK~����Q{B>Z�Ė��4�眐W]G� )���}�A�&-����v�[� �%\I8w���A�`�G���=����Ϡ�z�Q��̻�=E��ʮ�������r��5{ZOk�J��ty�3�5�/p�Dv⪻2���7~0��5{�c��#ɜ��N�e0򆧵c�Q�3���_�O����F�p縚=��"�`�1�/x�݂�_Nw26�fO����E�-n���=;��;�����pZ?j��''�ЃFL���"�P.7��3�as�zZ[�'ɹ� {�@����PqG��=0�yj͞$H.A��ne��S��>�} [�'e�H�ԶX>*}�AeZ���̻���ckc{^ƌW#pʞ�� -G�m��T݉v5{nB/9����|�fOG���3�ܔ�����Y�c����UwGݓ�r �x#6(1�}��Ll����x�e͞�ؔ�r����������3��m)ۣ:{6���qlMmt͞�ښ{<� �^^��B��k���c��ur�ڝ�ΰ��>��V�A�M�������[���)=@�$��5P�2�E��o� ���� 2��uy� :��fk����bb������<�pz� *7��Ֆ�DmЈ=���$Ÿ��,Ok���_�fO��0����\y���L2�yy�;�~h^u7T;�ޔ���g�� _>?L�ŤY٪=9gb˗���/�Q���9��$Hx��L|V�tQ��#�{�KL*.�p��=j`�=��y��Xm &[^�x^rgtR�k�� '�f�b7!���rʭ�{�a��w9o�]�]n^����K�T]�ٚ=F�m�8��by�vG�GL��Tu�D}��:�fA���-|�� � 1��$�SJő� �3q%�Uw� �F��<��k��������5{z&`��7ߏJ'Er�ݎ�=&oP�b9�=�ˌ.c���]u�� s�h�xAs ��(��Nr.yy�"�[�� F~��= .�m0}��lʀ)�3���,�~��ur͞�"�#.�6/ Y�h<��bM�!'�:x�]��‡P�9S���刱 �:��^B^�ؙB^��Ȟ�`���� o)�A�S���8r�l���#�,�d��c�G�A� .�}1�������#Tr������y����ԇ�@�*�ͮǤ��y1�Ď�5{"��Hr�(]��s��fA�8�(�|>��vi���-�� xC�#{F}F}3�ʋ2O����Q��C�!�_�fO/� 6������3�$�[�wimD��s&\�䪻��ZV��2���`��=K��Q�� ^uw;�c��L!O��r�]��To�o�7�)N�jW���&m���,1Y��xI�e�V�"��}�����S�M�h�\�e)�z@��[����������{1v��K��_DwK�<�s�80�Fq�qG� {ԀfOF�I�+���+��¹��9��X8�[�'��I�V{cx���5{ <�y�!d?J<��Ҹ�l�}��'�k<��Y��lk��H�]��p�،L��6���X�-���S6WB���&����\tr � �k|�#^�g�d�� @�\����k��9�)��14��R��n}p���G˹�g ^���s��'�C�D]���� `�&�z����L���.#oQ|x`���i X@(�@z� ���@ � x���sQ6 39@x���܄�3����ɴ6B% �4���c�q� �c��Q^�.�����Fw�����vg{�S�e�� ����rdr��)�!�-%}�ݭJ�[�=b�N���7��lo�KC��E�÷��=�8^�&��#.����,/11��c\�h�3:E_"��� �=�w� ~�DN�S�D�,�R��)������_ <��3��6�x�a�Ѿ�nE���-������6#O��&Ú=E"\�e8�y�R�����RR�' -��m-o"���=C�1ﯓW�(|�ݏ�,�$�[������n�q�;�&`̗�ڗϵ�����kͻ���zg{s���nVNԶ$\�x�y?ֶL|�]:��y&�f�N��˃?.�92���~�<�f�ة��~G�{j6��|W����~�ď�l�A�&`b�H�3|��9/-�n2��y��]�6Z� u�vJ�8�7@��� �d��hb(H�q��ٝ0�Y�>G����)U�A+�L� ��i�l��L�=i�#?��1��0|F(��J*<�x4H��K�ZH�%^���$F���� E9I��'q_"]��b���O�YP�0���*I��涙O� vI^VX�f��w�!���,����l|H{6��df�q9{�ܨ����q �K�%�M=��)C.W�q����L3o�:�o�m_5fU=h�P!��/̸�}�*�6x8X�D�����'ڇ�o�Z�ΩĻ�R�P����:�"��M�m�Y@�d��4܅|�+,HƦ?k*�͋Lh� ���oV�;2�$�$�'�)�t-X*ub���G��|\��^~�B�I��!&Y��{kk>N(v�<�^q/���݊th��c�cm�C/�g b�i���?�)5ôrLH�а��;�C��UyHu�1�Xo�َ��g-{�[�'r���*f��>��9þ����b� �%^f���S�� =��ڍY�nK������Y"���g�:�0S�oY������ +�!�Uu���C�SE���np�oX&j�]�����Ӓl����;�W��2u��t�,GRБ� �؅A��v�u�3#��C��蠱��%��d��<苽4j ��~��`�&�A�s�38sʢ����r�K�¤�՞��_D~m�c�ae_d��g�n�S��'^�XT��K�'Pn���D�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: 'lflxx', chapterId: '47250533', novelTitle: '罗峰林潇潇', chapterTitle: '第64章 意外', 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('书签已存在'); } }); });