跳转到主要內容

第38章 法事超度

作者:不厌
(�/�d�Em��h&=0 ���n`��EvS���")�Ik֜�Z���N��-���������%a��U�(P*PPU��n�.]�4������ W����ɜ�K�܍��.u�>îH&]*�/]^��ތq9_;�Q��i:�V$ooT�v���*�)�/f_���-\�]dE k1�3l��vf��!9���$���֪��x�tq�ע�7��P8F�huHᖑ!�GD�:3SMk<.Z-���Ղ���H�(߁Ԗ�E�q������1(W�gf�}|�h�{�2�⚦ÆSރ�����Fe�R�_N�|=�Ou�Al����f32����,Z�=��uf�"ϱ�s��<�3Y�23���$l�ڈ��Sޟb_8�D~C�g2Z��L=���1�38_g��̴��J��g���\��r�>v�ђ�E �=UiZ�6彤��L+��ʚ��(���yZ�Ӕ� �^`� jI�Ca/T�*�&n9�E� Vo&��ֶ�>�=}WR��5�v�&��8Ѱ �w:��n���]�B�IF��#��zt6YK�z›����gf�U\$��p�����)%�(�K�ɘ�+�'.�]�n��0~1{�Lz���;JV�� �R}Er�� �W'gf�m�C��hL� ���YD��#� �K;��H�|n6d� ȒJ-��cC�O��.�$�alf��R�6ϕZ�XD��Tvlr��@�H5ށԗ�E�f@�"�qDf���4�M|���ٺC����LA���lgؔ��=h�62���O�����nȹ砉OP��iɻ�̟bs�q$7J=)5�=��j��hkhk�*��^����O�t��ק���/`o�^h\�ij;��.�0�H�0gX=e��� ��]��ff�y��݅�]Ց�W�:O�7]�h��MW��S��=D#lH� 7��V93S�k��9_o`�rh��r>�����.�4<3S�jw)�9�E�C�HKz� �_`>��Se�����Sދ�4]��!�R~�r&qǰ�� � ��d�����j&}�b�F���>�Cm����[���5���0.cC� .'�‚&�U�M c��s�.r5+��A�)�=�*g���5�yb����v.�� �v�-KΈl՚�p cI��vy��g/$���L)IP!�#��L31�Cf� �-����shSއbX���9h⑄?4������5#s��;����]~�u��l��?�0)�%w,;U�<�ByE:F6M�|nq4�}D���4�h����%�1���d�t�C,�$.q/'��G�<\�V5��ʄ��-#gfr�(9İ#�33E$X�r�� �E\�܀��@�s���/�_N-��Z�:�=�������\"6#��ӐΏ �*��v�n�r� [7F�+�4�=�k�Ȏ��Jv���rwI����@�BO2@��0��SeO�ӡ�gfJ�~��QO�~z@{R^O��Ckkk��,1U@z� ������� ��K��� ���;&��%�T�.�Fv�b�J���]ՋRs��hz�r��P���� nE2V����p�thh�� w ����P� (՞���W���"8�*s��>":g�Ѣ���=J\R��d+�V(mi4H��{2���Ly�Z�� � ˰ΰI63�����F*_���aɗ�33]�il�<0�O��%򍒿��E����͊_c���Ap�8@� �`���>pA!D��4��k��:V.��v���Tp�ʗ�t�f`�6Y;����l�3��T ���j���T'nݽ��Hus�;xo��V!mj�H��º � -G'ǻ�y}7��Ũ�S�tr�o�����P@K��_rk�����0��b�oyA����n��X��Р�+���ڭ{꺢�Y��V����S�/8�O8Uy�t���^�5��Q��k�C��Ѡ: � jm�g,�k�R�� ~`"�ب�?�g�xD";H� =�Z�6��P�\3���Q^+��x�al@ɲ�8$�� �T�7�b�!�g\��}����]}X%�n�Jjðc�����B��Í�xr�-.]����X�cy�T1g��$<:{r{�"��������7��>��� 9�u?ac�w-��!����v�ݟ�P��k�%郐1��B��@KU`�h��$�����A�v�IW#@����"՗��4�GO�d�/��$|}Ə_�j)iJ4m9A�mU7&�6� 5þ] { // 初始化认证状态 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: 'shangmenshenxu', chapterId: '61987181', novelTitle: '上门神婿', chapterTitle: '第38章 法事超度', 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 看小說網 版权所有