2013-11-19 14:01:31 +02:00
|
|
|
( function() {
|
2013-11-19 12:43:12 +02:00
|
|
|
|
2013-11-19 14:01:31 +02:00
|
|
|
win = null;
|
2013-11-19 12:55:35 +02:00
|
|
|
|
2013-11-19 14:01:31 +02:00
|
|
|
module.exports = {
|
|
|
|
|
show: function() {
|
|
|
|
|
if ( win === null ) {
|
|
|
|
|
win = window.open('splashscreen.html');
|
|
|
|
|
}
|
|
|
|
|
},
|
2013-11-19 12:55:35 +02:00
|
|
|
|
2013-11-19 14:01:31 +02:00
|
|
|
hide: function() {
|
|
|
|
|
if ( win !== null ) {
|
2013-11-19 12:55:35 +02:00
|
|
|
win.close();
|
|
|
|
|
win = null;
|
2013-11-19 12:43:12 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
require("cordova/tizen/commandProxy").add("SplashScreen", module.exports);
|
2013-11-19 14:01:31 +02:00
|
|
|
|
|
|
|
|
})();
|