A 220b spreadsheet app in HTML/JS
21–30 of 105 posts
Re: A 220b spreadsheet app in HTML/JS
#22Re: A 220b spreadsheet app in HTML/JS
#23Re: A 220b spreadsheet app in HTML/JS
#24Re: A 220b spreadsheet app in HTML/JS
#25=1;alert("Hi")
I guess you would have to sanitize when you save and/or load the spreadsheet
Re: A 220b spreadsheet app in HTML/JS
#26There's a nice comment from the author in an AMA about how this project contained one of his best coding moments: https://github.com/xem/ama/issues/14#issuecomment-123275496
Re: A 220b spreadsheet app in HTML/JS
#27Doesn't work with decimals.
Re: A 220b spreadsheet app in HTML/JS
#28Re: A 220b spreadsheet app in HTML/JS
#29Fits in a tweet!
Re: A 220b spreadsheet app in HTML/JS
#30Initially, I wa puzzled by how the grid could be showing placeholders (the grey "A1", "A2", etc.) when there's no placeholder attribute defined in the source code. Then I discovered that the code running in the demo is not actually the showcased 220-byte source code at all. The code is still impressively small, but you should fix this — it's misleading as is.
To be fair, it only adds an extra 18 chars, taking it up to 238-byte in size.
EDIT Here it is once you add the extra property:
(o=b=>{for(j in a)for(i in a)y=a[i]+-~j,b?document.write([[""][i]]+""):eval(y+(".value"+o[y]).replace(/[A-Z]\d/g," +$&.value"))})(a="ABCD")