diff --git a/docs/index.html b/docs/index.html index d09f074..125665c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2,7 +2,7 @@ - + Java Versions Cheat Sheet @@ -20,8 +20,8 @@ - - + +
@@ -1362,5 +1362,5 @@
Java 26 / Java SE 26
Creative Commons Attribution-ShareAlike License
- + \ No newline at end of file diff --git a/docs/script.js b/docs/script.js index 9aedf2d..63743b5 100644 --- a/docs/script.js +++ b/docs/script.js @@ -20,8 +20,11 @@ $(function() { $("#jvcstable span.latest-build").each(function() { var releaseDateStr = $(this).data("release-date"); if (releaseDateStr) { - if (daysDiff(now, new Date(releaseDateStr)) < 90) { - $(this).after(" ", "NEW"); + var days = daysDiff(now, new Date(releaseDateStr)); + if (days <= 90) { + var msg = "This build was released " + days + (days == 1 ? " day" : " days") + " ago"; + var clr = Math.floor(102 + 102 * (90 - days) / 90); + $(this).after(" ", "NEW"); } } }); diff --git a/docs/styles.css b/docs/styles.css index cbf0168..aa320c0 100644 --- a/docs/styles.css +++ b/docs/styles.css @@ -28,7 +28,7 @@ footer .fa-li i { font-size: 110%; vertical-align: -5%; } .jv-extra-info { font-size: 82%; font-weight: 700; margin-top: 0.6em; margin-bottom: 0.3em; } .jv-ico-right { padding-left: 0.2em; } .jv-lts.badge { background-color: #0000ee; font-size: 76%; font-weight: 700; padding-top: 0.4em; padding-bottom: 0.38em; vertical-align: 12%; } -.jv-new.badge { background-color: #228b22; font-size: 64%; font-weight: 500; padding-top: 0.4em; padding-bottom: 0.38em; vertical-align: 18%; } +.jv-new.badge { background-color: #009900; font-size: 64%; font-weight: 500; padding-top: 0.4em; padding-bottom: 0.38em; vertical-align: 18%; } .jv-sep { color: #90979d; font-size: 130%; vertical-align: -5%; line-height: 1; } .jv-status { font-size: 112%; margin-right: 0.25em; vertical-align: -6%; } .jv-status.jv-current { color: #00d800; }