2015-12-25 01:47:49 +00:00
/ *
* Typed . js animation for the landing panel .
* /
2015-12-22 05:59:56 +00:00
2015-12-25 01:47:49 +00:00
$ ( window ) . ready ( function ( ) {
var period = "<span class='primarytext' style='font-weight:normal'>.</span>" ;
2015-12-22 05:59:56 +00:00
var typedStrings = [ "code" + period , "learn new things" + period , "tinker" + period , "communicate" + period , "teach" + period , "solve problems" + period , "get things done" + period ] ;
$ ( "#typedWords" ) . typed ( {
strings : typedStrings ,
typeSpeed : 0 ,
backSpeed : 0 ,
backDelay : 1500 ,
showCursor : true ,
cursorChar : "_" ,
loop : true ,
contentType : 'html'
} ) ;
2015-12-25 01:47:49 +00:00
} ) ;
2015-12-24 07:36:59 +00:00
2015-12-25 01:47:49 +00:00
/ *
* Scroll on menu link click
* /
2015-12-24 07:36:59 +00:00
$ ( ".menulink" ) . click ( function ( ) {
var $panel = $ ( this ) . attr ( "id" ) ;
console . log ( $panel ) ;
$ ( 'html,body' ) . animate ( {
scrollTop : $ ( $panel ) . offset ( ) . top } ,
'slow' ) ;
} ) ;
2015-12-25 01:47:49 +00:00
/ *
* Closing the contact form popup
* /
$ ( document ) . click ( function ( ) {
if ( $ ( "#contact-popup" ) . is ( ':visible' ) ) {
2015-12-25 01:52:01 +00:00
$ ( "#contact-popup" ) . fadeOut ( "slow" ) ;
2015-12-25 01:47:49 +00:00
}
} ) ;