code: function relative_px(type, value) {
            var w = window,
              d = document,
              e = d.documentElement,
              g = d.body,
              x = w.innerWidth || e.clientWidth || g.clientWidth,
              y = w.innerHeight || e.clientHeight || g.clientHeight;
  
            if (type === 'vw') {
              return (x * parseFloat(value)) / 100;
            } else if (type === 'vh') {
              return (y * parseFloat(value)) / 100;
            } else {
              return undefined;
            }
          }
docs: Converts vw or vh to PX