Clean + add popup handling

This commit is contained in:
Marc 2015-12-24 20:47:49 -05:00
parent 04fcfa8418
commit 7e6bee7633

View file

@ -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();
}
});