]> git.ipfire.org Git - thirdparty/google/fonts.git/commitdiff
do not allow tags with a score over 100
authorMarc Foley <m.foley.88@gmail.com>
Wed, 19 Feb 2025 11:17:48 +0000 (11:17 +0000)
committerMarc Foley <m.foley.88@gmail.com>
Tue, 4 Mar 2025 10:24:41 +0000 (10:24 +0000)
.ci/tags.html

index 7b50e17d9a4f5555a886178f2321c2b616927ce4..941a479f19d6a8a453485903696237533dfaf1af 100644 (file)
@@ -469,6 +469,10 @@ function axesCombos(axes) {
               alert("Please fill in all axis scores");
               return;
             }
+            if (vfTag.score > 100) {
+              alert("Summed score of axes must be less than 100")
+              return;
+            }
             for (let j=0; j<vfTag.axes.length; j++) {
               if (vfTag.axes[j].tag === "" || vfTag.axes[j].coords === "") {
                 alert("Please fill in all axis tags and coordinates");