Clean + add popup handling
This commit is contained in:
parent
04fcfa8418
commit
7e6bee7633
1 changed files with 19 additions and 6 deletions
|
@ -1,9 +1,9 @@
|
|||
$(window).ready(function() {
|
||||
/*$('#page').fullpage({
|
||||
anchors:["landing","resume","getInTouch"]
|
||||
});*/
|
||||
/*
|
||||
* Typed.js animation for the landing panel.
|
||||
*/
|
||||
|
||||
var period = "<span style='color:#727272;font-weight:normal'>.</span>";
|
||||
$(window).ready(function() {
|
||||
var period = "<span class='primarytext' style='font-weight:normal'>.</span>";
|
||||
var typedStrings = ["code"+period, "learn new things"+period, "tinker"+period, "communicate"+period, "teach"+period, "solve problems"+period, "get things done"+period];
|
||||
|
||||
$("#typedWords").typed({
|
||||
|
@ -18,6 +18,9 @@ $(window).ready(function() {
|
|||
});
|
||||
});
|
||||
|
||||
/*
|
||||
* Scroll on menu link click
|
||||
*/
|
||||
$(".menulink").click(function() {
|
||||
var $panel = $(this).attr("id");
|
||||
|
||||
|
@ -27,3 +30,13 @@ $(".menulink").click(function() {
|
|||
scrollTop: $($panel).offset().top},
|
||||
'slow');
|
||||
});
|
||||
|
||||
/*
|
||||
* Closing the contact form popup
|
||||
*/
|
||||
|
||||
$(document).click(function() {
|
||||
if($("#contact-popup").is(':visible')) {
|
||||
$("#contact-popup").fadeOut();
|
||||
}
|
||||
});
|
Loading…
Reference in a new issue