|
190 | 190 | if (e.keyCode == 9) { |
191 | 191 | e.preventDefault(); |
192 | 192 | 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'); |
194 | 194 | var ar_terminal_lines = $("#onlineTerminal").html().split("\n"); |
195 | 195 | var lastline = ar_terminal_lines[ar_terminal_lines.length-1].toString().replace("\r", '').replace(String.fromCharCode('155'), '').trim(); |
196 | 196 | var ar_functionlist_length = ar_functionlist.length; |
|
328 | 328 | response += ', <strong>scrollTo()</strong>'; |
329 | 329 | response += ', <strong>shades()</strong>'; |
330 | 330 | response += ', <strong>twShare()</strong>'; |
| 331 | + response += ', <strong>stl()</strong>'; |
| 332 | + response += ', <strong>newsletter()</strong>'; |
| 333 | + response += ', <strong>feedback()</strong>'; |
331 | 334 | response += ', <strong>ieLove()</strong>'; |
332 | 335 | // response += ', <strong>weather()</strong>'; |
333 | 336 | response += ' or any javascript will work.'+breakLine()+breakLine()+'For more info <strong>help(\'functionName\')</strong>. e.g. <strong>help(\'doge\')</strong>'; |
|
348 | 351 | if (customFunctionName == 'scrollto') response = 'It takes you to the specified object. E.g. <strong>scrollTo(\'footer\')</strong>. Much better than clicking. Isn\'t it?'; |
349 | 352 | if (customFunctionName == 'shades') response = 'See the world through the eyes of a douchebag.'; |
350 | 353 | 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 !'; |
351 | 357 | //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.'; |
352 | 358 | } |
353 | 359 | $("#onlineTerminal").html($("#onlineTerminal").html().trim()+'<span class="response">'+response+'</span>'+breakLine()+breakLine()); |
|
503 | 509 | $("#onlineTerminal").html($("#onlineTerminal").html().trim()+'<span class="response">Please allow popups in your browser</span>'+breakLine()+breakLine()); |
504 | 510 | //ga( 'send', 'event', 'toys', 'terminal', 'twShare'); |
505 | 511 | } |
| 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 | + } |
506 | 521 | function latestTweets() { |
507 | 522 | $("#onlineTerminal").html($("#onlineTerminal").html().trim()+'<span class="response">Getting the latest tweets from @jsconfar</span>'+breakLine()+breakLine()); |
508 | 523 | $.getJSON("http://cdn.syndication.twimg.com/widgets/timelines/512296174846349312?dnt=true&domain=unquietcode.com&lang=en&callback=?", function(data) { |
|
0 commit comments