From 22bd5123fbca06b3f9ca06ea4038dc00c2451ee0 Mon Sep 17 00:00:00 2001 From: Jon Sneyers Date: Sat, 7 Sep 2024 15:19:11 +0200 Subject: [PATCH] change initial comparison views, disable sparkly stuff --- new/JPEGvsJXL.js | 12 ++++++------ new/index.html | 23 +++++++++++++---------- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/new/JPEGvsJXL.js b/new/JPEGvsJXL.js index b1a042f3..f1101d7f 100644 --- a/new/JPEGvsJXL.js +++ b/new/JPEGvsJXL.js @@ -254,14 +254,14 @@ document.addEventListener("DOMContentLoaded", () => { ]).then(() => { // After both data sets are loaded, initialize the display const initialSizeSliderValue = elements.mySizeRange.value; - // const initialQualitySliderValue = elements.myQualityRange.value; - displayData(imagesSizeArray, initialSizeSliderValue, 'JPEGCompareSize'); - // displayData(imagesQualityArray, initialQualitySliderValue, 'JPEGCompareQuality'); + const initialQualitySliderValue = elements.myQualityRange.value; + // displayData(imagesSizeArray, initialSizeSliderValue, 'JPEGCompareSize'); + displayData(imagesQualityArray, initialQualitySliderValue, 'JPEGCompareQuality'); - // Ensure the first tab is active + // Ensure the initial tab is active const jpegTabs = document.querySelector('.jpeg-jxl-tabs'); - jpegTabs.querySelector('.tabs__button[data-for-tab="jpeg-size"]').classList.add('tabs__button-active'); - jpegTabs.querySelector('.tabs__content[data-tab="jpeg-size"]').classList.add('tabs__content-active'); + jpegTabs.querySelector('.tabs__button[data-for-tab="jpeg-quality"]').classList.add('tabs__button-active'); + jpegTabs.querySelector('.tabs__content[data-tab="jpeg-quality"]').classList.add('tabs__content-active'); }); setupTabs(); // Initial data display diff --git a/new/index.html b/new/index.html index a5dadd9d..dcbfc8ea 100644 --- a/new/index.html +++ b/new/index.html @@ -1804,12 +1804,12 @@

JXL Info:

- -
-
+

Size:

@@ -1819,7 +1819,7 @@
KB
SSIMU2: 99.9
- +

Med-Low

Medium

@@ -1836,7 +1836,7 @@
KB
SSIMU2: 99.9
-
+

SSIMU2 SCORE:

@@ -1845,7 +1845,7 @@
72.5
300  KB
- +

Small

Medium

@@ -2204,7 +2204,7 @@
KB
SSIMU2: 99.9
-

Med-Low

@@ -2231,7 +2231,7 @@
72.5
300  KB
- +

Small

Medium

@@ -2763,7 +2763,10 @@

Photographic & Non-pho
+ JPEG XL and the JPEG XL Community.
+ Do you want to update something on this website? Make a pull request!
+ The old version of this website is archived here. +