|
295 | 295 | if (func_options == "clear") { |
296 | 296 | $('.dogeText').remove(); |
297 | 297 | } else { |
298 | | - av_doge_texts = Array('wow', 'much code', 'much CodeCell', 'so CodeCell', 'so code', 'very CodeCell', 'very programmer', 'd0g3 l337 h4x0r', 'wow', 'wow'); |
| 298 | + av_doge_texts = Array('Sagar?', 'much code', 'much CodeCell', 'so CodeCell', 'so code', 'very CodeCell', 'very programmer', 'd0g3 l337 h4x0r', 'Whats Doge?', 'wow'); |
299 | 299 | av_doge_colors = Array('red', 'blue', 'yellow', 'pink', 'orange', 'green', 'purple', 'cyan'); |
300 | 300 | $("body").append('<div style="font-family:\'Comic Sans MS\', cursive, sans-serif;font-size:70px;line-height:44px;position:absolute;z-index:300;top:'+(Math.floor(Math.random()*$(window).height()+$(document).scrollTop()-300)+100)+'px;left:'+(Math.floor(Math.random()*$(window).width()-400)+100)+'px;color:'+av_doge_colors[Math.floor(Math.random()*av_doge_colors.length)]+'" class="dogeText">'+av_doge_texts[Math.floor(Math.random()*av_doge_texts.length)]+'</div>'); |
301 | 301 | } |
|
328 | 328 | response += ', <strong>scrollTo()</strong>'; |
329 | 329 | response += ', <strong>shades()</strong>'; |
330 | 330 | response += ', <strong>twShare()</strong>'; |
| 331 | + response += ', <strong>ieLove()</strong>'; |
331 | 332 | // response += ', <strong>weather()</strong>'; |
332 | 333 | response += ' or any javascript will work.'+breakLine()+breakLine()+'For more info <strong>help(\'functionName\')</strong>. e.g. <strong>help(\'doge\')</strong>'; |
333 | 334 | } else { |
|
338 | 339 | if (customFunctionName == 'comicsans') response = 'Changes the font style of the entire site to Comic Sans. It should be a crime if you ask me.'; |
339 | 340 | if (customFunctionName == 'dancer') response = 'Shows a totally random gif dancer on a random place on the screen. Do you feel like dancing?'; |
340 | 341 | if (customFunctionName == 'doge') response = 'Shows Doge text on the screen.'+breakLine()+breakLine()+'<strong>doge(\'clear\')</strong> removes it all.'; |
341 | | - if (customFunctionName == 'exit') response = 'It closes the close JS Terminal.'; |
342 | | - if (customFunctionName == 'fbShare') response = 'Share JSConf with you friends on Facebook.'; |
| 342 | + if (customFunctionName == 'exit') response = 'It closes the Terminal.'; |
| 343 | + if (customFunctionName == 'fbShare') response = 'Share Codecell with you friends on Facebook.'; |
343 | 344 | if (customFunctionName == 'help') response = 'Captain Obvious is obvious o/'; |
344 | 345 | if (customFunctionName == 'helvetica') response = 'Changes the font style of the entire site to Helvetica. Ironically.'; |
345 | | - if (customFunctionName == 'latestTweets') response = 'Get the latest tweets from @jsconfar.'; |
| 346 | + if (customFunctionName == 'latestTweets') response = 'Get the latest tweets'; |
346 | 347 | if (customFunctionName == 'likeasir') response = 'See the world through the eyes of a gentleman.'; |
347 | 348 | if (customFunctionName == 'scrollto') response = 'It takes you to the specified object. E.g. <strong>scrollTo(\'footer\')</strong>. Much better than clicking. Isn\'t it?'; |
348 | 349 | if (customFunctionName == 'shades') response = 'See the world through the eyes of a douchebag.'; |
349 | | - if (customFunctionName == 'twShare') response = 'Share JSConf with you friends on Twitter.'; |
350 | | - 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.'; |
| 350 | + if (customFunctionName == 'twShare') response = 'Share Codecell with you friends on Twitter.'; |
| 351 | + //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.'; |
351 | 352 | } |
352 | 353 | $("#onlineTerminal").html($("#onlineTerminal").html().trim()+'<span class="response">'+response+'</span>'+breakLine()+breakLine()); |
353 | 354 | ////ga( 'send', 'event', 'toys', 'terminal', 'help'); |
|
436 | 437 | //ga( 'send', 'event', 'toys', 'terminal', 'ieLove'); |
437 | 438 | } |
438 | 439 | function weather() { |
439 | | - var fiveDaysBeforeJSConf = new Date(2014, 11, 24); |
| 440 | + var fiveDaysBeforeJSConf = new Date(2017, 03, 18); |
440 | 441 | var today = new Date(); |
441 | 442 | //if (today.getTime() < fiveDaysBeforeJSConf.getTime()) { |
442 | 443 | //$("#onlineTerminal").html($("#onlineTerminal").html().trim()+'<span class="response">Too soon. The weather forecast will be available five days before the event.</span>'+breakLine()+breakLine()); |
443 | 444 | //} else { |
444 | | - $("#onlineTerminal").html($("#onlineTerminal").html().trim()+'<span class="response">Loading weather condition for JSConf 2014 Buenos Aires...</span>'+breakLine()+breakLine()); |
445 | | - var uri = "//api.worldweatheronline.com/free/v1/weather.ashx?q=Buenos%20Aires&format=json&num_of_days=2&date=2014-11-29&lang=es&key=c0bc674c45172b0ab46399b10bd4c0e1bf532d17"; |
| 445 | + $("#onlineTerminal").html($("#onlineTerminal").html().trim()+'<span class="response">Loading weather condition for KJSCE...</span>'+breakLine()+breakLine()); |
| 446 | + var uri = "";//"//api.worldweatheronline.com/free/v1/weather.ashx?q=Buenos%20Aires&format=json&num_of_days=2&date=2014-11-29&lang=es&key=c0bc674c45172b0ab46399b10bd4c0e1bf532d17"; |
446 | 447 | $.getJSON(uri, function(data) { |
447 | 448 | var weatherResponse = $("#onlineTerminal").html().trim()+'<span class="response">'+ |
448 | 449 | 'Date: <strong>'+data['data']['weather'][0]['date']+'</strong>'+breakLine()+ |
|
0 commit comments