working mobile deploy
This commit is contained in:
@@ -17,15 +17,22 @@ html lang="en"
|
||||
link href="/images/apple-touch-icon.png" rel="apple-touch-icon-precomposed"
|
||||
link href="/favicon.ico" rel="shortcut icon"
|
||||
javascript:
|
||||
var QMobile;
|
||||
var data_host = 'http://localhost:3000';
|
||||
var root_url = 'file:///Users/bterkuile/Documents/workspace/Qwaiter/assets';
|
||||
var data_host = 'http://data.qwaiter.com';
|
||||
// Dummy holder when Qmobile object is not supplied by the mobile phone
|
||||
var QMobile, Qwaiter, Quser;
|
||||
QMobile || (QMobile = {
|
||||
scanQr: function(){window.location = '/select_qrcode'},
|
||||
activateRotation: function(){},
|
||||
mobile: function(){return false}
|
||||
mobile: function(){return false},
|
||||
authentication_string: function(){return this.authentication_string_storage},
|
||||
authentication_object: function(){return this.authentication_object_storage},
|
||||
setAuthToken: function(token){
|
||||
this.authentication_string_storage = 'auth_token='+token;
|
||||
this.authentication_object_storage = '{"auth_token": "'+token+'"}'
|
||||
},
|
||||
root_url: function(){return ''}
|
||||
});
|
||||
QMobile.setAuthToken('i5brDZ1HS1okoEq3pMyh');
|
||||
|
||||
body class=action_name
|
||||
.navbar.navbar-fixed-top
|
||||
|
||||
Reference in New Issue
Block a user