Skip to content

Commit b583182

Browse files
author
neel
committed
terminal.js updated
1 parent d567a94 commit b583182

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

‎static/js/terminal.js‎

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
if (e.keyCode == 9) {
191191
e.preventDefault();
192192
var toAutocomplete = '';
193-
var ar_functionlist = Array('clear', 'cls', 'doge', 'dancer', 'help', 'planetarium', 'scrollTo', 'comicSans', 'helvetica', 'ieLove', 'weather', 'exit', 'lipsum', 'fbShare', 'twShare', 'latestTweets', 'likeasir', 'shades', 'reset');
193+
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');
194194
var ar_terminal_lines = $("#onlineTerminal").html().split("\n");
195195
var lastline = ar_terminal_lines[ar_terminal_lines.length-1].toString().replace("\r", '').replace(String.fromCharCode('155'), '').trim();
196196
var ar_functionlist_length = ar_functionlist.length;
@@ -328,6 +328,9 @@
328328
response += ', <strong>scrollTo()</strong>';
329329
response += ', <strong>shades()</strong>';
330330
response += ', <strong>twShare()</strong>';
331+
response += ', <strong>stl()</strong>';
332+
response += ', <strong>newsletter()</strong>';
333+
response += ', <strong>feedback()</strong>';
331334
response += ', <strong>ieLove()</strong>';
332335
// response += ', <strong>weather()</strong>';
333336
response += ' or any javascript will work.'+breakLine()+breakLine()+'For more info <strong>help(\'functionName\')</strong>. e.g. <strong>help(\'doge\')</strong>';
@@ -348,6 +351,9 @@
348351
if (customFunctionName == 'scrollto') response = 'It takes you to the specified object. E.g. <strong>scrollTo(\'footer\')</strong>. Much better than clicking. Isn\'t it?';
349352
if (customFunctionName == 'shades') response = 'See the world through the eyes of a douchebag.';
350353
if (customFunctionName == 'twShare') response = 'Share Codecell with you friends on Twitter.';
354+
if (customFunctionName == 'stl') response = 'Opens STL Reference material by Codecell team';
355+
if (customFunctionName == 'newsletter') response = 'Opens our exquisitive newsletter, written only for you !';
356+
if (customFunctionName == 'feedback') response = 'Opens up the perfect place, to showcase your love for us !';
351357
//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.';
352358
}
353359
$("#onlineTerminal").html($("#onlineTerminal").html().trim()+'<span class="response">'+response+'</span>'+breakLine()+breakLine());
@@ -503,6 +509,15 @@
503509
$("#onlineTerminal").html($("#onlineTerminal").html().trim()+'<span class="response">Please allow popups in your browser</span>'+breakLine()+breakLine());
504510
//ga( 'send', 'event', 'toys', 'terminal', 'twShare');
505511
}
512+
function stl(){
513+
window.open("http://www.kjscecodecell.com/standard-library-in-x/");
514+
}
515+
function newsletter(){
516+
window.open("https://www.kjscecodecell.com/newsletters/");
517+
}
518+
function feedback(){
519+
window.open("https://docs.google.com/forms/d/e/1FAIpQLSfTynr8BuRkcfYi-yC60fQQP21X6L2_vf0bVihlaIBmYEuesA/viewform");
520+
}
506521
function latestTweets() {
507522
$("#onlineTerminal").html($("#onlineTerminal").html().trim()+'<span class="response">Getting the latest tweets from @jsconfar</span>'+breakLine()+breakLine());
508523
$.getJSON("http://cdn.syndication.twimg.com/widgets/timelines/512296174846349312?dnt=true&domain=unquietcode.com&lang=en&callback=?", function(data) {

0 commit comments

Comments
 (0)