mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-04-24 03:00:11 -04:00
24 lines
501 B
JavaScript
24 lines
501 B
JavaScript
/*
|
|
* SplashScreen.js
|
|
*
|
|
* Created by André Fiedler on 07.01.11.
|
|
* Copyright 2011 André Fiedler, <fiedler.andre at gmail dot com>
|
|
* MIT licensed
|
|
*/
|
|
|
|
function SplashScreen() {}
|
|
|
|
SplashScreen.prototype.show = function() {
|
|
PhoneGap.exec('SplashScreen.show');
|
|
};
|
|
|
|
SplashScreen.prototype.hide = function() {
|
|
PhoneGap.exec('SplashScreen.hide');
|
|
};
|
|
|
|
PhoneGap.addConstructor(function() {
|
|
if(!window.plugins) {
|
|
window.plugins = {};
|
|
}
|
|
window.plugins.splashScreen = new SplashScreen();
|
|
}); |