wowtoken.app

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

highTime.js (519B)


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