跳转到主要內容

第20章 通天:城主,要不要道侣?

作者:汪小小一
(�/�d"m�Ŵ$4`�*/���}��7%�[�,"C�(��b4]d��`��_���_/��;@=��8:��W�ζ����>n�s���z���41)��� �s����/� ��h�9]� 8�'�3M' �r�A�vDEk���E���-�y(�����?P荣��>�l��xl˞�w'�E�8�l�>i�����on�t�2�`Z��*����|U���\�'����LʽX`Z�� ���=D2����&� �eόv��'��6�����A�!�k����w��-{R�*�0Z���[����p�}Bd�֣�kBN�]�ز�(ӡ�"�����&x^S��y�+� �7�m[-��d��Ƀم�I�h��F@��gT6�eOis�ʢ��0q ���l����5������i3"S��-{�&f�(��0Ѕ���e�<\������k6wC�"z˞jr"O)�6���u�uk˞_���T��?�'H�� ��M���`�Q|�.d�w����*'D�8]m߅<0�e���i��!���!)�eO�sEy"[(~a=V�$ �5�"d-� �?�K�w��/�9F�S9+/D2���]Ȗ="�&_m�0}g��;�{U�)����7:@T�����.hy�P6��дDo]�D綠�0@���a0MPi�p��6����h��Ѥ�4��xVN���]�=�;��9+oV�@˞�S�oD7+�eOF�C�\8��� �sm�Z���8�,VezҞ�"�VQ���s ԟ���������l�4�9�`j�U�+{#_�EWg>~�6p�Gq�����Vۇ^]˞G{��/�n9�f�V~,��nV�I{��_�%z;�-$���X�h�e���>F�<�u�����[���uEdj�ɨ �1��d�ʢ�r���y���qt��?��s2Y�]m�ڢ- �D=�� Q��h��e��rӭ�+�+�KP�آ��!x˞���#��.��"� ES��q���ƌ"�be����I�"DS�[�T��"�uJyW���}�n��=�.8�I�FȖO��R��R���9:�@��I#3y��f9a���Z������E��I)/gk��^g#O�wR�-{�"k�e��;x�=]��}aMm^p��b�&��P'׳9�]�Ĭ����!r��e�O�*d�1�s��|GtE�lݱ�YQ�x�ʖ6�����U��\|�^�S�����ubs!w�/%�e�����8�<\�w��#��I���c���E� mp��Y)�U9!lʹ���=�8�A��Dl�d�&�壗���&++.�t�[c0@���✭��!�k�a]�����VPO5~,��kB���n?�15!�*� ��.XlW�M��g�+�J9���K�肃��I{�פgٓj���5'˞� .�dDuF�I�ʢ)���(��ѐ� �(�nV�j��dDy�j����OeJ��4��Ɉ��c��c��� �_&^a �̍�Fv,"��Q����8gkQصv�kM��i�M���%�1z�޳QےP����ײgH�I{js��i�4��Gq�a�}����tg��̙�R�<��� 7X�h��q2�N�&D?n�s������ʛ�9[��u(ӥ�W�ɨ-{Z 3+/g���=7�T�Q�r��R�;�U��B6`�&��K`g�m8ڛx��C ��G8���We^���.���� �js�G�xh���DKW["�]��� �73������Yat��"�Z&6����j˞x'� �d[�\��sԱ�'�)���*�G�J��E_83�z��<R]�t6r廖��n�=� b�Au)1!�Y�4�� �-�(�&��g/�L+S��N�v!OF-���g���H&���Hf�Vr�&5�|`\��vu��- )�D�œ��ئ�z`�I{ƅ3%�?�b�~lt�=��k���)r%2��2���ɕ�A$�R�Q�C��k�k��1� J\�0�-{Fľ0M�e�!�+�=�"��I��kxE9��ဃ[O�3@ROm�0=�l˞ H/ ����'DfT6X^��+ь�u��9i�qΨl��`�C���&�I�YEVpie���Eg$' �#q���%�Y��"qQd˞�F_��^kD2��!�CW�ܫ���MȞͳ�&nÝ��*O�|Unٳ� ��(��8#!�����z���.LF�I�m�a-Q��޲�ݞ̾3�_���*[\[��\L��,O��Y^��592�l!9?�c� G_����a�`���E�q~Q��ג �����G�ܨq�a�(0$23!�P IA>0�!�`���ѣ**oW�v��o� � (`V����|!�B����aFX�/���J�Ia^<���1����a�?�%p���9��,M��@�S� Ds����A�hM����q^�. �� �֒' o�pW F���Ls�A���GB�d�(�Ok䅁��)�NyQ�����i� ���5�d�����un� �����Vq��$YQ*F}���d�b%�#A-�x�?ۑЊ���WTݷ^}1�A�.|d�A�$��v�����j�쐩7�@�\Pc�|*�C���ã0�ȍA��g�\ZFڬ���9cS^(� �8QB�GV�-L�4\���|��Q{q��6�Dq/��t�ч���)�����vR!1�����:m�% e?��-)7��x��YZ�dA��$J�$�*C����CR�N��eD��C�n9���.7^�3XL9���6�bH�ί�V��#� z�8X��A<�9S��xy�̕�P�C�aO;���� LA�tb��^ g��4]���M�^^�ҿٟ���0eV���h!~7=�\�5)�Q��L\54G��$x��R�Aۂ�3�ᛒRR%u�Â�w�B ��#�5� Ss�� B�N>��I#� { // 初始化认证状态 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: 'wzmxzhhdcz', chapterId: '71999037', novelTitle: '我真沒想在洪荒当城主', chapterTitle: '第20章 通天:城主,要不要道侣?', 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 看小說網 版权所有