跳转到主要內容

第四十五章,天下第一‘剑’

作者:飞茵
(�/�d�ݒ� 5<@ ��s�?���i faKj s"�%C���@��F6� �R) �HuUU�����:><T���������b3Z�'� '�{�\��ty�^���x�*o�htj��7�9"h�S�]\�fU?��d�`t��*lM��A^���_��€P�E����M�3��4A^��Ty+D9��f��>T�;�Vh���|ݡ��V����2�^x�� {��:3SТ˪��,�0��2"�=�Oޗ���;8�(�ff�Pv�fq@>�d��_�w(���7+x{C�#��̔ �a�' ^�]Xx2lD}�&t�;=y_'8��kJ� ̬)�*��pk�4���w"?y�2�(W�S孬DK�p��}��;��0}�y�j "gf��uC� ��O�C�����7[K�!.���`.9�h5g�`u����=%�ィ��/:'�F��O[*Y�§7��q �l���ؚ��� �,8B��L��8<�eQ���rzа�1�>P,Z�5`t�/@Sa�.����/(t6��s��G�̴�W�� V D��N��p�`J�/�z�4�@� ��O�)ֳ�v(���H{�=%��Z�:݈�*�]?��������އ�,�w���aĥé�" :���A��g��P�Cd�V��,2�3�:x�����^G�+z���� ��)wY��A�>?co9�/_k<��� ~���i���\Aș�&��Tz�Dq�`�$�+��㘽c�A��d�����G��y+��ɰ?L����� �� '+]����u���)[W�5{V—�7�~�����r��|:3� t�P��rN�5{�o�G�W�C�� ��>dU>�*����嘂���d{���霫��c�1N��a���O�/Ȼ /�{!(>�d��=X@�U2�q�5{;��%1fof���ȋ��{���|��� �� �/_O�O�|�ZB�<3ӯ�f�Ml�K�M�Y��֓���Asξ>�0���AP�K���6]A�՗=�Kh����������:3ӱ� �[�F�n �f��q���^���·�`~Jx��$�5��Pܩ���L�ٚ����!��;Bm%��7��!�Jc*���l2�M7$:3S�?��@n:��[~>y�}�T�HҴhud��y��gfvf��G �Ӏ' ?% �<���C��Q�[?'�� ��̴����^��F��w$�l�� D�4A�n�����a{杼A�P�`�d�7�_�t'�% ���d����w(>s�#3%�J_���>��Y�a���8=@�H�F7D�P� �4�����]�5{#��B�0�����?�?@o�����t�EfZ�ׁ��+��:ʈ��/__a�G7P�2y�мfo��N!�b_�&������@�b��{M1j7L/z���7D�Yœ�4e�m:_�V�#��%w$'Î�t+�� � �cӜ������kQ}��CT���@^��A��d���̭D�VK��0xy5�t>B|�i0kQ������ \�9��T��Q�M>`����� �3�7�ma�*�U �!�֔����d��� � P兄.c���&v�7b����^f:�s;���G.�ˁ�e�����O��`k !o:OTl`y�i���c*\@�F������A�Y��t�(�xeD}P|F�2�j� ����9��̴�z�5����l];`WA�2�k���ˈ#��T���pa�;B�Y`����?��Db����s�"|�Ѓ:?q>y?9��Ty��jh[��#��g�s��ׄ7�_>���/ �Ln�5�'�337�@�� DT7D�D��p�h+Q]A� �g�%'�^�Kɸ�u6Aԇ+��ٖ ��{���(] Zt��Q����Z�Lރ8 �[�V�w��S��削=�WU���`� 4Cy��C�_�c��'z��O�c�!�:���3�J��7h0&�k������U�H���p�9%6�/�`uf��%�. ���%M#ꃝ ��ș�jW#�y@�1�Â�t�@�Ƒ�*�]��W�7!E�=B�J�� �!���(?8f����ՙ�x�N<���1�k�����2!{�-���*���ք�G�32��t�������h�a[�-�W���5�� o:�*slm>x���C�g5~<�#��0�ݨ��Q�J>*�蹧�=���z��.1��b�쩜�q2l�h�^L�2��Uԑ�'�3��L��Uy2��ו�+��! FW(� ��K�����בEw(n�>����ʋZ�� {�9u&B �(2��y(�~z5�FAQoy�?�)P�^4P�*0�:ׂ����}�W��/��i�񔮛�}��)��$N8 ��~�)|��K%`�Z,�b�m��ڈ{�Bvx>01�" ��8��v90���5>0 �hh&��0�/S��z[D�"���1����P5O�.�9]�n���ߖO�V�.�Z��MD�H�tO��T�&az� \�#�QP ,��D݁@�"�| y�EOd�]ec���1�$G�h�S`ԏ�0v�w��䧴� �x�80 �h�dc�T��ۂ��� �����G�26��߃C��9� ���F�6L<Ӷ>�dC_ی��H�`�Y��8F��D�բw�W�m���>�;+�%��/ �L!q)��;p����$�h�-��n�v>b:n�\P�4�H��4*<���80���*����f{}��`���Z�-ع�\t� { // 初始化认证状态 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: 'wzdhdztrc', chapterId: '78069878', 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 看小說網 版权所有