add landing site for the Microsoft Store submission
Pull request / build (pull_request) Successful in 47s
Pull request / build (pull_request) Successful in 47s
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.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
(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);
|
||||
}
|
||||
}());
|
||||
Reference in New Issue
Block a user