JSFiddle - React, Tailwind, and code Playground

by BurpmanJunior

JavaScript

/**
 * EC Formula height calc
 */

var ox = 1166,
    oy = 732;

var eWidth  = 0,
    eHeight = 0,
    eX		= 0,
    eY		= 0;

console.log(
    'Width: %s\nHeight: %s\nLeft: %s\nTop: %s',
    (eWidth / ox) * 100,
    (eHeight / ox) * 100,
    (eX / ox) * 100,
    (eY / oy) * 100
);