16 matches across 1 files for func main lang:JavaScript path:src/librustdoc/html/static/js/settings.js
snippet_mode: auto · sorted by relevance
src/librustdoc/html/static/js/settings.js JAVASCRIPT 16 matches · showing 5 view file →
2/* global getSettingValue, updateLocalStorage, updateTheme */
3/* global addClass, removeClass, onEach, onEachLazy */
4/* global MAIN_ID, getVar, nonnull */
5
6"use strict";
· · ·
7
8(function() {
9 const isSettingsPage = window.location.pathname.endsWith("/settings.html");
10
· · ·
17 * @param {string|boolean} value
18 */
19 function changeSetting(settingName, value) {
20 if (settingName === "theme") {
21 const useSystem = value === "system preference" ? "true" : "false";
· · ·
58 }
59
60 function showLightAndDark() {
61 removeClass(document.getElementById("preferred-light-theme"), "hidden");
62 removeClass(document.getElementById("preferred-dark-theme"), "hidden");
· · ·
63 }
64
65 function hideLightAndDark() {
66 addClass(document.getElementById("preferred-light-theme"), "hidden");
67 addClass(document.getElementById("preferred-dark-theme"), "hidden");
+ 11 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.