Skip to content

Commit d1683ab

Browse files
committed
git references added
1 parent 0000460 commit d1683ab

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
@@ -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', 'stl', 'newsletter', 'feedback');
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','git');
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;
@@ -332,6 +332,7 @@
332332
response += ', <strong>pyDocs()</strong>';
333333
response += ', <strong>newsletter()</strong>';
334334
response += ', <strong>feedback()</strong>';
335+
response += ', <strong>git()</strong>'
335336
response += ', <strong>ieLove()</strong>';
336337
// response += ', <strong>weather()</strong>';
337338
response += ' or any javascript will work.'+breakLine()+breakLine()+'For more info <strong>help(\'functionName\')</strong>. e.g. <strong>help(\'doge\')</strong>';
@@ -353,6 +354,7 @@
353354
if (customFunctionName == 'shades') response = 'See the world through the eyes of a douchebag.';
354355
if (customFunctionName == 'twShare') response = 'Share Codecell with you friends on Twitter.';
355356
if (customFunctionName == 'stl') response = 'Opens STL Reference material by Codecell team';
357+
if (customFunctionName == 'git') response = 'Opens Git-Github Reference material by Codecell team';
356358
if (customFunctionName == 'pyDocs') response = 'Opens Python reference material by Codecell team';
357359
if (customFunctionName == 'newsletter') response = 'Opens our exquisitive newsletter, written only for you !';
358360
if (customFunctionName == 'feedback') response = 'Opens up the perfect place, to showcase your love for us !';
@@ -514,6 +516,10 @@
514516
function stl(){
515517
window.open("http://www.kjscecodecell.com/standard-library-in-x/");
516518
}
519+
520+
function git(){
521+
window.open("https://www.kjscecodecell.com/Git-CheatSheet/");
522+
}
517523
function pyDocs(){
518524
window.open("http://www.kjscecodecell.com/Introduction-to-programming/python/");
519525
}

0 commit comments

Comments
 (0)