Formatting
This commit is contained in:
18
app.js
18
app.js
@@ -128,9 +128,9 @@ function calculate() {
|
||||
tBEl.value = tB.toPrecision(6);
|
||||
|
||||
resultEl.innerHTML = `
|
||||
<div class="ok">Calculated shutter speed for Camera B: <span class="mono">${prettyShutter(tB)}</span></div>
|
||||
<div style="margin-top:8px;">B now: <span class="mono">${formatISO(isoB)}, ${formatAperture(fB)}, ${prettyShutter(tB)}</span></div>
|
||||
`;
|
||||
<div class="ok">Calculated shutter speed for Camera B: <span class="mono">${prettyShutter(tB)}</span></div>
|
||||
<div style="margin-top:8px;">B now: <span class="mono">${formatISO(isoB)}, ${formatAperture(fB)}, ${prettyShutter(tB)}</span></div>
|
||||
`;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -144,9 +144,9 @@ function calculate() {
|
||||
isoBEl.value = Math.round(isoB).toString();
|
||||
|
||||
resultEl.innerHTML = `
|
||||
<div class="ok">Calculated ISO for Camera B: <span class="mono">${formatISO(isoB)}</span></div>
|
||||
<div style="margin-top:8px;">B now: <span class="mono">${formatISO(isoB)}, ${formatAperture(fB)}, ${prettyShutter(tB)}</span></div>
|
||||
`;
|
||||
<div class="ok">Calculated ISO for Camera B: <span class="mono">${formatISO(isoB)}</span></div>
|
||||
<div style="margin-top:8px;">B now: <span class="mono">${formatISO(isoB)}, ${formatAperture(fB)}, ${prettyShutter(tB)}</span></div>
|
||||
`;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -162,9 +162,9 @@ function calculate() {
|
||||
fBEl.value = fB.toFixed(2);
|
||||
|
||||
resultEl.innerHTML = `
|
||||
<div class="ok">Calculated aperture for Camera B: <span class="mono">${formatAperture(fB)}</span></div>
|
||||
<div style="margin-top:8px;">B now: <span class="mono">${formatISO(isoB)}, ${formatAperture(fB)}, ${prettyShutter(tB)}</span></div>
|
||||
`;
|
||||
<div class="ok">Calculated aperture for Camera B: <span class="mono">${formatAperture(fB)}</span></div>
|
||||
<div style="margin-top:8px;">B now: <span class="mono">${formatISO(isoB)}, ${formatAperture(fB)}, ${prettyShutter(tB)}</span></div>
|
||||
`;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user