1 |
- (new WOW).init(),jQuery(document).ready(function(i){var l;function a(){function e(e){var t=i("<span>").appendTo(this).after('<span id="blinker" style="background:green"> </span>'),a=i("<style>p.input {visibility: hidden} p.input.old {visibility: visible}</style>").appendTo("head");i("p.input").addClass("old");var n=0,o=setInterval(function(){t.text(e.substr(0,n++)),n>e.length&&(i("#blinker").remove(),a.remove(),i("[contenteditable]")[0].focus(),clearInterval(o))},100)}i(".thermo-intro").cli(function(e){return 1<e.length&&(localStorage.setItem("person",e),i(".terminal-welcome").modal("hide"),i(".terminal-welcome").on("hidden.bs.modal",function(){n(),i(".first-slide").css("visibility","visible")})),""},null,e),i(".thermo").cli(function(e){return/exit/i.test(e)&&i(".terminal").modal("hide"),/help/i.test(e)?"I need somebody. Type 'exit' to close":/hello/i.test(e)?"Hello to you!":/what/i.test(e)?"This is a website silly human":/and/i.test(e)?"and what?":/who/i.test(e)?"David A. Windham":/when/i.test(e)?"Yesterday":/how/i.test(e)?"JavaScript is a dynamic computer programming language":/why/i.test(e)?"For fun":/you/i.test(e)?"your mama":/cd ../i.test(e)?"Oh, I see":/thermonuclear/i.test(e)?"Wouldn't you prefer a nice game of chess?":e.length<3?"type 'exit' to close":"command not found: "+e},null,e),i("p.input").on("touchstart click",function(e){e.preventDefault(),i("[contenteditable]")[0].focus()})}function n(){i("#caro-lead").carousel({interval:5777,wrap:!0,pause:!1}),document.getElementById("tv").play(),i(".posts-front").show()}i(window).bind("load",function(){i("#loader").fadeOut(700)}),i(function(){i('[data-toggle="tooltip"]').tooltip()}),i(function(){var e="windhamdavid-cookie";if(null==i.cookie(e))i.cookie(e,"yum-cookies",{expires:7,path:"/"}),i(".terminal-welcome").modal("show"),i(".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. \nWhat is your name?^200\n"],typeSpeed:30,backSpeed:50,startDelay:0,backDelay:0,loop:!1,loopCount:!1,attr:null,callback:function(){a()}}),i(".first-slide").css("visibility","hidden");else{if(i(".terminal").modal("show"),null===localStorage.getItem("person"))var t="anonymous person";else t=localStorage.getItem("person");i(".welcome-back-text").typed({strings:["...","Welcome back "+t],typeSpeed:30,backSpeed:50,startDelay:0,backDelay:0,loop:!1,loopCount:!1,attr:null,callback:function(){a()}}),i(".first-slide").css("visibility","hidden"),i(".terminal").on("hidden.bs.modal",function(){n(),i(".first-slide").css("visibility","visible")})}}),(l=jQuery).fn.cli=function(n,e,o){return e=e||'<span class="u">you</span><span class="at">@</span><span class="mee">david</span> > ',o=o||l.fn.text,this.each(function(){var t=l(this);function a(){t.append("<p class=input><span class=prompt>"+e+"</span><span style=outline:none contenteditable></span></p>");try{l("[contenteditable]",t)[0].focus()}catch(e){}}a(),t.on("keydown","[contenteditable]",function(e){if(13===e.keyCode)return l(this).removeAttr("contenteditable"),o.call(l("<p class=response>").appendTo(t),n(this.textContent||this.innerText)),a(),!1})})},i(".nav-toggle").on("touchstart click",function(e){e.preventDefault(),i(this).toggleClass("active")}),i("#nav").affix({}),i(function(){var t=i(".navbar").height();i(window).on("scroll",{previousTop:0},function(){var e=i(window).scrollTop();e<this.previousTop?0<e&&i(".navbar").hasClass("fixed")?(i(".navbar").addClass("visible"),i(".site-title a").removeClass("light")):(i(".navbar").removeClass("visible fixed"),i(".site-title a").addClass("light")):(i(".navbar").removeClass("visible"),t<e&&!i(".navbar").hasClass("fixed")&&i(".navbar").addClass("fixed")),this.previousTop=e})}),i("#caro-lead").on("slide.bs.carousel",function(e){i(".carousel-caption").fadeIn(600);var t=i(e.target);setTimeout(function(){1===t.find(".item.active").data("id")&&(i("#tv").removeClass("unblur").addClass("blur"),new DrawFillSVG({elementId:"sites"}).replay(),i("#tv").delay(100).queue(function(e){document.getElementById("tv").pause(),e()}));2===t.find(".item.active").data("id")&&(i("#tv").removeClass("unblur").addClass("blur"),new DrawFillSVG({elementId:"brain"}).replay(),i("#tv").delay(100).queue(function(e){document.getElementById("tv").pause(),e()}));3===t.find(".item.active").data("id")&&i(".leader").delay(100).queue(function(e){i(".leader").fadeTo(500,0,function(){i(".leader").slideUp(800),i(".leader").delay(1e3).queue(function(e){i(".posts-front").ScrollTo({duration:1e3,easing:"linear"})}),i("#caro-lead").carousel("pause")}),e()})},10)}),i("#caro-lead").on("slid.bs.carousel",function(){i(".carousel-caption").fadeOut(600),i("#tv").delay(3200).queue(function(e){i("#tv").addClass("unblur").removeClass("blur"),document.getElementById("tv").play(),e()})}),i(".caro-grad").appear(),i(".caro-grad").one("appear",function(){i("#caro").carousel({interval:5555,wrap:!1,pause:!1}),new DrawFillSVG({elementId:"sv"}).replay()}),i(document).bind("keyup",function(e){39===e.which?i("#caro").carousel("next"):37===e.which&&i("#caro").carousel("prev")}),i("#caro").on("slid.bs.carousel",function(){i(".active .animac").removeClass("hide-svg fade-svg");var e=new DrawFillSVG({elementId:"svg-mac"}),t=new DrawFillSVG({elementId:"svg-imac"}),a=new DrawFillSVG({elementId:"svg"});e.replay(),t.replay(),a.replay()}),i("#caro").on("slide.bs.carousel",function(){i(".active #svg-imac.bg").attr("class","svg screen"),i(".active .animac").addClass("fade-svg").delay(1e3).queue(function(e){i(this).addClass("hide-svg"),e()})}),i("#caro").on("slid.bs.carousel",function(){i(".active #svg-imac.screen").delay(2500).queue(function(e){i(this).attr("class","bg"),e()})}),i("#comments").hide(),i(".toggle-comments").on("touchstart click",function(e){e.preventDefault(),i("#comments").toggle("slow",function(){var e=i(".toggle-comments"),t="Hide Comments"===e.text()?"Show Comments":"Hide Comments";i(e).text(t)})}),i("#commentform").validate({rules:{author:{required:!0,minlength:2},email:{required:!0,email:!0},comment:{required:!0,minlength:3}},messages:{author:"Please enter in your name.",email:"Please enter a valid email address.",comment:"Nothing to Say?"},errorElement:"div",errorPlacement:function(e,t){t.before(e)}}),i(".calendar").fullCalendar({firstDay:1,height:345,events:[{title:"Project",start:"2014-09-27",end:"2014-10-02"},{title:"Conf",start:"2014-10-11",end:"2014-10-13",borderColor:"red"},{title:"off",start:"2014-10-13",end:"2014-10-16"},{title:"Contract",start:"2014-10-16",end:"2014-10-31"},{title:"Contract",start:"2014-11-03",end:"2014-11-22"},{title:"Project",start:"2014-12-01",end:"2014-12-06"},{title:"Project",start:"2014-12-08",end:"2014-12-13"},{title:"Holiday",start:"2014-12-22",end:"2015-01-05",borderColor:"red"},{title:"Project",start:"2015-01-06",end:"2015-01-25"},{title:"Project",start:"2015-02-02",end:"2015-02-14"},{title:"Holiday",start:"2015-02-14",end:"2015-02-19",borderColor:"red"},{title:"Project",start:"2015-02-19",end:"2015-03-07"}]})});
|