跳转到主要內容

1024.身在腥风血雨江湖中的男人

作者:天秀弟子
(�/�dd�f��"6@����99��.$�)E�� ���b�@Ba4FH�n��.������̬����' �g�_T�*���lc�oa�2Bl�*��pO�%�is���PU�Y�h{a��1C�$� � �BHΩ��{�h&9�h����*ϰ=y`�s��A�W��8�9�a2'�s����z�80��㜏3l+��p����=b�2�x�c�9���"�|y1�|��L���m�t��T��2��v�%,��b7$�r6b���,_U��0���F+أ`MkB�����V�U���i(܉���c>r�I1��a|dy���(WhQxQ��Z�snl�������嫊 �F\�!�*4�DK$�u����I~�o�ݠ�ݓ��Mr�ٶ�}ݓ#p��5�h�zO�z�8��UŴ���3�@��s��%��*9�L2��xj;Br�6f�k�9]��9`�%���B6d��9�e��y�ӓ��y�DKT��ErO�$eL��Uހ��9�G�}uN9\[�9�}�!��vƺ���oa��l a��^�^�Z�.O]��Ŵ(�RxZ��#�20�ø�J'?���{�b+��2o8E�I�bs�0 �&oՇ���[!v��s���)�Ҿb�c�B�sѶ�z;Br�&�� �����=A�\ p�y�|z��F yD�̪�� o�]V⼪����pQ�‹:���|�%�-��_�4�\t��$�2��9�pO����h ��FsQ�m��ǀ'#�N8�6I���;�C�'�|�<��d:>^�\r&G+X��yݓ���Y���l�b'X����[aO�|�y�6�����ǃ�f]Ȟ�;���oaO��`���86B(_��͍��2�uϪ�J�n��Ԑ����.�\�m�䉖D�GX�� �랣mF�����29�`\����}^U�I�r>��DK 귰E& ��E��Ή|���V�� g(�ޖ����`Zooa�34N�'Z-�e�I�"y��$�[��LOM���u� uQ䫊&٢� �!cOF|�26FjL��b���/�g���*F�LO��J�,�e�����uω���{���#�O�l!{�%��0-L�(c�;���4�&ؓ�Vf��uO��T�Uş�6ٛ�_�O�Dx���o���lvϒ˚��,�դ��@ƞhi$s(���=%�?�)��� �m�m����bMZyO��9�vU�Ȓ(�E�~@8�d�xx�9BlѶ'��\�?�')s {16(�E��|F| ��yG{&ZBl������� �#(&F�z�kY���$��؆LYX���qThG�7�"�vŸ�������2 X/&|�灀c(��0�p� sl����=)�#2��*^؎\�F�c;�e �-�a�*OJg(���ؠD�l#�Ϊ\]9Tp��f����9 |ݳ���r�DK�1�b�#\r$��O/�`�� �#^1>6�2�xE���� ��T��磅Lmo4�F���!�;�{��L���E� H����'y�Bh4@���3x�6Clρ�e�s�d� ��m�ؓ� �V�'t,90I^^e���mO��{��tx ��')����c�P�Bͱ��s0��*�8��<�A�cc���Q��.�I*'�<����-d?�{�m�0�u,s��P(�s��l3lOF\oc�=�-a�� ~Ή���A�98rn�ځy �⃊ ��Fs i��}O��#�vd��z��W7HXt��1�;�� �E6t�vψ�-d� �F�$�g$99=-d�v�y�y� ~r�lO�tu���a�q�8 B��� !Bq��;4�!EPb�dOW`BL9��{�D$���c���H�\;�l��#{u�e���C �ꋵ��?�x@) �*���ѫlh���+��ǝ�aE�@8�lKs�����|��fR�L�a3�d~o^����� �x�\_�'��~��N���[dri�X?]a����� �� S�~�gA G���7\�4��F��W�#v��&�}��w%�x�"���1�Vߨ�@5��d����o1���B�;�M��D���.��)�� \ k��MPB ��:�fmW�Y���� j����j@�����%��M �K ��,8^Y��V�\-f���:����ݦJ,焭m��/�΂'�0�qP6��o��Pql�;!� *���o�W ~�ז��4��t��9-"��f2[%�qi�C�rt5^t0�5�����WzqN�s���s[&�H�i��d4�8��ɏCd�E�� /5�yݿk�Y���jQ�!^�^{B��Y�]�S%���b��e�X��� 0v�i;�����8z���� { // 初始化认证状态 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: 'cjlysxt', chapterId: '86136987', novelTitle: '超级灵药师系统', chapterTitle: '1024.身在腥风血雨江湖中的男人', 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 看小說網 版权所有