|
@@ -18,7 +18,7 @@ $(function dw_set_cookie() {
|
|
|
$.cookie(COOKIE, 'yum-cookies', { expires: 7, path: '/'});
|
|
|
$('.terminal-welcome').modal('show');
|
|
|
$('.welcome').typed({
|
|
|
- strings: ['Hey,', 'Hello,\n^10Welcome to ^10my domain ^10...^10', 'Hello, \nWelcome to my little corner of the internet. \n^10It is nice to ', 'Hello, \nWelcome to my little corner of the internet. \nIt is very nice to have you here!^200\n'],
|
|
|
+ strings: ['Hey,', 'Hello,\n^10Welcome to ^10my domain ^10...^10', 'Hello, \nWelcome to my little corner of the internet. \n^10It is nice to ', 'Hello, \nWelcome to my little corner of the internet. \nWhat is your name?^200\n'],
|
|
|
typeSpeed: 30,
|
|
|
backSpeed: 50,
|
|
|
startDelay: 0,
|
|
@@ -27,15 +27,21 @@ $(function dw_set_cookie() {
|
|
|
loopCount: false,
|
|
|
attr: null,
|
|
|
callback: function(){
|
|
|
- dw_shift();
|
|
|
+ dw_terminal();
|
|
|
}
|
|
|
});
|
|
|
$('.first-slide').css('visibility','hidden');
|
|
|
}
|
|
|
else {
|
|
|
$('.terminal').modal('show');
|
|
|
+ if (localStorage.getItem('person') === null) {
|
|
|
+ var person = 'anonymous person';
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ var person = localStorage.getItem('person');
|
|
|
+ }
|
|
|
$('.welcome-back-text').typed({
|
|
|
- strings: ['...', 'Welcome back'],
|
|
|
+ strings: ['...', 'Welcome back ' +person],
|
|
|
typeSpeed: 30,
|
|
|
backSpeed: 50,
|
|
|
startDelay: 0,
|
|
@@ -110,6 +116,13 @@ function dw_terminal(){
|
|
|
}
|
|
|
},100);
|
|
|
}
|
|
|
+ $('.thermo-intro').cli(function(text){
|
|
|
+ if (text.length > 1) {
|
|
|
+ localStorage.setItem('person', text),
|
|
|
+ dw_shift();
|
|
|
+ };
|
|
|
+ return '';
|
|
|
+ }, null, type);
|
|
|
$('.thermo').cli(function(text){
|
|
|
if (/exit/i.test(text)) {
|
|
|
$('.terminal').modal('hide');
|
|
@@ -156,8 +169,10 @@ $(function dw_hidenav() {
|
|
|
if (currentTop < this.previousTop) {
|
|
|
if (currentTop > 0 && $('.navbar').hasClass('fixed')) {
|
|
|
$('.navbar').addClass('visible');
|
|
|
+ $('.site-title a').removeClass('light');
|
|
|
} else {
|
|
|
$('.navbar').removeClass('visible fixed');
|
|
|
+ $('.site-title a').addClass('light');
|
|
|
}
|
|
|
}
|
|
|
else {
|