跳转到主要內容

第62章 傅谨臣大半夜发了疯

作者:梦幻紫
(�/�d�#��:��.;0S��{�v�Zm��7YT�bk�Y� �`l�b v��V�s@�V=^��;�APB���Xkk6U����Ë+ c �]�b����l���I /�f���jY���n�-\�YqǀA![��U�1x���1��U�XG&�xC�+^}�8ok��y5�~ ]�[��$�+�J�0��kR��|N�C�C�I��s ~T_)��U��7�/k�FֈW�)���A!/��S�r��N��۸�bS�� NÊ�4�y^)�h��Š��� �.��(�I��  u�tQ� �{4\Qp�9U�&A~��B��Bc^���3�3�j6��g\m-���f��J9/��*ޱ��H�䕜O��#^�`�>�����e^�dhGئ�M�/"��8�4��\K��� �qu�M�X��jY!6i�r$LzM��R��S:՗Psk6ň�i�ϭ�U��<�l�y���b^�4L���M.N�8�ay��(XD�Y���/\S�ô��Ë-+|ޫ� ��yȗ8PIeHK�#�1ϗ���a� ��a�O��D�x\��Jq�9�n�/�!�Y��(~B�V�3 ���&^������7�n�dS�>؇�C8�TmRoR�f�JqG���+�8oݲV���� ����%���P�z,1o����k6MyG�U�c每-��lZ"x��Ǽr������r�� �V�o���1D�U��I�"��(��� �%|���3��f��c�x-�ve_���E�['�k��f�ߢG?��j _ʶ��8��=�W�8��FQ]0��X���,U�^}����'�)�=5���+�xñ)q����h� \n���ey5�Rt9��R�� ��?�t���j�� ɛ��W���E#S'�o��&>��7�@ËET/�j�c�xE�9'XE�d1���.H���ǯco'�Gy!�O�?%�(�q���_&���� O��C�P^�y��S>�>���U��x�kS�P "u�*ު�����~�b�������#�+#�P^�=ړ� � Y!���-�3�fXW�g \+yÅ78#m0���l����� j۩��JF�m=~�� �\ū%P��x 5(�H�b�Y�닀 '/�=�͂4�nL�c���ex4B�LjpGؘ� {��c����[d�#jlћx�&3=%���P�+�+Z��U�03���|B^��Gy/�����[� D��s��EoXKΧ����v%j��J�ȣ�wog�|��M�S�CWH_��.Uo]#^0b^��=�#�Py)ҚM��9� �E����� �7���;*|���s+� �#-yt���_��%�ΰ�xl�]���*�������&Y� ����&^�W,�J<�����Mɏww_BݸZc/�c�b^��{.�:{��pͦ󳒣'H{ȯ� ��!�te���һ�V�gVk6i��4���袼d��eo�'yc����e��C$�l���~}YhK�͏n��LpWvE�&��"l�,9?, �,0@����2jQ5�X�tP���qu�8���B� ~��Q�N�9W5�c+�7�X��A��q�ix����UO��ٴ�|�z����� �\)n�W#A4��y��d0�yuչ)��⛇Z� /^`t�� g�|re�.9_���WKJ��+�_������&���Qm~lV P�b�����ch� 5%��pGR�(lĆ�Pc(裼قa{&���|ڸ�8UQ��M���+��'4\p5�‹�JNN�����y3����M\^�y|1^K�7�{{��������M�@5��� b\�;~|9�8q�zФ�)��� P�%x��N �y��N���w �I�U� �l�Qt&^�x#�W��i�1 n<\�0�zȨ/����p�B�W,�?�'`���k�[7��χ"���ֈW#�D!^H�7t���;T�!�fS �5s�b�<A �gk6U��j|���j0�#�?�<����U��x+��k6-����o�^BM��S��d� -X4��L� ˠ�7��� � ?��"q'�S���&�0���i�qu-q���dHäu�B�/��o �z�x��`�-�=�)q��� R�&=��ES'c�*g(h����Jx�k�x�w��;_��ғM)���;���\�)H� j@4�@�X���O�A�o�}�wJ�߸���@������C֟S'c�h}�W#=��c��:�p���"��0�1�g���12$ �$q�p1%�C@�U�@��J&k��ӫ���s�H�� �Z�xt��CD��+���,�B�)��pՆ��9E�'�L�8�o���vݹ/��VY(�*;����q�c�T��7���D��Pc0��@gUaE�~ ���m'BM�/����Tӄ���SSο��vp{���u���W��A��I�i��g�|��kZi!�����q���$�uM#��I�O5�Ғ�� &�5�;Q��D��G�����^x�:3�+��R��ȯF '�@�@ ����wf����Ly(j:P�t2s}�y+��TF=� H�T���]>74N���� u��6]�Afq��4�tä���@Qdž�e���aځN%�kc��a����C����ހ=�*�sRH1�"�� ϛ�� /�7ج^�g��}WzM4��|W��Q�=Z��GԿx��?�$��Mmu��9df�o�=�_}���T&K���Q��Ѫ���[� d� N4H��o�� n�9��XS�0�1��j ��t3X��?L��X��Y��Y6� � O�ԙ�z�s��k�huQ/'�z���5�!)h�G�|`s�v�_��o���'e� �P~��̬.���&���$��\%C(�1��Fg+���9�U�@s��z͚�޼A�2��AʈE�sB$� �G��q�7�L������\X�&�1��g�E;>xYb��6p���}���%��@_��k^R�3�)����k$}5��tE�~A��=�PT�7軑6m!� �%��,��{p{t�R����Bd�F��+ ke0��&T=�bc�GnM,r�hP��6W�m�d����‚,��;ܨ�1 7)�C~aq ��l�4]�&�� { // 初始化认证状态 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: 'ncyfzzpbygfm', chapterId: '12838907', novelTitle: '难产夜,傅总在陪白月光分娩', chapterTitle: '第62章 傅谨臣大半夜发了疯', 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 看小說網 版权所有