Testing Tabletop JS

From ReadMe example: https://github.com/jsoma/tabletop

by BaronGrivet

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/tabletop.js/1.5.2/tabletop.min.js"></script>
<div id="data">
<strong>Data should appear here: </strong>
</div>

JavaScript

function init() {
Tabletop.init( { key: 'https://docs.google.com/spreadsheets/d/1atRxZ4IgQPo5z5-DV7okHdtml8e3VdPjpuiEhwvU8FI/pubhtml',
  callback: function(data, tabletop) { 
    console.log(data)
    document.getElementById('data').innerHTML += data
  },
  simpleSheet: true } )
}
init()