Created
November 14, 2016 19:36
-
-
Save ninapavlich/bb07452db34106b8dedbb0450c17356e to your computer and use it in GitHub Desktop.
Minimal nshell implementation
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
var Kiosk = function(options, element) { | |
var callbacks = { | |
'data_ready_handler':handle_data_ready, | |
'kiosk_config_data_change_handler':handle_kiosk_config_data_change, | |
'kiosk_data_change_handler':handle_kiosk_data_change | |
} | |
kiosk_connector = new SimpleKioskConnector(options, callbacks) | |
this.states = kiosk_connector.states; | |
this.model = kiosk_connector.model; | |
this.options = options; | |
//This starts the bootstrapping | |
kiosk_connector.init(); | |
} | |
function handle_data_ready(config_json, content_json){ | |
//TODO | |
} | |
function handle_kiosk_config_data_change(config_json){ | |
//TODO | |
} | |
function handle_kiosk_data_change(content_json){ | |
//TODO | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment