禁止把 Windows PATH 注入到 WSL
禁止把 Windows PATH 注入到 WSL
配置WSL内存和swap
配置WSL内存和swap
rk3506b交叉编译ws2812灯板
rk3506b交叉编译ws2812灯板
rk3506b移植lvgl_chess流程
rk3506b移植lvgl_chess流程
编译脚本里定义的变量啥意思,怎么发挥作用的
编译脚本里定义的变量啥意思,怎么发挥作用的
解决vmware虚拟机占用磁盘空间过大的问题
解决vmware虚拟机占用磁盘空间过大的问题
{ var timeSpan = phoneTimes[i]; var date = new Date(); var hour = date.getHours(); var min = date.getMinutes(); timeSpan.innerHTML = check(hour) + ":" + check(min); } }; function check(val) { if (val < 10) { return ("0" + val); } return (val); } // chat quote const chat_quote_obverser = new IntersectionObserver((entries, observer) => { entries.filter((entry) => { return entry.isIntersecting }).sort((a, b) => a.intersectionRect.y !== b.intersectionRect.y ? a.intersectionRect.y - b.intersectionRect.y : a.intersectionRect.x - b.intersectionRect.x).forEach((entry, index) => { observer.unobserve(entry.target); setTimeout(() => { entry.target.classList.add('quote-blink'); setTimeout(() => { entry.target.classList.remove('quote-blink'); }, 1000); }, Math.max(100, 16) * (index + 1)); }); }); var chatQuotes = document.querySelectorAll(".chat .talk .quote"); chatQuotes.forEach((quote) => { quote.addEventListener('click', function () { var chatCellDom = document.getElementById("quote-" + quote.getAttribute("quotedCellTag")); if (chatCellDom) { var chatDiv = chatCellDom.parentElement; var mid = chatDiv.clientHeight / 2; var offsetTop = chatCellDom.offsetTop; if (offsetTop > mid - chatCellDom.clientHeight / 2) { chatDiv.scrollTo({ top: chatCellDom.offsetTop - mid + chatCellDom.clientHeight / 2, behavior: "smooth" }); } else { chatDiv.scrollTo({ top: 0, behavior: "smooth" }); } chat_quote_obverser.observe(chatCellDom); } }); }); }); witchTheme = () => { // light -> dark -> auto -> light -> ... const currentTheme = document.documentElement.getAttribute('data-theme') let newTheme; switch (currentTheme) { case 'light': newTheme = 'dark' break case 'dark': newTheme = 'auto' break default: newTheme = 'light' } applyTheme(newTheme) window.localStorage.setItem('Stellar.theme', newTheme) utils.dark.mode = newTheme === 'auto' ? (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light") : newTheme; utils.dark.method.toggle.start(); const messages = { light: `切换到浅色模式`, dark: `切换到深色模式`, auto: `切换到跟随系统配色`, } hud?.toast?.(messages[newTheme]) } (() => { // Apply user's preferred theme, if any. const theme = window.localStorage.getItem('Stellar.theme') if (theme !== null) { applyTheme(theme) } else { utils.dark.mode = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"; } utils.dark.method.toggle.start(); })()