跳转到主要内容

猎命人 第34节

作者:未知
(�/�d"%��j.m8? @��|�͛�I�!G�u����i�dR5�uMȠR �"t� ���5 ̓hLIP�X�ns���h�7u qlk:��-`�P\z���.!�]�)�>��D��Ƿ�k����3�J�� �6�ᘁ.�>d[季kX4��vk�!`~�5�r�Lɬs�v����'�-`~~��� {-�KP|���i�9�l��əFJ}0/�bI턈_ ;S�)���ˡ;S���G�#���.v�L;� J���a:��Z���ϧ�@���y�L��gO�˫�n�.���D���Ȏ`��)5gk�LG�9[s(���LSV�\r����/OL��� �'� E�=v�ѧMS��̎�u2�lk��x����u��=r�� �+������֔D���y��8�=I� {���wjd�δ�K��؛FOu�z��v���J2v���V+"cgꙷ�K�4�}W�G�ѱ3��'!.��`^K��V�5�'/SݓΈ;S�s��ۅMV����J֒D�9�AA��4c�̞��.���rK���d:��b��L�7�������ή�D�i/������(oU^�⪄8�5�}w�z�������_��C�&�ƀ�(�i/�I��>�lcg�5�P� m@ �6�]r�i��*ά���O� 28�`v��7?7�]9p��#�� ��gS�s�FdͰU8F� u�� ��7x�8�8�� ;�z��x�S�MS]B��>�M�5W��9���FL!]-�5���֜ ҙ����t�_ �Z�9a��s(���WD�W,�`^ъ/���˩�?�V�Xk�K����UL\4��{��6 �Z�׀�!�%�LGV#��_]���^�jK�1��+94ɐ#b��c/i5��e�����Ca���������V�|休��s�-`��O����ؙ2 ���)����R�;��Cz�"��z�uS�`t���-��8>�7��9'�Wh��0��I���IW\�Q8Y��l �ڢ� �g�a6:��פ���xo`섭��-`.�Ɣ�0���w"p��vL��{�Fт�x���(]܀6����D^9p�!'N�輤�Z`�74��s�� h�-��ݓV_D�F7�� NV;Ӄ ����wLl}���͂�B�ls��|^9� =�l��d�ޱ �<ҹ�h�ba�?\�0��|��4oGat�4'lƢE��k�����u9���h���LIt��R��3- �M�AoFt�����Er%��v5g��)�ѣ�M�.*��mppa��J(m��R���1���륂��@'�L��8c��Vŧ �*� ���DT |;Sl—��s�Ou��L�b�cgZő�)AqF��^�'F��iR{mt��ǫ��5�6Hm=� �n]�`E�z���S��-y�{�5��q�zD¡���9�^ �ׅ�5#���Qv�W���sm�s"���n�9�b4�f%o$��=��E8���s��)�/�k�;r��z���)��`x�x�2r��T�"�]��pP��Fv(lM� �;&6�+A18b�C#�|�Pbg*6r�ygk��FJMz�� �.�x��\��u�7��6��s����Ä,9c� �K!��_D��V|��]ؙ� ecg��|�h��� ��4�Z���H����F�������h�3z���!�{��~e���ؙz�O�o>gP;S���gy�-݌��5Z�&� ~9�E�M$gDMu�z\j��HW�� �=�ܹ�C1�h�ӗBV��thė�/_�F,N�#]�6�{�s �9F�US�[UsH��.[o"����9����{��dr�^��^�*ʻz�7� 0_��0�f�����j�]���)���O�?�c�l�Y.)e̼ � -XRʞJ����fJ��Џ�L;h�<7 aE� �U�,*6�07ʛ����:��3�fP8�f^[*�T.Q�Uu�iСϛ;��r�LG��jFX]AU[�5{�E[���{}��[����j�!��7��-3p�*�c���|#]҃���W�(7�ܜ�ͱ��~����3E1f�� h+앀٪z�`�L5��lm~�H������^��/�1a��% �2x��rJy3b�c#07d�,�������S��>(;�p��EG�Xqy�W$��h�~��)/v��?@�-�P����:�ȩ�C����/��PuH2���\�=t/!݄ 4ɔ�F:�MA4Up��0��;��δ �R�r*��@�1�(�� 5B�5V�@�I)d��2�� 4��V����g� �[e#^�IF����ޭt���w#r�$��G�%cf�*f�T�-'��O REPK&ĥ��i:���:�Lx4nS@�p�5/8�_�i�j�ƆCl �M���=�,o�zU1%f�H'�^�`�ܖ�"n����l��L��6�[�5���<q��&/��4��UJR���b��&y�K���ֿ��������B!Qjo��t�~�q���b�p\�Ṕg�E��,���Z$���]<�w�z�_|wxHLf�>E��Bo���mE�I� ��յ*�=��]qĄ�Yy��3 { // 初始化认证状态 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: 'liemingren', chapterId: '30323368', novelTitle: '猎命人', chapterTitle: '猎命人 第34节', 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 看小说网 版权所有