Last active
August 29, 2015 13:57
-
-
Save mapsam/9512308 to your computer and use it in GitHub Desktop.
using tabletop.js for spreadsheet access
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// tabletop.js is linked above | |
function init() { | |
var json = []; //prented this is a geojson and not just an array | |
Tabletop.init({ | |
key: '0AkE-VGwUGzsSdHRjTmtNMXhONjYxQUxnOV9SajY4VkE', | |
callback: function(data, tabletop) { | |
var entries = []; | |
$.each(data, function(key, val) { | |
json.push(val.name, val.number); | |
console.log(val.name, val.number); | |
}); | |
mapIt(json); | |
}, | |
simpleSheet: true, | |
}); | |
function mapIt(groups) { | |
var groupLength = groups.length; | |
for (mug=0; mug<groupLength; mug++) { | |
console.log(groups[mug]); | |
} | |
} | |
} | |
window.onLoad = init(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment