/* Updated versions can be found at https://github.com/mikeymckay/google-spreadsheet-javascript */var GoogleSpreadsheet, GoogleUrl; GoogleUrl = (function() { function GoogleUrl(sourceIdentifier) { this.sourceIdentifier = sourceIdentifier; if (this.sourceIdentifier.match(/http(s)*:/)) { this.url = this.sourceIdentifier; try { this.key = this.url.match(/key=(.*?)&/)[1]; } catch (error) { this.key = this.url.match(/(cells|list)\/(.*?)\//)[2]; } } else { this.key = this.sourceIdentifier; } this.jsonCellsUrl = "http://spreadsheets.google.com/feeds/cells/" + this.key + "/od6/public/basic?alt=json-in-script"; this.jsonListUrl = "http://spreadsheets.google.com/feeds/list/" + this.key + "/od6/public/basic?alt=json-in-script"; this.jsonUrl = this.jsonCellsUrl; } return GoogleUrl; })(); GoogleSpreadsheet = (function() { function GoogleSpreadsheet() {} GoogleSpreadsheet.prototype.load = function(callback) { var intervalId, jsonUrl, safetyCounter, url, waitUntilLoaded; url = this.googleUrl.jsonCellsUrl + "&callback=GoogleSpreadsheet.callbackCells"; $('body').append("