跳转到主要內容

第216章 魔教秘史,东极再现

作者:哈哈老祖
(�/�d�"E�Za1?0@����<�Å֎�0��hM�ֶ�$Mc�͌��a ^v~f& G�����[�c���;7Nr���gi3���=?�CBOm�z� )&׆+ʼQ�<�6��$%+��@�M?��0vO����[�lo�@���}r��Г�g���'�dj��B��t��Wµ���Փ'�'x~Qxf9v���'Y�y`�L���)��<9�=��g8ʤQ^h��Ps�*_��Q�}������-�hn= 9e�cm�+p���%D.!��3 ��9a;�-��Q}��Q?��� ���������.O)3�–.u_z�׽����c�,���񬶅�im��V�á�+poa�tύ�� =�_ȶ,d�/���~�aj� c;�g�������D =t��� ٜ�%Wbg �恳��6���I�ܓ:|a������&��LS��2o8̀��9�6|@�������؝�C��HLЕǏ�& �B��Î�{f4�P�8��2q��m 猌ImX,eJ��i��'O�Y���~BȎ� ��xΰPfV�*������ >�(�A����(3l��rOI�-�{".���ش��wl+-����؝�$�c�2�(\�|�r��M�{f �!���od���A �Q� �d#[�T0�ᐁ��B��$ KJni�������E�Jl}잠+`��� �� qOk��U��A�d��I�����L'�R�L����;6��k��&� �@l� jg�I���pX�ɢS�i�&����8v����+ʌ��x\�� �(sV;��eF}#1 j[�cvOj�"�K|Q�Ž6�R�h�`8�a�┒���ޱ���- ��y��m�mp �$?)���#�/��6�@ PS�`�9� a�*��+,l��A�#~�}��p��1�1���+[�6�A���Ux���+�^ ��bI�'��2���\�ݓ���⢊w2vO��=�3����'l+2oh_������A��^$1 8<���#>�������ikG0'Ikx\��ֶW{a��rP���h��/�� �>��F����`41m6d�d��O(��+���r�'��7 x�{�>����䓱ŏ�� ]Q�ւ��h��2�B+_tp������1L�LBzEz�Č$��W#������/R�no�-�Y�,�C@��<���7�'\l)��!s4�h��M�ݓ�qkr%SJf�U{|�yI��=#������y���i�m����"�I�����OVh�+��1����L�)d#��<ݓ��M�9�;@�զ6|�x�6�Ē�OB�����&�dN=8��y�rjg &vO{�8�6���!3&/�dP�r�3�N��@d#^0l��(sX���W� �+�7S�� ��{>jc4O���9�5�[ܗ6S���p�M�B�f�r $���Y���$�o8x���RvP��t����A�s�8�a ��)F���I�1� @��h H�`��p@ `` ���AL��Y$zyK5��^T�^mE��,�<�,ጆcOԆ9$f�2�2b f �ďk�wT2�!��4����+ͱ{&x~�V:l$&8a��5�o.E�9�x.}�D��墊���2w2����T� ��hr��H�R2�����i�a�G������O�c���(R~\0����v7v�Ŭ�� �Lq���x� D��ǔ�ڒ�g�`x���a̫]!{� "�g���C ?@�a��c����kS�nq���( 'E��)=k����Mk[F�9ȕ�SN�θ/��q{*y��ڈ+�? y!��z���(�#֌��Id���C� �Im���s{ݡ�Eʕ���/� ���>���k;B� �+���ÌgENض��c�\���9�up��D[���<öEͭ�mp��6B5@_��'S�imc,8l��m Z0��m���''*��=����_ד(l�4�����/O%�&B� [�T� �S�VZf���� Wm�1|Rt�m �;�g ��0�Yd��7�d-t-�J��A�7������$���S16�����L\@�uoШ����l��S��(�i��Q=��-���zI9�Y����S�l=?�>tx���۞���O�w2(t��\��yNk[�'l�L*�ҵгڟ�+�c�,��܆��r9�a �7�֖�S��g�M�k<��x��Nm�gI���6F���r�֦���+�(2�Fd�5�2�$Y�P�!"�P$ L�@����wkp\FB�D8�c��%��d:�������N�� µ5Ftkܗ�ˁ��z-_����Cl���P��M�ꎒN���E��b�S��QA~��Vj��� :����6(S˻�^̡����HCr�n��x������V���T���Ė��k��!�&�Bϻp-�;Y�t�������bA�l�yێ5�S<�^�2�_�A=�`��[D� �+����F���aSn��=}#:�"����\x�*��R �)Te��V�5Pƭ��fk=rFw„E|؏Lx�1|됑-�Z l�����I��V����٧dd��n�j�[R) F�� �2݇� d_� k@VG(uf�A���V��A��4�=� |��2�� %/<U�$�!C���̦]��N�� �gӗ�� �uk){$�*���&3hh0)[K�'���, �$��潴�-q�1�Z�*b��)&����.� 8�9�W �����l�G�~h"e_��0&V��Hʃ�}I�N�-�B��ǁ�"����BVv���h2��� K� j�+/e���+B�{���U��5�u=���� ��$a$\]B8�' V��S�ZR�$��[�5Y�SO��|[��?��(��k:�A��(��$��(T���#b)��b� Fl��?�6~�c?N�0 BT�[�2ҩ�Pa�k=���,��W�zCj>"��þj��mS�[���SY���f5�!-C#����7��P�>�9H�F���N���5��:e^W���,��l�T�!�xP��(��F���@�5����@���[~� ����y�"ՠ��`��a�I<���:ٰ����b�s �`H˷s �9�� �O��z>9�ը�)�s��Yxa��Z6�y��O�@�P�e��MR0��t��V { // 初始化认证状态 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: 'xxskjcctbt', chapterId: '31387827', novelTitle: '星相师,开局传承推背图', chapterTitle: '第216章 魔教秘史,东极再现', 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 看小說網 版权所有