/examples/web/terminal/static/js/main.js

https://bitbucket.org/prologic/circuits/ · JavaScript · 9 lines · 8 code · 1 blank · 0 comment · 0 complexity · 3694f95f0ac631c00eb5633138aab314 MD5 · raw file

  1. var options = {
  2. custom_prompt: ">>> ",
  3. hello_message: "Welcome! Type \'help\' for, well, help."
  4. }
  5. function main() {
  6. $("#terminal").height($(document).height());
  7. $("#terminal").terminal("/", options);
  8. }