跳转到主要內容

第九百九十一章法无上限,道无止境

作者:拆蛋专家
(�/�d��j�l#:@S����MJ����$�W�,Z���I����I�(^Kv5A씁hj�� a�V�)#(3[�����;8��-�c�%�+��?q���Ն��͇�]����ð#�;�|blq5�x�`�/$�D�8�bK��-Q/�c��jcOdž�����p��"������FW��n*��"696Cx�+��Ag�5����tx��9��{��n>���U��k��GF��>��ڲa��S[N�-��y�%��'6�1S�Ԗ��ui��aKHܰ��Ԗ��;k34�����+� =�Mmy�`�qG ��վ��H_�26��aK�q��?�$2�����7�"l��嘨C �`��r���z�xK�'�~|Sa*�𻏏S� 8��f�����4�|���P$/Pn�s� S[*��H������C� �i�s���ղ�T8��]�۫�-nX[!��|��2�%j �?�t�s����c>�9���Dᔎ_8_���]L�҉A҃�S[.� �Ab��'�l/���|�+��N� �3��a_�����$#f�iq�ť��.?�s�↕O�ﹸ%������,P� `�|@ؒjn�|7 �aSHL :�c�a}'{jK�O�8C��,sc{,�mi>q"vE�R[��wx~⮨��?@o���r�|�/����p��[6lΰ^�!CĮH܉djK���A"��6g9g������g>�FN�-y܍�Ԗ�ǥx��d�����7Ks�E�G:���Y�a�'j*l��",ׁ� O5�Ʀ�ʶ��α�F �Y?q���� AȗD��Ʈ�<�f�G�_�$���26��{�v&�ި)���G�]l^�v�F��������'�V��:����<�_�a}��B�"�C��Ɔ`�@��/� ;�=q7A�?���-%���D�D�7���ڛ�"�+�^�7X���>��-+�����^��Ֆ<�(aP��L����"��Y��zFy%�I�� 1��3���҂N���-'�b�6 ;�Mm遘���?�qxj�{gm�A��-.hˈY���Q��|�0$�F��,��0–���\���|�\�� þ���7�u�1v�G _ݥ�v`��R��: "vÀS[v"3���W�R��D���x��*4Lj n�UD�-�B�w�A䖱�G 7��F��t>q7b�� �%��co�; =�%��i}�.&�?�䨩 GLm9r���V�+�nx����`���8���� �w�b�j<.8e���;dO�%��Y!'���uE���,�?ƾ�O�n%tJ�Ԗ�����ʍ���a��W��2���� �q>#]Ա(<4yjKp���&�n�+1��q,�MDs��>�fk#(�1���3ly�X^���q�C���7�]0�_��G\��C(����{I���w ��]PBδ����Z�4��q5 %��clQ쉻�k:��9?kK3��:�N�� �cyD����E�?�Sc�qHmO�����`�1ajK��5��RU���w�[*�h�,Q{,_`8��66�p��C� ng�m�C�K���� �G)ob������jK���Ė�˳ڣ� @@��8��MmG蔉O�u�܁��Ԗ��c�'�@?�2�%��a�̝�Kv�2q�����-�u?�9���a���{ �>�*1�!<���W�q ���R�`�� �E�u 0�99j�v���oN7�3,��g텅��}� �a=���)�pF �ʙ���w�U :7��\��\�; "��;�_�WDݰ>Q�(剻��5�s�b� �-��+�KH��X����z�w%$Ʈ�>q�am 9�<�i��N.��%��G o �b�?1`jl��f���Ѩa�q�80����Xk@i)��D�@ La�lY�hK/C2���$���~�#���b���Kz�#*��=K(��+8#��q����E{�� 9��z�ZI9.Xvh�l�;ɮ\d&��&��Ƈ�t-�a�fFڲ���IBj ]T��(���#�Io4 �ȸ�y�.K}e3���4��b�ٸ@�õ�c��3 F�u�%��!���)Z�pEg� �/P4X��� ��kC�F"��2��b�m&���AiK�m���+u���N�D�Vm�*���חab��O2۴��6�vP"@���̃�<��<� ��c��+�VK7��g�&k���(�����MC��BG���Pwp�w`�5!wĊ�t!`,������~/�Zw�»PX'�D/�m��_G���͜ { // 初始化认证状态 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: 'lzbglyzyml', chapterId: '37841229', 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 看小說網 版权所有