Browse Source

Fix breath post name, max to 5000

Rorist 6 years ago
parent
commit
12fa7c931c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      main.js
  2. 1 1
      trigger.html

+ 1 - 1
main.js

@@ -216,7 +216,7 @@ function setTheBreathSpeed() {
         var requestObject = new XMLHttpRequest();
         requestObject.open("POST", requestUrl, true);
         requestObject.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
-        requestObject.send("breath=" + breathValue);
+        requestObject.send("breathe=" + breathValue);
     //    lastBreathValue = breathValue;
     //}
     document.getElementById("breathValue").innerText = breathValue;

+ 1 - 1
trigger.html

@@ -61,7 +61,7 @@
         <br/>
         <div id="breathBox">
             <label for="breathSlider">Breath:</label>
-            <input type="range" value=0 min=0 max=10000 step=100 onchange="setTheBreathSpeed()" id="breathSlider" class="breathSlider">
+            <input type="range" value=0 min=0 max=5000 step=100 onchange="setTheBreathSpeed()" id="breathSlider" class="breathSlider">
             <span id="breathValue">0</span>
         </div>
       </fieldset>