跳转到主要內容

第一百五十七章 故作镇定

作者:永恒圣王
(�/�d��k:�h%8P��H�{�[�5ɝ>}��ETu�kڐvZ�j'{,�H�Y�x��rU]רUA$TIAC���9f�N�-�^p���-�G/���'i$���-�Å��D�$�A���3�Y��=�&P��+ ��^Б��m�O��L 7��g���@!'��}I�M�e��K~]+c��0�ґ�F�_+/*gB�t�_���Ldmj����h����{j��� ꛐE��l��}���Y���cn:71�E�D���|s݃�-��s����(72�e��p��1[���(/*C������0���h@��� c�k�xd��H���7��'dpS���h̖ț� �����-:>)�('�6��D�٢'�ƣ�����q N{tel�r������F��:�L] D��^D��u1[V����u�3��1[^���G_{�n�z�uv976[J$fˏx'勀�D�eH#��f��(c��|~Q9�Q$�j��@�����ћ�Ɲ���rA�瓐=��B-Bܯ� �}P�R�$����re����>�\�^�\�,��<�����2����l@�����}��-; �㺳��{.� �ْ��Ǩ<�`#CGk|�s @�(`�n6x�7���y��� "]����|�2^���lWS�pj{��S��7!s J��hj��AQW_�;%�<�hڳ��~�z�<1[n��,�4 "~QD|I�6��7�b�T��q���[|F���!��׎�Y�2��v�MӢGgZ�;\#f��Js4�til���K!OʕѥF[ğ,^R4�Ҙ-;�9��B_�[)g���5 '�n$��S�WF_�;@����UD�ƣ(;�2z�\БH��D}Mm����]/ָ�@k�k��*?);*G��N�Q6��yt���3>���2�ڑ�5 G���Y�Wȣ�# �l���b�̌L-��|Cї�6hw*mϩO���+�'���;��h��h��2D���� �J3� i���/��� ��ȊrŹ�����[��]���y�A{�T��2R�ŀ�<��1Y����-�G���g���kQΪ�lY������A�c��X�R��^�r�� ��N�P]��3�'�|����s�=�v$��4��lM��!1[.*$2oV��cС�+�4?ؒi���l�Wo&t1q7�[![8��%2���c��1�S�[]jM;��XH �Q����|tyCѠ�3o`2�Mm����}"���� =)SH�L�P{�1�*W1An��h~d�ƭ�/�xF� �K�"d�x+����5iO�}�]|���%�>,����_�'�C�8��ȕ�u����a��Qc]БelB@}���ބ��xIyȺ�|� 'ide���g�"�?�����/t+���re�����+�?ד4rl8b�sr:�2c#r��fc��As"wB�^���5�Ayg�+E�,��YաS�N-�S/fˎ��-�+�1�G�$8q��e����M�� ���2⠹�Wʇ�{��4�<�W��P�yQ��%4��'�!�4�P����DN�\=�x!k�� ^q������|�y£ (c�b��h�*�����$%⦭��lY�^">��t>)3�a4GӍSW�w>�|!ԕ���+�z����m�������Q��P�I9��r��T�EP�`K�rE�i�A�B�Ѵ��A�e��BJ�<��(� ���g� ��]�ڒ��@��>5���D�?H��R�X���r����Ay&t���lIm/�^�=�@΄��zy �0@��B&`�L�v�hO�/�{8���^� D<�戃�<���� �� �3ʐ���v�ھ�5���MW�)��dO�td�v�sI������N@ZD��A�__e���:u��r��+�0q?��r?�g�J94 \��5e�4t'��A��"�n�Θ���?_��}]�u=R֘-!�6a��~�5��� ���rs���B� @���0[:߭�7!c�����M�RB��� ��t~�|.*g�?�?��ǬMӉ�3�Ȍ�dQ��3@��-��(N�YyV98q�∃�s���,1q� d���Q�N�`�����楴 @>ލ�CGS�{ ��& ���� �#r��C�co9�s̐%���l�q�5:��Pz�yetV ]+��2c� 90D�rOm]��S�gL��X-&n�yD1vF�� ��4�ˆ���ҽ�p������[)�E�J~9=��ei�3Ĥ�٠u͠�a4��Up�� ��D9�uFّ�~�8)�q��(�����1�q�0"%0�1 R��4g�@P�&��x�l�Qқ��B�&IyX�,�q�4�&��N�(pi7�O9�w �wo�q���J>��R�dB���]��Ȥ�&![��T��@ԏ=�r�(��Qu�S�$[�d�lW$� ��7�|�~|[V�}��cx�q��t-���l���G�<��햔MDYC��t� g�o��"`����`H��T�����e8>�� @t���1��խ��$/0�T���=229M�?ZN�y�E�v��ʵ �T��7E �-�e�F�`,s@ېM�] D1��o�%��)h�P��]�� FT�������&�?m���`��ʯ�)]; 4ߍ9S?�9��{�h�PF��d�e�[��y��ʎ�����Ǘ{�N��P���>vc1��_��w^ ���_tc<����7�z�Z��� Q p��?���dO�9���ܞȋ��#9?���.���}��CA y����Ō����gZ�bG�ϒ)�W�aK/�\Y�G.�[6[�lED��|$�%�����!!�Dtml�Փ0p�����D�VK���Kq�]n?���3�#W� �uZU�� �F8��}T����L�r { // 初始化认证状态 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: 'szmxszxyd', chapterId: '35481953', 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 看小說網 版权所有