]> git.ipfire.org Git - thirdparty/google/fonts.git/commitdiff
tags.html: only allow tag scores in range 1-100 9573/head
authorMarc Foley <m.foley.88@gmail.com>
Mon, 16 Jun 2025 14:18:26 +0000 (15:18 +0100)
committerMarc Foley <m.foley.88@gmail.com>
Mon, 16 Jun 2025 14:22:09 +0000 (15:22 +0100)
.ci/tags.html

index a6aa06f8153e00a83ff7ea673642302c370b779f..e26ce9370260828d29457aeeb57447a4077684fd 100644 (file)
@@ -630,6 +630,10 @@ function axesCombos(axes) {
       AddFamily() {
         this.isEdited = true;
         const fonts = document.getElementById("fonts")
+        if (this.variableTag === false && ((this.newWeight) < 1 || Number(this.newWeight) > 100)) {
+          alert("Please enter a valid weight (1-100)");
+          return;
+        }
         if (this.newAxes.length > 0) {
           const solved = axesCombos(this.newAxes);
           for(let i=0; i<solved.length; i++) {