A Cordova/PhoneGap plugin to open and use sqlite databases on Android, iOS and Windows with HTML5/Web SQL API
2.15k
stars
716
forks
source link
// default settings
var settings = { version: "1.0", startNo: 0 };
function LoadSettings()
{
var tmp = JSON.parse(app.LoadText( "settings", "{}" ));
// update settings object
for(var i in tmp) settings[i] = tmp[i];
}
function SaveSettings()
{
app.SaveText( "settings", JSON.stringify(settings) );
}
function OnStart()
{
LoadSettings();
settings.startNo++;
app.ShowPopup("Started " + settings.startNo + ". time");
SaveSettings();
} #974
Open
Chutanee opened 3 years ago