Advertisement
Guest User

Minimalist Javascript Spreadsheet (xem.github.io/sheet)

a guest
Sep 28th, 2017
1,551
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.86 KB | None | 0 0
  1. <html>
  2.     <body>
  3.     <script>
  4.         (o = b => {
  5.             for (j in a) {
  6.                 for(i in a) {
  7.                     y = a[i] + -~j,
  8.                     b
  9.                         ? document.write(
  10.                             [["<p>"][i]] + '\
  11.                                 <input\
  12.                                    onfocus="value=[o[id]]"\
  13.                                    onblur="o[id]=value;o()"\
  14.                                    id='+y+'\
  15.                                >\
  16.                             '
  17.                           )
  18.                         : eval(
  19.                             y + (".value"+o[y]).replace(
  20.                                     /[A-Z]\d/g, " +$&.value"
  21.                                )
  22.                        )
  23.                }
  24.            }
  25.        })(a="ABCD")
  26.    </script>
  27.    </body>
  28. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement