let element = id('mydiv'); // id() is element Selector by id
let style = getComputedStyle(element);
let eleHeight = parseInt(style.height);
I know I can get any style value using the js code above.
Now focus on the following.
function getCSS(css, element) {
return parseInt(getComputedStyle(element).css);
}
// usage
let eleHeight = getCSS('height', id('mydiv')); // but it will return 'NaN'
I am trying to create my own instantiated function to do this. Please make it workable
http://anyweb.ext/media/filename.mp4?key=XXXX