refactor: Move stuff around and rename

- DragAdv is now HippieTaskBar
- Remove previous version
- Move unused stuff
- Replace Clock with TimeDisplay
This commit is contained in:
sthag 2025-11-02 10:20:51 +01:00
parent 77178886cd
commit 13b1924360
4 changed files with 34 additions and 167 deletions

View file

@ -195,7 +195,7 @@ function composeMail(tag, name, prov, suffix, text, topic) {
el.innerHTML = elContent + text;
el.setAttribute("href", "mailto:" + mailString + topic);
};
}
}
}
@ -230,8 +230,6 @@ function composeMail(tag, name, prov, suffix, text, topic) {
//
// var Utils = new Utils();
// NEWER
class TimeDisplay {
constructor(element, options, interval) {
this.element = element;
@ -341,7 +339,34 @@ class DateDisplay {
}
}
//NEW
// CONCEPTS
// NOTE: Benutzt private Zuweisungen
class elementBinder {
#element;
constructor(element) {
this.#setElement(element);
}
#setElement(value) {
if (!value) {
throw new Error('No element found');
}
this.#element = value;
this.#element.style.background = "hotpink";
}
get element() {
return this.#element;
}
set element(value) {
this.#setElement(value);
}
}
//OLD
function Clock(id) {
'use strict';
@ -372,8 +397,6 @@ Clock.prototype.formatDigits = function (val) {
return val;
};
//OLD
var floor = Math.floor;
function ongoing() {