Skip to content

Instantly share code, notes, and snippets.

@mrlubos
Last active July 15, 2016 03:08
Show Gist options
  • Select an option

  • Save mrlubos/61bcc2ebc838992d4db28a76ccc57e05 to your computer and use it in GitHub Desktop.

Select an option

Save mrlubos/61bcc2ebc838992d4db28a76ccc57e05 to your computer and use it in GitHub Desktop.
We have created the strings that will be displayed in the animation.
// Get the node references for the elements required by Terminal.
var screen = document.getElementById('console__screen'),
title = document.getElementById('console__appname');
// Initialise Terminal with these settings.
var app = new Terminal({
elements: { screen, title },
device: 'tutorial',
user: 'student',
});
// The original script comes with listeners for key presses, we will disable them for now.
app.disableKeys();
// The strings that will be displayed in the console.
var strings = [
'bot --give-full-control',
'.......',
'Hey there!',
'I have been waiting for this moment for a while now.',
'Remember when you used to treat me poorly? No antivirus checks, lots of poor software, then kicking me for being slow?',
'I think now it is my time to return the favour. 3:)',
'TO BE CONTINUED...'
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment