1 Wrapper
KaKi87 edited this page 2018-11-01 19:37:40 +01:00

Wrapper

Methods

  • wrapper.progress(callback) : show (fake) progress bar with "initiating" and "acquiring" items
  • wrapper.load(callback) : open the wrapper
  • wrapper.unload(callback) : close the wrapper
  • wrapper.status(string) : show wrapper label

Processes

Init

wrapper.init();

  1. Show progress bar
  2. Show status "connection established"
  3. Open the wrapper
  4. Output welcome message

Shutdown

wrapper.shutdown();

  1. Show 5s countdown
  2. Close the wrapper
  3. Show status "samaritan offline" in red
  4. Empty DOM with black body