Called here, and moving on to load Data from parse.com once the load promise for each of the required apps script functions is fulfilled.
$('#status').text("...getting google apps script modules");
$.when.apply($,loadModules (["vEquivalents","hacks","usefulColors"],"mcpher")).then (
function () {
var randomColor = randomBar();
// get the currently selected scheme, and if nothing entered yet, generate a random scheme
getSelectedScheme($('#schemeselector').val())
.done( function() {
if (!$('#hexinput').val()) calculateColors (rgbToHTMLHex(randomColor),"random color");
});
}, function (error) {
console.log(JSON.stringify(error));
});
bruce mcpherson is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. Based on a work at http://www.mcpher.com. Permissions beyond the scope of this license may be available at code use guidelines