From ec9859ee41850ae73d8e98d2ba21187bd6ddce91 Mon Sep 17 00:00:00 2001 From: Aircoookie Date: Thu, 7 Oct 2021 23:09:23 +0200 Subject: [PATCH] Initial new settings page test commit --- wled00/data/cfg.css | 120 ++++++++++++++++++++++++++++++++++++++++ wled00/data/cfg.htm | 28 ++++++++++ wled00/data/cfg.js | 25 +++++++++ wled00/data/cfg_lang.js | 24 ++++++++ 4 files changed, 197 insertions(+) create mode 100644 wled00/data/cfg.css create mode 100644 wled00/data/cfg.htm create mode 100644 wled00/data/cfg.js create mode 100644 wled00/data/cfg_lang.js diff --git a/wled00/data/cfg.css b/wled00/data/cfg.css new file mode 100644 index 000000000..6a65dfec1 --- /dev/null +++ b/wled00/data/cfg.css @@ -0,0 +1,120 @@ +@font-face { + font-family: "CIcons"; + src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAApMAAsAAAAACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIGEWNtYXAAAAFoAAAAVAAAAFQXVtKTZ2FzcAAAAbwAAAAIAAAACAAAABBnbHlmAAABxAAABfwAAAX8iNRp/2hlYWQAAAfAAAAANgAAADYd+7tRaGhlYQAAB/gAAAAkAAAAJAeYA9JobXR4AAAIHAAAAEQAAABEOgAGTGxvY2EAAAhgAAAAJAAAACQItgqAbWF4cAAACIQAAAAgAAAAIAAWAExuYW1lAAAIpAAAAYYAAAGGmUoJ+3Bvc3QAAAosAAAAIAAAACAAAwAAAAMD2wGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA6QwDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADgAAAAKAAgAAgACAAEAIOkM//3//wAAAAAAIOkA//3//wAB/+MXBAADAAEAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5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AARBAAAAAAAAAAAAAAAAgAAAAQAANYEAACABAAAqgQAAQAEAABWBAAAkgQAAKoEAABWBAAAVgQAAFYEAABkBAAAKgQAACoAAAAAAAoAFAAeADgAXACUALYA6gD+ATQBigHqAioCmgLKAv4AAQAAABEASgAEAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGljb21vb24AaQBjAG8AbQBvAG8AblZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGljb21vb24AaQBjAG8AbQBvAG8Abmljb21vb24AaQBjAG8AbQBvAG8AblJlZ3VsYXIAUgBlAGcAdQBsAGEAcmljb21vb24AaQBjAG8AbQBvAG8AbkZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=) format('woff'); +} + +:root { + --c-1: #111; + --c-f: #fff; + --c-2: #222; + --c-3: #333; + --c-4: #444; + --c-5: #555; + --c-6: #666; + --c-8: #888; + --c-b: #bbb; + --c-c: #ccc; + --c-e: #eee; + --c-d: #ddd; + --c-r: #831; +} + +html { + touch-action: manipulation; +} + +body { + margin: 0; + background-color: var(--c-2); + font-family: Helvetica, Verdana, sans-serif; + font-size: 17px; + color: var(--c-f); + -webkit-touch-callout: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + -webkit-tap-highlight-color: transparent; + scrollbar-width: 6px; + scrollbar-color: var(--c-sb) transparent; +} + +html, +body { + height: 100%; + width: 100%; + position: fixed; + overscroll-behavior: none; +} + +.icons { + font-family: "CIcons"; + font-style: normal; + font-size: 24px; + line-height: 1; + display: inline-block; +} + +#header { + width: 100%; + background-color: var(--c-3); + height: 45px; +} + +#menu { + height: calc(100% - 45px); + background-color: var(--c-3); + width: 180px; +} + +.entry { + height: 45px; + color: var(--c-b); +} + +.entry:hover { + color: var(--c-f); + background-color: var(--c-4); +} + +.e-icon { + padding: 10px; + display: inline-block; + width: 45px; + height: 100%; + box-sizing: border-box; +} + +.e-label { + display: inline-block; + height: 45px; + vertical-align: top; + padding: 14px 0; + box-sizing: border-box; +} + +.btn { + padding: 9px; + color: var(--c-b); + box-sizing: border-box; +} + +.btn:hover { + color: var(--c-f); + background-color: var(--c-4); +} + +.save { + float: right; + height: 100%; +} + +.b-icon { + display: inline-block; +} + +.b-label { + display: inline-block; + vertical-align: top; + padding: 4px; +} \ No newline at end of file diff --git a/wled00/data/cfg.htm b/wled00/data/cfg.htm new file mode 100644 index 000000000..537f15182 --- /dev/null +++ b/wled00/data/cfg.htm @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wled00/data/cfg.js b/wled00/data/cfg.js new file mode 100644 index 000000000..b790c3ea6 --- /dev/null +++ b/wled00/data/cfg.js @@ -0,0 +1,25 @@ +var d = document; + +//startup, called on page load +function S() { + //populate labels + var l = d.getElementsByClassName("l"); + for (var i=0;i