wowtoken.app

git clone https://git.emily.sh/wowtoken-app/wowtoken.app.git
Log | Files | Refs | README | LICENSE

lowTime.js (507B)


      1 import Datum from "./datum";
      2 
      3 function updateLowTime() {
      4     const lowTime= document.getElementById("low-time");
      5 
      6     const currentTime = document.getElementById("time").selectedOptions[0].innerText;
      7     if (currentTime.toLowerCase() !== lowTime.innerText) {
      8         lowTime.innerText = currentTime.toLowerCase();
      9     }
     10 }
     11 
     12 function updateLowVal(datum) {
     13     const lowVal = document.getElementById("low-val");
     14     lowVal.innerHTML = datum.getPrice().toLocaleString();
     15 }
     16 
     17 export {updateLowTime, updateLowVal};