summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2017-09-20 16:15:18 -0400
committerPliable Pixels <pliablepixels@gmail.com>2017-09-20 16:15:18 -0400
commit676270d21beed31d767a06c89522198c77d5d865 (patch)
tree902772af01bfbcf80955f0351a5aae9eb029b9b0 /www/js
Initial commit
Diffstat (limited to 'www/js')
-rw-r--r--www/js/app.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/www/js/app.js b/www/js/app.js
new file mode 100644
index 00000000..09d5d48b
--- /dev/null
+++ b/www/js/app.js
@@ -0,0 +1,24 @@
+// Ionic Starter App
+
+// angular.module is a global place for creating, registering and retrieving Angular modules
+// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
+// the 2nd parameter is an array of 'requires'
+angular.module('starter', ['ionic'])
+
+.run(function($ionicPlatform) {
+ $ionicPlatform.ready(function() {
+ if(window.cordova && window.cordova.plugins.Keyboard) {
+ // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
+ // for form inputs)
+ cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
+
+ // Don't remove this line unless you know what you are doing. It stops the viewport
+ // from snapping when text inputs are focused. Ionic handles this internally for
+ // a much nicer keyboard experience.
+ cordova.plugins.Keyboard.disableScroll(true);
+ }
+ if(window.StatusBar) {
+ StatusBar.styleDefault();
+ }
+ });
+})