Skip to content

Commit 21c0d03

Browse files
author
nilshah98
committed
test function init
1 parent 723a658 commit 21c0d03

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎static/js/terminal.js‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
if (e.keyCode == 9) {
215215
e.preventDefault();
216216
var toAutocomplete = '';
217-
var ar_functionlist = Array('clear', 'cls', 'doge', 'dancer', 'help', 'planetarium', 'scrollTo', 'comicSans', 'helvetica', 'ieLove', 'weather', 'exit', 'lipsum', 'fbShare', 'twShare', 'latestTweets', 'likeasir', 'shades', 'reset', 'stl', 'newsletter', 'feedback', 'git');
217+
var ar_functionlist = Array('clear', 'cls', 'doge', 'dancer', 'help', 'planetarium', 'scrollTo', 'comicSans', 'helvetica', 'ieLove', 'weather', 'exit', 'lipsum', 'fbShare', 'twShare', 'latestTweets', 'likeasir', 'shades', 'reset', 'stl', 'newsletter', 'feedback', 'git', 'test');
218218
var ar_terminal_lines = $("#onlineTerminal").html().split("\n");
219219
var lastline = ar_terminal_lines[ar_terminal_lines.length - 1].toString().replace("\r", '').replace(String.fromCharCode('155'), '').trim();
220220
var ar_functionlist_length = ar_functionlist.length;
@@ -382,6 +382,7 @@
382382
response += ', <strong>stl()</strong>';
383383
response += ', <strong>pyDocs()</strong>';
384384
response += ', <strong>newsletter()</strong>';
385+
response += ', <strong>test()</strong>'
385386
response += ', <strong>feedback()</strong>';
386387
response += ', <strong>git()</strong>'
387388
response += ', <strong>ieLove()</strong>';
@@ -409,6 +410,7 @@
409410
if (customFunctionName == 'pyDocs') response = 'Opens Python reference material by Codecell team';
410411
if (customFunctionName == 'newsletter') response = 'Opens our exquisitive newsletter, written only for you !';
411412
if (customFunctionName == 'feedback') response = 'Opens up the perfect place, to showcase your love for us !';
413+
if (customFunctionName == 'test') response = 'Um... the less we speak about it, the better. All we say is, last step to get your certificates!';
412414
//if (customFunctionName == 'weather') response = 'Shows the weather forecast for the two days of JSConf 2014. It will be available only 5 days before the event.';
413415
}
414416
$("#onlineTerminal").html($("#onlineTerminal").html().trim() + '<span class="response">' + response + '</span>' + breakLine() + breakLine());
@@ -697,6 +699,10 @@
697699
window.open("https://goo.gl/forms/amv2ENHNwjms7Zqf2");
698700
}
699701

702+
function test() {
703+
window.open("");
704+
}
705+
700706
function latestTweets() {
701707
$("#onlineTerminal").html($("#onlineTerminal").html().trim() + '<span class="response">Getting the latest tweets from @jsconfar</span>' + breakLine() + breakLine());
702708
$.getJSON("http://cdn.syndication.twimg.com/widgets/timelines/512296174846349312?dnt=true&domain=unquietcode.com&lang=en&callback=?", function (data) {

0 commit comments

Comments
 (0)