Fork me on GitHub

Sheet

A 220b spreadsheet app in HTML/JS

Inspired by aem1k.com/sheet
Golfed by xem, subzey, p01, rlauck, aemkei
Related AMA answer

Code:

<script>(o=b=>{for(j in a)for(i in a)y=a[i]+-~j,b?document.write([["<p>"][
i]]+"<input onfocus=value=[o[id]] onblur=o[id]=value;o() id="+y+">"):eval(
y+(".value"+o[y]).replace(/[A-Z]\d/g," +$&.value"))})(a="ABCD")</script>

Demo:

Cells can contain text, numbers or formulas.
Formulas start with =. Example: "=A1+8*B2".



Source:

aem1k's version, trimmed (272b)

new version, mini (220b)

new version with labels and localStorage (256b)




© 2014-2016 The Codegolf Team