Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Stanislas Polu
committed
Oct 24, 2014
1 parent
7e5e645
commit d9d7c9c
Showing
3 changed files
with
143 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
var async = require('async'); | ||
var common = require('../lib/common.js'); | ||
|
||
var _api = null; | ||
var _window = null; | ||
|
||
async.series([ | ||
function(cb_) { | ||
require('./base.js')(function(err, api) { | ||
_api = api; | ||
return cb_(err); | ||
}); | ||
}, | ||
function(cb_) { | ||
_window = _api.window({ | ||
size: { | ||
width: 1024, | ||
height: 768 | ||
} | ||
}); | ||
return cb_(); | ||
}, | ||
function(cb_) { | ||
_window.show(cb_); | ||
}, | ||
function(cb_) { | ||
_window.set_fullscreen(true, cb_); | ||
} | ||
], function(err) { | ||
if(err) { | ||
common.log.out('FAILED'); | ||
common.log.error(err); | ||
} | ||
common.log.out('OK'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
var async = require('async'); | ||
var common = require('../lib/common.js'); | ||
|
||
var _api = null; | ||
var _window = null; | ||
|
||
async.series([ | ||
function(cb_) { | ||
require('./base.js')(function(err, api) { | ||
_api = api; | ||
return cb_(err); | ||
}); | ||
}, | ||
function(cb_) { | ||
_window = _api.window({ | ||
size: { | ||
width: 1024, | ||
height: 768 | ||
} | ||
}); | ||
return cb_(); | ||
}, | ||
function(cb_) { | ||
_window.show(cb_); | ||
}, | ||
function(cb_) { | ||
_window.set_kiosk(true, cb_); | ||
} | ||
], function(err) { | ||
if(err) { | ||
common.log.out('FAILED'); | ||
common.log.error(err); | ||
} | ||
common.log.out('OK'); | ||
}); |