跳转到主要内容

第1章

作者:佚名
(�/�d�q�Ӵ'? SpJ�;�'$@B���)��6�ZS��i4l��5mHݖ�ժ�q�)/�IA�C���I�bgd����K���S�<�?���3�U����:�銧����4��sR�jG#&bC��$�~�6� �[�rBy[S�e�$K��3����Vnh�g���8�>R���¬�������w���{��C䲺�2Ŵ6��1%O��x� j�6������I�E��x*���K~9�6���K��8� ���a׋� ��eu�IE���~@�V�$9��q���p=Lc�-���s#j�b^]+8t�䭲6�ӡ��W�Ռ �xY�䝁�bjF,�CdQԌ�+.����w�t��-�Ү��4�*o�Y�g]�0%�:rD���OB�8�9�Ш#y;�Z�U�d����Z7�^�Z�F��Ʌ�9��HWO�;�x2*��X��e���6B+��#�[��UV���3�9̊��Ζ r\n��Ƴ�l#dR�'_[ S����qm<=ط�촲�2�M16��sZyAaV�E�9仧;���Ǒ��^��'Tl�YM/(Lm<��,&�\q��������Kߵ��0m�09��}X�c8� (]`�8p@���x.�o�Q�SH֐��'�򥼖��I�����F�F�w �g����,�g!_ʋaM..h�u�t-��c1��x2@�*o$3���.�m��I��*c�SH��|ga�Д|�*w�A��*}����^q���ι��ډ�̀���b;���丩� 1�Q�3rYub4�VY�f�Е�ړ�GC� �� &Ft���Է�� z�t��Sќӝd�SD+�T�f�D� �Lg5���I���WB�kK��g���ʟ�O����h7��D��[ʋ����J'`W�p�h D�C��Q�2�im<�����J�6�\�:��6��CK(}uM���]m<9!g 7�z\��O��kLj�����E� ]k� �s�r�n��/aEQ+:�0�@=W��"�{�� ����^I��Y���V�E�[��� ��У*]q6 9t��h Օ�h�:��5�د�;-���PxO��� *Ί��P�\\ntZ�ô���V�*g ndQ��j�U&A܊��$�p=ݱ��j�i���yG#L�[x�Y����w;8��&�1ʼn�8*�b�.�S :!��I�����Ì�.�neǢ��D&%�V��W�)Ɩ�.�/(��KXk�=�֡��LlB�uhs+�V�~�&��`V��y�Y��Ʌ����dZ\��u���afW?D�h8Dï�#�D�-�V�8kE�1LrqI$K�H�R5镰�[����jH�"�*�f8Y�����U(��ҙPb<���tG#��î+Β�K(->^�3��� �h/��'�K�o�"gӍ�2�d�{��C�EW��t��d�2��xf����⬧;��18�Ҩ�!D^9t�"��� dH�=���Ǭ���'$��[e��^�1����M�':��i��)/���zCi�ɳ���O3 ��~u�!$=4zByA�+��R^ �����Z����Io�-�}D⼒zC䕍ɩ�U�\�lLZ�z�gb��d9ř���K�@; YB� ���&��q-�)��1/�Ȩ�1�Q�E�lrh��v�o����� 3ѹ���(/��"Z �F���Y�)��Jc@F00@0P@���.@"h@� 8@ $�`�x� H��0d�W��I����%��.�ĹCҍ���|��z�XM�b,��L�ڏ�Fl�%�.S�e׫4��.�ܭ�'� ��2p~u͕NU�Q��"���� Ɋ���!ܡ3Ʌ��S α�2g�$B_D����:�eZ|`&ʀ��6�jH�\�e�v���xFD���msɋ�8=AdN��C|ú4�"�6�ꊳ�ν��#m�c;Y[B�A��r�v�쉚S��U��R5�t�ك�>xh��)�5�u�T1Asc���8+>�(ovuVA�7�FU�Q��T����,�b�*�M�F�rhZ3m<1�{)��������f�e,:S�յ�zDt�s ���8���E������tGt1A�A�'�/:7�ւUY�r��\�[�T� �K� :�VV�4�E�E+J���b7��8[������L=v��pС�+�!$���6t�D>ފ�׭D�ai����6����C[q�����cr#s�/l���KdɅ� 6B�+H8Vy��r#��Mk���i{�|�\�MhL�1��w�n�n��j�yU�"�G�u�e!_"�AP \T�c|Sp���! r�02B3# 1A�4Pi`�D��A�"�ۯF�u����>Jٹ�Ot-���nhڼ.��P���'��Tup\�^��hF�/~���t���;�(��T����x��Ya�ӓ;T��A�pF�'���M�D:´�S��{Hk(�(��K�fŝ9[�� �`1�[+�4XMf�҃�X�7-��� �����"��o�і����`g�)�j}��Tʞ#Wo�A�[ ��`z�0�� U�d�gi ��8M��ю�`���3e�2� z�}��/LVU���\c��M 쨇+8@Po�GԷ��a�%�y�3a��D�J�J��eMND��nVJ�q�_�$*��=Z��G�q��۰[(�.L8�N���L��.��� �����'mI�t�S�|U��8�t �C�&Rl��N6�4P1� { // 初始化认证状态 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: 'bgqmhwzkfwenzs', chapterId: '30902569', novelTitle: '不搞权谋后,我坐看废物儿女作死', chapterTitle: '第1章', 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 看小说网 版权所有