|
214 | 214 | if (e.keyCode == 9) { |
215 | 215 | e.preventDefault(); |
216 | 216 | 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'); |
218 | 218 | var ar_terminal_lines = $("#onlineTerminal").html().split("\n"); |
219 | 219 | var lastline = ar_terminal_lines[ar_terminal_lines.length - 1].toString().replace("\r", '').replace(String.fromCharCode('155'), '').trim(); |
220 | 220 | var ar_functionlist_length = ar_functionlist.length; |
|
382 | 382 | response += ', <strong>stl()</strong>'; |
383 | 383 | response += ', <strong>pyDocs()</strong>'; |
384 | 384 | response += ', <strong>newsletter()</strong>'; |
| 385 | + response += ', <strong>test()</strong>' |
385 | 386 | response += ', <strong>feedback()</strong>'; |
386 | 387 | response += ', <strong>git()</strong>' |
387 | 388 | response += ', <strong>ieLove()</strong>'; |
|
409 | 410 | if (customFunctionName == 'pyDocs') response = 'Opens Python reference material by Codecell team'; |
410 | 411 | if (customFunctionName == 'newsletter') response = 'Opens our exquisitive newsletter, written only for you !'; |
411 | 412 | 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!'; |
412 | 414 | //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.'; |
413 | 415 | } |
414 | 416 | $("#onlineTerminal").html($("#onlineTerminal").html().trim() + '<span class="response">' + response + '</span>' + breakLine() + breakLine()); |
|
697 | 699 | window.open("https://goo.gl/forms/amv2ENHNwjms7Zqf2"); |
698 | 700 | } |
699 | 701 |
|
| 702 | + function test() { |
| 703 | + window.open(""); |
| 704 | + } |
| 705 | + |
700 | 706 | function latestTweets() { |
701 | 707 | $("#onlineTerminal").html($("#onlineTerminal").html().trim() + '<span class="response">Getting the latest tweets from @jsconfar</span>' + breakLine() + breakLine()); |
702 | 708 | $.getJSON("http://cdn.syndication.twimg.com/widgets/timelines/512296174846349312?dnt=true&domain=unquietcode.com&lang=en&callback=?", function (data) { |
|
0 commit comments