/* * Here we will need several levels of storage: * - state * this can be anything including file or localstorage. * this is stored in a unified location. * global per user/instance * - progress * this is stored in file location as local config file. * */ function loadJSONfile(path, dfl, escape_urls){ if(escape_urls == null){ escape_urls = false } // XXX CEF (file) - binding if(CEF_loadJSON != null){ var data = CEF_loadJSON(path) } // XXX PhoneGap (file) - binding // XXX browser - open file dialog if(data == null){ return dfl } // escape the URLs... // XXX need to make ths universal for all urls within the image object... if(escape_urls == true){ var ribbons = data.ribbons for(var i=0; i