Skip to content

Commit cd5f022

Browse files
committed
paint_neo.html
1 parent a639c5d commit cd5f022

7 files changed

Lines changed: 13 additions & 66 deletions

File tree

petitnote/template/basic/js/dev/palette.js

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,6 @@ function Chenge_() {
356356

357357
if (isNaN(parseInt("0x" + st))) return;
358358
if (isNaN(parseInt("0x" + ed))) return;
359-
GradView();
360359
}
361360
function colorPickerChange() {
362361
const grad = document.forms.namedItem("grad");
@@ -574,15 +573,6 @@ async function GradSelC() {
574573
p_ed.options[n].style.color = pes[n];
575574
}
576575
}
577-
function GradView() {
578-
const grad = document.forms.namedItem("grad");
579-
if (!grad) {
580-
return;
581-
}
582-
const view = grad?.elements.namedItem("view");
583-
584-
if (view instanceof HTMLInputElement && !view.checked) return;
585-
}
586576
function showHideLayer() {
587577
//v3.0
588578
const grad = document.forms.namedItem("grad");
@@ -591,13 +581,7 @@ function showHideLayer() {
591581
}
592582
const view = grad?.elements.namedItem("view");
593583

594-
const psft = document.getElementById("psft");
595-
const l = psft ? psft.style : null;
596-
if (l && view instanceof HTMLInputElement && !view.checked) {
597-
l.visibility = "hidden";
598-
}
599-
if (l && view instanceof HTMLInputElement && view.checked) {
600-
l.visibility = "visible";
584+
if (view instanceof HTMLInputElement && view.checked) {
601585
GetPalette();
602586
}
603587
}

petitnote/template/basic/js/dev/palette.min.js

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

petitnote/template/basic/js/dev/palette_en.js

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,6 @@ function Chenge_() {
365365

366366
if (isNaN(parseInt("0x" + st))) return;
367367
if (isNaN(parseInt("0x" + ed))) return;
368-
GradView();
369368
}
370369
function colorPickerChange() {
371370
const grad = document.forms.namedItem("grad");
@@ -583,15 +582,6 @@ async function GradSelC() {
583582
p_ed.options[n].style.color = pes[n];
584583
}
585584
}
586-
function GradView() {
587-
const grad = document.forms.namedItem("grad");
588-
if (!grad) {
589-
return;
590-
}
591-
const view = grad?.elements.namedItem("view");
592-
593-
if (view instanceof HTMLInputElement && !view.checked) return;
594-
}
595585
function showHideLayer() {
596586
//v3.0
597587
const grad = document.forms.namedItem("grad");
@@ -600,13 +590,7 @@ function showHideLayer() {
600590
}
601591
const view = grad?.elements.namedItem("view");
602592

603-
const psft = document.getElementById("psft");
604-
const l = psft ? psft.style : null;
605-
if (l && view instanceof HTMLInputElement && !view.checked) {
606-
l.visibility = "hidden";
607-
}
608-
if (l && view instanceof HTMLInputElement && view.checked) {
609-
l.visibility = "visible";
593+
if (view instanceof HTMLInputElement && view.checked) {
610594
GetPalette();
611595
}
612596
}

petitnote/template/basic/js/dev/palette_en.min.js

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

petitnote/template/basic/js/dev/palette_tw.js

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,6 @@ function Chenge_() {
355355

356356
if (isNaN(parseInt("0x" + st))) return;
357357
if (isNaN(parseInt("0x" + ed))) return;
358-
GradView();
359358
}
360359
function colorPickerChange() {
361360
const grad = document.forms.namedItem("grad");
@@ -573,15 +572,6 @@ async function GradSelC() {
573572
p_ed.options[n].style.color = pes[n];
574573
}
575574
}
576-
function GradView() {
577-
const grad = document.forms.namedItem("grad");
578-
if (!grad) {
579-
return;
580-
}
581-
const view = grad?.elements.namedItem("view");
582-
583-
if (view instanceof HTMLInputElement && !view.checked) return;
584-
}
585575
function showHideLayer() {
586576
//v3.0
587577
const grad = document.forms.namedItem("grad");
@@ -590,13 +580,7 @@ function showHideLayer() {
590580
}
591581
const view = grad?.elements.namedItem("view");
592582

593-
const psft = document.getElementById("psft");
594-
const l = psft ? psft.style : null;
595-
if (l && view instanceof HTMLInputElement && !view.checked) {
596-
l.visibility = "hidden";
597-
}
598-
if (l && view instanceof HTMLInputElement && view.checked) {
599-
l.visibility = "visible";
583+
if (view instanceof HTMLInputElement && view.checked) {
600584
GetPalette();
601585
}
602586
}

0 commit comments

Comments
 (0)