| var app = { |
| |
| // Application Constructor |
| initialize: function() { |
| document.addEventListener('deviceready', this.onDeviceReady.bind(this), false); |
| }, |
| |
| onDeviceReady: function() { |
| var uid = window.localStorage.getItem("uid"); |
| var phone = window.localStorage.getItem("phoneX"); |
| |
| }, |
| editPwd: function() { |
| window.location = "editpwd.html"; |
| }, |
| toPayPwd: function() { |
| window.location = "paypwdmng.html"; |
| }, |
| logout:function(){ |
| window.localStorage.removeItem("token"); |
| window.location = "login.html"; |
| } |
| }; |
| app.initialize(); |