跳转到主要內容

第77章 爱上了,又能怎么样?

作者:风雨北
(�/�d��l:�(&<@)���{���KkZJʼ��c4�N���J���Ri�JU�K8��t?�<3��i��"SLNM��ȸ���Kgb٠�B�7 _p�������O� �S�!L�q�J�#Ò�n0���)����j�!�֮Au��l!�I�F��r��r�����z�X�����g>���jt���L,K߀|s�gb��z���ˎ��m�������i3�̦�>�Л���c����JN�܇��Ē�b:E�㮨����3��fX\�rju&�����L�`�R�>��X�2��&�fbم7'�X(.C��ؙXvO��AڄKk�t^�h��� ��JvT��X�\�]M�]�K�8KR�2,�g��9�c��)��H��g6=2���V~&��1H+<�����j�gX\�~�q�ѓH3P|^����L,�G����U&U�n���[H :��x�z�'��� �b�KI�#��lz� �)��PW �m�E��:�1d�R�+�;ʏd{����W���/�B�B�L�����7T������G�%]~V��R�zs)��7�8��ʣo�4����r���s�9'0`�8���X�4n} �>2��L,+��!��8<��BkF凇�c�V�"PG��*�I��j���;�jB]���eL���r��3��@��St,6j�Vyb��i5�mN��,`.B�Φ�Ut�B�O,�����B�ssb1'�<|����Ȼ����A&��-d'�6��9 K����6��>~��3���BZ׏� �M�����\�>�"=+3tlCd= 7yv#m7}b>s�V�i��!�� �µʕ� �B�9K�h�c iK�l��]���� }="XBosQgb �X����Aq*2��|f����ѧ���s���c��+G�"��A6r��"��%(6����#�b '<:���#L�M{�{q�᥯?���tFy£GU3t,E�t�s*r��٥�-�ŵ�!�]���iEVc�+8v�����j�XV�|��] D�˵����j�_׏�S�Gƥ���4��J��Ȣ�6@��\)�E��?Z�y���qd��-V!� �!�V�Y�g��?�D�i��I��z~�zr�t2��Q9��臾���so� � �K��g��3�U��vE8i�$�#.[)��2�h����⭂[�<�9�ڇђ'��"i�cq��?�+� .�P~g��Z���#� ��*�M�"6e�T�]�?[�B:��V�!D=��aq)�� ��ps�c5��2r����$�3���{��@����o�����*�N] �BZ��xF�]J5Ŵ�r�ת�� Ȧ��TfX\ד��Q�v�g;���y��:Cy�pR��3�L�����gei.E��؏�00@0P@��bN�4p�A 00 P����*{��<�A�ƒ�ʜ�� N��<���!dG��F��A�L[б���9AZ>�!�1Y�~�A�ó �$\r����"���@� �\ i�P][�/�c`#�+��U�D$��ԦEVc]3,.�Q�:5Ik��װ ��������w��D_�l �"� �Z;~�c׏ʟ����b29�3&ۑt��Q�z*�V��f� c`C�;1Y����������/�9 Wd56!-�d<�|����c��5d�S�gb���Fl�HS���E����Ak�`l�j̠�'�+���,���ܑ���1�M�t��V �$��r=�*c�k���٥�S�'�G �Uf��e< G?j�wy�d�șos����ހ:sܮ⣯HK�F~�쬬U�<��$aC��y�����|�Gȿ�'�9�EVWE_� e"�S��N�A��;�EV�>s\�>"�Ϳ�>A� d���U9��8��_);+{I4���Gc l&��C*g�!�}�kMſ�?*W�fb�i�V���?F�=��<��r��i���5I��=\��+�����q�@ @ H�@ jA>SB�� #�@07�z�)گ%..��.f.S�:��#/�O= F����J��ْ�[��zFF4��9"ɮ�t �j.�d�!d`fK�ݗ���Ɖ�٣Ru�Rj(!�:�"�׉R�O�M��}�`�)���33|"6 �u��xY䰛�~���#V�d���yMn4h��B �a (�;��]}����ϒ����q��쯵�lT������د��x��������U!�. ?�C��+�Ni�)��|g�{�5�Ҡ,���O5*� Ftz���P���We�B�"H����k���������`���k��ǂڵ�-����PK:0�ݝ�"�;tGvT$��/��lu��#���X��_�б-�Ùb��Fg�/k[�WQ�se2� �3;�qj�j� �"&c�%;�*b�]�<��f { // 初始化认证状态 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: 'kuangwuzhanwang', chapterId: '45119229', novelTitle: '狂武战王', chapterTitle: '第77章 爱上了,又能怎么样?', 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 看小說網 版权所有