PageSourceSearch

https://lingyuzhao.top/js/updateTheme.js

js lingyuzhao.top collected 2026-10-06 13:15:54 UTC 1,026 bytes, 37 lines download raw bytes

1/**
2 * ÐÞ¸ÄÖ¸¶¨id¶ÔÓ¦¿Ø¼þµÄ±êÇ©ÄÚÎı¾
3 * @param id ÐèÐ޸ĵıêÇ©
4 * @param newString ÐÞ¸ÄÖ®ºóµÄÐÂÊýÖµ
5 */
6function setTextById(id, newString) {
7    const d = document.getElementById(id)
8    d.innerText = newString;
9}
10
11// ¿ªµÆÓë¹ØµÆ×´Ì¬ÊýÖµ 1=µÆÁÁ
12let status1 = 1;
13
14/**
15 * ¿ªÆô»ò¹Ø±Õ±³¾°µÆ£¬¸ü¸ÄÖ÷Ìâ
16 * @param buttonId ÐÞ¸ÄÖ÷ÌâÖ®ºóÐèÒª±»ÐÞ¸Ä×ÖÌåµÄ°´Å¥ Id
17 */
18function closeOrOpenBackColor(buttonId) {
19    // Ê×ÏÈ»ñÈ¡µ½ÐèÒª±»´¦ÀíµÄ±³¾°
20    const body = document.getElementById('body')
21    if (body != null) {
22        // Åжϵ±Ç°±³¾°µÆÊÇ·ñ¿ªÆô
23        if (status1 === 1) {
24            // ¿ªÆô״̬¾Í¹Ø±Õ
25            body.style.backgroundColor = '#2d2d2d'
26            body.style.color = '#f3ebeb'
27            setTextById(buttonId, '´ò¿ª±³¾°µÆ')
28            status1 = 0
29        } else {
30            // ¹Ø±Õ״̬¾Í¿ªÆô
31            body.style.backgroundColor = '#FFF'
32            body.style.color = '#4b4949'
33            setTextById(buttonId, '¹Ø±Õ±³¾°µÆ')
34            status1 = 1
35        }
36    }
37}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.