跳转到主要內容

第二十九章 若不甘心,那就留下!

作者:骑猪南下
(�/�d�]�J 2;@� ���m��)H�LIK�$Puլa�J"U��Da!b��hoff�k�� ������:0 ϻ�5��p�]ͮ�-A�����٢�5����ٔbxblml�%�T�h2�3��:8����=PO��>��B�csP:�zf����Uw�wE�P<���l ًL� xfS�g�3�#�9��@��a���̦��-��JxC�S@��Լ���[���W8>!e��>�r��P��G!�0�D���M$o�x��C LB��9G��l�([�BQ_`���۝�3�r��2��^ `���� ӭ��p�����B1��d_$�̋��Mc#&y:�sC-m��4?��䪻 � �(�q=�9�>c|��MG��o��f^�� ����"� 4���" 3j&A>�)f���A��`����5�G��X8�)y�sחc{g/��"R�<8w�tp��Wݕ�asqs;/=�r����"o�}L9������@�H���@�Y� ������Uw�{r Dy�%̀1��c�g>_�n�}Ɛ3�V�MPoyY��R=hv�^�PK��[�[^��8xfS�W�[u��xr n`y�_��4�l�9�6�����(�PȧZBCNA����_u_����3��ʈ ����\N�)(&���r0�r6j���/�g Y`B� ����aǗ/�ױe��[Z��tz'��*�.�^�^uwzi�PK�%�+T�ca�$|\$��UwK�S�.�v9�A�3�"Wd᪻������\��íwI������(��4!z9����JB����rL���?L�l:�~D�gl �̦ �9 'C' ����9܋����ݭ����k��ٴ���IN�=V�e���̦ʭdr�]�?��P'!\����]�)�w9��S���f�g6��[�f\�=\A��%���̦�ͫ���5���]![���6>��ܪ�g8�cʏ)�/ģc>�M��������?���>q9+{����Z�>2�] v9L�B\u{���08�C1%�[��W�-�ހ��ԂD��g1��p��*7DǼ�l^!;�<���q�ml�=�@s3�v�(�\����X�  84`m�ʊ͵ [�6Ԓ�l �$� � ��m.e��+Tw���#ʶN��d����ܪ���k � ���7�� ��|��`���O c�N��S-aN=?�_�>�` �/��@'#���̦�Gʝ :���'>��Ϗ_�WXl��[0�?cG�5��r����� +g6�u�L��W 7b�H�ѽl/"�����l��!�|?m�»�E�p�����ml~mN�<�)�lE��K�5+�S��6�c#`x���Wx̶���H�M��<�y��V������ߝ ܼ<�if>��4� �f�,tqlms���Iw��ކfkcs.�r�lL��dދxfӋ�����<:4����6Aq�.b�9��(�>xQ�e^ ������o��y��lJ�r9�Ǽ�BvY6�y/����Wݕ�ށ��&O�Ę� ��]��we+���Iߛ'�6�R=���� �9��� �3��B����5��g65�Rblٍ�9��T�����<8킏��K�H~�B��$�B��������7�rvȽ6�T� @�p_�q�q�eު�M)�@��}fSH��+�K�^��1dC-�N�(��r�@� Wx�Z�@?5�k���M������;�d�'��v�j)aމt'W��͂+z~�d�jc��ٶ�$?�|R\sp �#fc�����;��،�k8�G�6�R��E��cޏ(_!;���쪻"R��x?���q9��*W��@^ǖ�|a�� � ��`��� `� ����+`����-�C�ʖS����=����T�r�!�Ϗ@_d�W� �D� !�� �̦��6677��:�s�1ؽ̫ؔ��\���Ђw, �E�d���0Q�vpTspK�+��ְ�l^'7$�6�F��:@�p��E��~��/� ��� �)�9�%�|���v�7yY�Tq鹢��Qs� `0U����ӓ�/�3^�l� 7�ql���k�X�\L�e���#��l1{2p �U�V�1��m��H�>��3�e�n"����-�#�Y9�iblsR���#�[>�B��k�!��@�X͝���kvTW$`�3��c�(�kV�`���1��|/��2����&?�\!�¢�������:v�l ��w6���@��PK�Ɯ^u�P�TqwA�ۑ��ؕ�7*��\N#bvȅH��t��r��=iy��X<rC-q�?5�7���{py�I�̦�kgw��x>e��͡�kx�ǫ+@��t��;�j���&�cO\FQGQ��Eٜ�[$?m0�㢃w"��eױ ��c�s�-�&#_�>)��d�{ ���!�e���e��#0�,�1e��/O\��������{�ņZ�$�z��l%_�����6�g�̦"�G�WݥP'A>$z�~=ܓ�X��M~��s�0|�� �s(ք�r��� �u 2c{s�!���=%?�LU��`D�����:���q= {E� fױ#�l^�m�x�}f�S��M��q}��yA�F䆛��_$�l�m.�����(!�@i�}Dؙ���N `� a�ֆ�����X�9������`���b��\��08`�`���΀�,��A� ��0Q�%�In3��WpO�����u�+��� � �N5� i��Z�YE}����� ����j �4G� �UEo�e]�w�A� =��>�H�.Ԭ$3Z]}se�ch�o͸�&U}<�q�g��:5V8ȑ`���l ��0��ґ� Z��� ��,`�E�c"_8i� ���h6�� ��Mb$�T�?�D���V̢'xDЁeyp3T �Pk!W��T ���`�J$ �B{� p����CۻJԸ��ՙ S��3�?���q�p�>��Jg#(��+3P��!�+��}�Yi� �P�������4X{H����9�qf���6&�L;h�Ra����ͦT� <�� ��$(�Y�Vhx�?ש�,L" { // 初始化认证状态 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: 'xianwuzhisheng', chapterId: '86192503', 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 看小說網 版权所有