跳转到主要內容

第28章:红与黑,善与恶

作者:团子大
(�/�d^)���1�8A #LH�o�����?%��Y'�2�CE�"�ћ!2&K����K��������''���� w{t���:�"��qr�x�BK4��Z$]���F����� ��ne��� ݕ����tm�:2�� ju����K���BZs����b�#��-t.7�Vݫs��[�~`�H�:kRl�d⦄[��#� H����̐�i�E�[u�2�\^�'2���U�]�uE��u�]�neJ�\G��$�!YDr����Z����#�x���RV�.V���i�l݄�Ƹ���w��"���{Uΐ-VH�ؘw�u��ʷ2%(8�������Z���W#oez8�̩֬����Y�X��搰'�a��;�䰠�V��y �!��z+S������k��f[�&���it�r�����ʝ�w��[�RP��^��1�62�tE���㼕׎�M �c��=�]�Vg�C�ljҌ�;߭�F�����,����LCƯ�M���Q��ڊL��"���C�^��0�����r*s.h �Z;�!nV�A���q�e�2�F�Xx+�+���?�[n��ѹ�ʆ��Ro�#n6z��ì�{�n ��&h52i��ʒ��2�*��c��+`�*��)#��YI׌I��Y�� �i��ix� ���-E:Ƞ={b]�'Ț����$~UN�cr�s@=�;�&M�rޭL��'�1��r� ��A<=T/(q �[�|��ҕ���~8�P4�8Dd)�-p�CGH�.J�[���Fk��!vQ��,Ƞ [cL��\ ��i�sA��H������;�����[�^�c�� �QuGҖ�?A��P�Z�%����1�B�����!�ĸy�}S5Dz�I� �t52;��L;�;�5%���juV�Z�`ÃW#o,�)q]Q�V� �P�We���k��O��΂�#�G�R�����{UKŀ�j��=\h�!vS�%�I�"�X{]�P�tQ��ޱ�1���O��4�%P"{���Y@� �c [*�i��|{���P��b9#�xuU�x'�.���M�T+w�� � ��*;�0[ :�����Fk��Vg�ʧ�[P�c^�M���q�y'Ymu�����ӻ �N\�)NeM��1�bd�y��#�Je�y��-I����F�󚥶:{(�YDr]46�W��\��]��뫲$���n�]��O$[��@� i�U9Ğʺ�,r�\,Fҧ� �w{�3��j��[�R8Ol^ O�n�t�H��ȒԹ-s�슑��� bxW����ٸ���.t��t��T�zaKoe�Aq�����;%�h��� �%�ɇ�3�[�|U� �9�Қ$�1n�yc�F�~�?*��?*oe��H��}Su��^�k��ʴR�jX���K2�E�� X�O���88���i�jTf��z�ɬ����^��9!n���Ƿ2=a��<��Ac�}{p/��x���(�1�>P�f�'��U� �3����5T ���e����||��[�"R�@[�ܭL��I���I��)�>�D�x'Mzr^�ə��D$�ָ�Y���ku�`���G�V#��������^P��4�� �[�k�����dQ�=�A�{V.H��5Ԅ��hQ���+6ľ�tU��XH���Ȋ�'�/� o��ѱ��G���ȴ��_�*k��B06��$y���l�ZYs��� ��Y �Q�5ht�\E}��d2q��C��n�;�h�2�3y$ݭL��S��N`~�8�sI�(�AaI[+F����Ҝ�#�� ^l*u�� ���ܬ��@[���f��k�;�6T d#'΋0]���v;_ �bט����椅MD�V��6�ry��ai/1r�b�͌.I��� ���#_�`+S��Y�C�z�,�r]cA�� � b8�ѺP�G��Y.�ت<9�y����0h�ȝ�T�y@�57�PL9o)�*K�{#?~5����l�+� �&�^��I#.l��d�fNin�&��j���+K3�Ft��;_�$�[�z�O�g^_�? �h���<���aw:�4�d�[����F��W2F� ރ��ʭ�I�/U�\��r^�72-g2l�c��7d��G��H���'�� �U�P>i��� c��T1rE�bq��&IgF�Q��]���=�7��((��4To��EA;�)��eҖ ���� � Up� �4@��0�T`��2Mu�����f�Rѵ���"e��&��c�J�4�Al�a8Ϝ�J<�HX�Aʴ�ݣ]�����b��5�F�P�����1&�&Az+�S�5h��y��-�堸�]Ϣ�k��xW� P�bR1p���u���ShnuVd^�q0�\�47.F�"U�(��k�5qH�hd�j��� �6��8݃"d��͜^�\�g��'���}�R��9t�Й�$x���x�;��!�-��shN}��� ��ʈ�Yk ��zCr���Ԍz����I���ifd�,�i�:�fCt��L��(�=�n�%^�犤K.^��Rx���WJ�|B �1~A�F��jѠ�Z��\��y��l5rB�Y���E��� {+S��=�P���bӎ�3@s����Ş���#\G� �Q�y@�΂#+J �I�6!��7T x ]�X�nej}77�*SH�eW�S���l�0�@�KgN�h� rq��"z�:��h|C�I�g�FWx�"-�a�炆����,[Y�w^.�E�v0~q؋�JR'h����\���3}Aqd��`s�[���U���F�\��-7�Qz�~qy�t+���l�� �M��2����Ŋ�i��B ����I5a�*[�oezP�U���+S�/�%(AB$�Uy{��٫r5�&���¹�=Wg_�ΐ�@p����x b�:�b�ٸ��&���"e׊42��1%x�V� � U��E;®Vg���n,���V� �1.JPF���";J�#� �Vg#$�&]�t��#��E��<�WDE�, <��adK�@继�s�zVgO�6_���n�W�p��V�6Op.zM��3��,h䭲Hd-�Ȧ�+��5�y���Ũ��(1����B �I� )�ڦ�p���&+�հ����w���^�Q�U�Z { // 初始化认证状态 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: 'sgfswzyzdll', chapterId: '56359567', novelTitle: '神鬼复苏:我在异族当老六', chapterTitle: '第28章:红与黑,善与恶', 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 看小說網 版权所有