'How can I apply dynamic values to my var's width and height?

I am setting up a var to be reused, and the element it's referencing (#indicator) uses a scaling/dynamic width and height via CSS (e.g. 5vw). I want to set its dimensions for further functions but I can't figure out how to apply vw or vh as the value currently assumes px.

var indicator = { 
     el:$(‘#indicator’),
     w:120, 
     h:120
}

I am looking at a conversion option, but I am not sure that is the way to go, or rather how to apply it.

Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
  return (v * h) / 100


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source