1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-25 17:42:46 +02:00
This commit is contained in:
Pomax
2020-10-30 20:20:53 -07:00
parent e6bea76b2e
commit 3fbeb89c70
16 changed files with 11038 additions and 301 deletions

View File

@@ -330,14 +330,14 @@ class GraphicsElement extends CustomElement {
const a = document.createElement(`a`);
a.classList.add(`view-source`);
a.textContent = `view source`;
a.textContent = this.getAttribute(`viewSource`) || `view source`;
a.href = this.src;
a.target = `_blank`;
toptitle.append(a);
const r = document.createElement(`button`);
r.classList.add(`reset`);
r.textContent = `reset`;
r.textContent = this.getAttribute(`reset`) || `reset`;
r.addEventListener(`click`, () => this.reset());
toptitle.append(r);