∑
Vivid Calc
Expression parser • keyboard-first • history
Enter=eval
•
Esc=clear
•
⌫=backspace
0
Ready
Expression parser • keyboard-first • history
Expression parser · keyboard-first · history
Vivid Calc is a browser-based calculator that evaluates full mathematical expressions — not just button-by-button arithmetic. Type a whole expression like 3^2 + (5*4) - 7%2 and get the precise result instantly.
sessionStorage, persists across reloads within
the same tab session
while loop, greedily consuming multi-digit
numbers and classifying symbols into typed token objects
stack and output
queue to handle precedence, left/right
associativity, and parentheses
null, after
(, or after another operator,
- becomes u- with higher precedence
click listener on the key grid reads
data-value / data-action attributes
instead of binding per-button
keydown listener maps digit, operator, and
control keys to the same inputValue /
doAction functions used by the UI buttons
localStorage;
the info popup "seen" flag uses sessionStorage so
it reappears each new tab session
Number.EPSILON trick to
suppress floating-point noise like
0.30000000000004
element.animate() with a keyframe array for a
native, GPU-accelerated nudge effect
@keyframes with staggered
animation-delay and
mix-blend-mode: multiply for painterly depth
backdrop-filter: blur, subtle
border strokes, and layered box shadows
translateY(-2px) + elevated shadow — and a subtle
scale-down on :active
@media breakpoint