Files
cursor-lang/site/boot.js
T
alex 936e53d55b
Pull request / build (pull_request) Successful in 47s
add landing site for the Microsoft Store submission
A bilingual (EN/RU) static page in site/, split into index.html, styles.css,
boot.js and main.js, with a favicon.svg. Documents placement modes, per-mode
look, the Caps Lock shortcut and a privacy policy — the last is meant to
double as the Partner Center privacy policy URL.

STORE_URL is still a placeholder in both download buttons until the Store
listing exists.
2026-09-01 09:36:37 +05:00

28 lines
682 B
JavaScript

(function () {
"use strict";
var root = document.documentElement;
var lang = null;
var theme = null;
try {
lang = localStorage.getItem("cursorlang.lang");
theme = localStorage.getItem("cursorlang.theme");
} catch (error) {
// Storage refused: what the markup says stands
}
if (!lang && (navigator.language || "").toLowerCase().indexOf("ru") === 0) {
lang = "ru";
}
if (lang === "ru" || lang === "en") {
root.setAttribute("data-lang", lang);
root.setAttribute("lang", lang);
}
if (theme === "dark" || theme === "light") {
root.setAttribute("data-theme", theme);
}
}());