Skip to content

Commit 1aca4da

Browse files
committed
Change favicon, add feedback, modify terminal
1 parent 374fb1e commit 1aca4da

4 files changed

Lines changed: 25 additions & 9 deletions

File tree

‎favicon.ico‎

31.4 KB
Binary file not shown.

‎favicon1.ico‎

1.12 KB
Binary file not shown.

‎feedback/index.html‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE HTML>
2+
<html lang="en-US">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="refresh" content="1; url=http://bit.ly/KJSCECC17">
6+
<script type="text/javascript">
7+
window.location.href = "http://tinyurl.com/codecell-feedback"
8+
</script>
9+
<title>KJSCE Codecell Feedback</title>
10+
</head>
11+
<body>
12+
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
13+
If you are not redirected automatically, follow this <a href='http://tinyurl.com/codecell-feedback'>link</a>.
14+
</body>
15+
</html>

‎static/js/terminal.js‎

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@
295295
if (func_options == "clear") {
296296
$('.dogeText').remove();
297297
} 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');
299299
av_doge_colors = Array('red', 'blue', 'yellow', 'pink', 'orange', 'green', 'purple', 'cyan');
300300
$("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>');
301301
}
@@ -328,6 +328,7 @@
328328
response += ', <strong>scrollTo()</strong>';
329329
response += ', <strong>shades()</strong>';
330330
response += ', <strong>twShare()</strong>';
331+
response += ', <strong>ieLove()</strong>';
331332
// response += ', <strong>weather()</strong>';
332333
response += ' or any javascript will work.'+breakLine()+breakLine()+'For more info <strong>help(\'functionName\')</strong>. e.g. <strong>help(\'doge\')</strong>';
333334
} else {
@@ -338,16 +339,16 @@
338339
if (customFunctionName == 'comicsans') response = 'Changes the font style of the entire site to Comic Sans. It should be a crime if you ask me.';
339340
if (customFunctionName == 'dancer') response = 'Shows a totally random gif dancer on a random place on the screen. Do you feel like dancing?';
340341
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.';
343344
if (customFunctionName == 'help') response = 'Captain Obvious is obvious o/';
344345
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';
346347
if (customFunctionName == 'likeasir') response = 'See the world through the eyes of a gentleman.';
347348
if (customFunctionName == 'scrollto') response = 'It takes you to the specified object. E.g. <strong>scrollTo(\'footer\')</strong>. Much better than clicking. Isn\'t it?';
348349
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.';
351352
}
352353
$("#onlineTerminal").html($("#onlineTerminal").html().trim()+'<span class="response">'+response+'</span>'+breakLine()+breakLine());
353354
////ga( 'send', 'event', 'toys', 'terminal', 'help');
@@ -436,13 +437,13 @@
436437
//ga( 'send', 'event', 'toys', 'terminal', 'ieLove');
437438
}
438439
function weather() {
439-
var fiveDaysBeforeJSConf = new Date(2014, 11, 24);
440+
var fiveDaysBeforeJSConf = new Date(2017, 03, 18);
440441
var today = new Date();
441442
//if (today.getTime() < fiveDaysBeforeJSConf.getTime()) {
442443
//$("#onlineTerminal").html($("#onlineTerminal").html().trim()+'<span class="response">Too soon. The weather forecast will be available five days before the event.</span>'+breakLine()+breakLine());
443444
//} 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";
446447
$.getJSON(uri, function(data) {
447448
var weatherResponse = $("#onlineTerminal").html().trim()+'<span class="response">'+
448449
'Date: <strong>'+data['data']['weather'][0]['date']+'</strong>'+breakLine()+

0 commit comments

Comments
 (0)