cloudinary-video-player
Version:
Cloudinary Video Player
16 lines (12 loc) • 308 B
JavaScript
const wrap = (el, wrapper) => {
el.parentNode.insertBefore(wrapper, el);
wrapper.appendChild(el);
return wrapper;
};
const setWidth = (el, width) => {
el.style.width = `${width}px`;
};
const setHeight = (el, height) => {
el.style.height = `${height}px`;
};
export { wrap, setWidth, setHeight };