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({
|
* Typed.js animation for the landing panel.
|
||||||
anchors:["landing","resume","getInTouch"]
|
*/
|
||||||
});*/
|
|
||||||
|
|
||||||
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];
|
var typedStrings = ["code"+period, "learn new things"+period, "tinker"+period, "communicate"+period, "teach"+period, "solve problems"+period, "get things done"+period];
|
||||||
|
|
||||||
$("#typedWords").typed({
|
$("#typedWords").typed({
|
||||||
|
@ -16,8 +16,11 @@ $(window).ready(function() {
|
||||||
loop: true,
|
loop: true,
|
||||||
contentType: 'html'
|
contentType: 'html'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Scroll on menu link click
|
||||||
|
*/
|
||||||
$(".menulink").click(function() {
|
$(".menulink").click(function() {
|
||||||
var $panel = $(this).attr("id");
|
var $panel = $(this).attr("id");
|
||||||
|
|
||||||
|
@ -27,3 +30,13 @@ $(".menulink").click(function() {
|
||||||
scrollTop: $($panel).offset().top},
|
scrollTop: $($panel).offset().top},
|
||||||
'slow');
|
'slow');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Closing the contact form popup
|
||||||
|
*/
|
||||||
|
|
||||||
|
$(document).click(function() {
|
||||||
|
if($("#contact-popup").is(':visible')) {
|
||||||
|
$("#contact-popup").fadeOut();
|
||||||
|
}
|
||||||
|
});
|
Loading…
Reference in a new issue