|
@@ -2,36 +2,48 @@ new WOW().init();
|
|
|
|
|
|
jQuery(document).ready(function($) {
|
|
|
|
|
|
-var COOKIE_NAME = 'windhamdavid-cookie';
|
|
|
- $go = $.cookie(COOKIE_NAME);
|
|
|
- if ($go == null) {
|
|
|
- $.cookie(COOKIE_NAME, 'yum-cookies', { path: '/', expires: 6 });
|
|
|
+$(window).bind("load", function () {
|
|
|
+ $('#loader').fadeOut(700);
|
|
|
+});
|
|
|
|
|
|
+$(function cookieset(){
|
|
|
+ var COOKIE = 'windhamdavid-cookie';
|
|
|
+ $go = $.cookie(COOKIE);
|
|
|
+ if ($go == null) {
|
|
|
+ $.cookie(COOKIE, 'yum-cookies', { expires: 7, path: '/', expires: 6 });
|
|
|
+ $(".welcome").typed({
|
|
|
+ strings: ["Hey,", "Hello,\n^10Welcome to ^10my domain ^10...^10", "Hello, \nWelcome to my little corner of the internet. \n^10It's nice to ", "Hello, \nWelcome to my little corner of the internet. \nIt's very nice to have you here!^10\n"],
|
|
|
+ typeSpeed: -40,
|
|
|
+ backSpeed: -70,
|
|
|
+ startDelay: 0,
|
|
|
+ backDelay: 0,
|
|
|
+ loop: false,
|
|
|
+ loopCount: false,
|
|
|
+ attr: null,
|
|
|
+ callback: function(){
|
|
|
+ shift();
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
else {
|
|
|
+ $('.intro').collapse('hide');
|
|
|
+ $('.terminal').modal('show');
|
|
|
+ $(".welcome-back").typed({
|
|
|
+ strings: ["Hey...", "Welcome back..."],
|
|
|
+ typeSpeed: -40,
|
|
|
+ backSpeed: -70,
|
|
|
+ startDelay: 0,
|
|
|
+ backDelay: 0,
|
|
|
+ loop: false,
|
|
|
+ loopCount: false,
|
|
|
+ attr: null,
|
|
|
+ callback: function(){
|
|
|
+ shift();
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
-
|
|
|
-$(window).bind("load", function () {
|
|
|
- $('#loader').fadeOut(100);
|
|
|
- //$('.terminal').modal('show');
|
|
|
});
|
|
|
-
|
|
|
-$(function(){
|
|
|
- $(".typed").typed({
|
|
|
- strings: ["Hey,", "Hello,\n^10Welcome to ^10my domain ^10...^10", "Hello, \nWelcome to my little corner of the internet. \n^10It's nice to ", "Hello, \nWelcome to my little corner of the internet. \nIt's very nice to have you here!^10\n"],
|
|
|
- typeSpeed: -40,
|
|
|
- backSpeed: -70,
|
|
|
- startDelay: 0,
|
|
|
- backDelay: 0,
|
|
|
- loop: false,
|
|
|
- loopCount: false,
|
|
|
- attr: null,
|
|
|
- callback: function(){
|
|
|
- //shift();
|
|
|
- }
|
|
|
- });
|
|
|
-});
|
|
|
-
|
|
|
+
|
|
|
function shift(){
|
|
|
$('.leader').ScrollTo({
|
|
|
duration: 1500,
|
|
@@ -41,12 +53,15 @@ function shift(){
|
|
|
thecollapse();
|
|
|
}
|
|
|
});
|
|
|
-}
|
|
|
+};
|
|
|
|
|
|
function thecollapse(){
|
|
|
//$('.intro').collapse('hide')
|
|
|
- //$('.terminal').modal('hide')
|
|
|
-}
|
|
|
+ $('.terminal').modal('hide')
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
$('#nav').affix({
|
|
|
offset: {top: $('.intro').height()-$('#nav').height()}
|