PageSourceSearch

https://veles.finance/scripts.js

js veles.finance collected 2026-10-01 12:03:08 UTC 992 bytes, 32 lines download raw bytes

1'use strict'
2
3// Show/Unshow input[password] value:
4function inputPassHandler(event) {
5    const wrapper = event.target.parentElement;
6    wrapper.classList.toggle("hidden");
7    const isHidden = wrapper.classList.contains("hidden");
8    const input = wrapper.children.item(0);
9    input.setAttribute("type", isHidden ? "password" : "text");
10}
11
12function autoDetectTheme() {
13    if (localStorage.themePreferences) {
14        document.body.setAttribute("theme", localStorage.themePreferences);
15        return;
16    }
17    const prefersDarkScheme = window.matchMedia("(prefers-color-scheme: dark)");
18    document.body.setAttribute(
19        "theme",
20        prefersDarkScheme.matches ? "dark" : "light"
21    );
22
23    window
24        .matchMedia("(prefers-color-scheme: dark)")
25        .addEventListener("change", (e) => {
26            if (!localStorage.themePreferences) {
27                document.body.setAttribute("theme", e.matches ? "dark" : "light");
28            }
29        });
30}
31
32autoDetectTheme()

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.