|
@@ -16,9 +16,12 @@ const onMetricChange = (elements) => {
|
|
|
elements.mean.disabled = kind !== "mean";
|
|
|
elements.statistic.disabled = kind !== "statistic";
|
|
|
elements.sortMetric.value = elements[kind].value;
|
|
|
+
|
|
|
+ sortImages();
|
|
|
+ showResults(selectors.sortControl.resultsToDisplay.value);
|
|
|
};
|
|
|
|
|
|
-const syncColorInputs = (inputValue) => {
|
|
|
+const onColorChange = (inputValue) => {
|
|
|
console.log(inputValue);
|
|
|
const colorInput = "#" + (inputValue?.replace("#", "") ?? "FFFFFF");
|
|
|
|
|
@@ -34,6 +37,22 @@ const syncColorInputs = (inputValue) => {
|
|
|
const refomatted = rgb.formatHex();
|
|
|
selectors.sortControl.colorText.value = refomatted;
|
|
|
selectors.sortControl.colorPicker.value = refomatted;
|
|
|
+
|
|
|
+ scoreImages();
|
|
|
+ sortImages();
|
|
|
+ showResults(selectors.sortControl.resultsToDisplay.value);
|
|
|
+};
|
|
|
+
|
|
|
+const scoreImages = () => {
|
|
|
+ // TODO
|
|
|
+};
|
|
|
+
|
|
|
+const sortImages = () => {
|
|
|
+ // TODO
|
|
|
+};
|
|
|
+
|
|
|
+const showResults = (resultsToDisplay) => {
|
|
|
+ // TODO
|
|
|
};
|
|
|
|
|
|
window.onload = () => {
|