diff options
Diffstat (limited to 'webroot/js/functions.js')
-rw-r--r-- | webroot/js/functions.js | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/webroot/js/functions.js b/webroot/js/functions.js index 4118525..87fcb72 100644 --- a/webroot/js/functions.js +++ b/webroot/js/functions.js @@ -1,6 +1,9 @@ jQuery(document).ready(function($) { + var login = $("a[href='/login']"); + login.attr('href', '#login'); + login.attr('title', ''); + login.prettyPhoto({deeplinking: false, social_tools: false}); -//Portfolio Hover Effect $('.portfolio-small li img, .portfolio-list li img').hover(function() { $(this).children('a').show(); $('.portfolio-small li img, .portfolio-list li img').stop().animate({ opacity: .5 }, 300); @@ -9,15 +12,15 @@ jQuery(document).ready(function($) { $('.portfolio-small li img, .portfolio-list li img').stop().animate({ opacity: 1 }, 300); }); -//Homepage Screenshot Scroll -$(".scrollable").scrollable(); + $('.tooltip').tipsy({fade: true}); + $('.tooltip.north').tipsy({fade: true, gravity: 's'}); + $('.tooltip.east').tipsy({fade: true, gravity: 'w'}); + $('.tooltip.west').tipsy({fade: true, gravity: 'e'}); + $('form [title]').tipsy({fade: true, trigger: 'focus', gravity: 'w'}); -// Tipsy Tooltips -$('.tooltip').tipsy({fade: true}); -$('.tooltip.north').tipsy({fade: true, gravity: 's'}); -$('.tooltip.east').tipsy({fade: true, gravity: 'w'}); -$('.tooltip.west').tipsy({fade: true, gravity: 'e'}); -// Form Tooltips -$('form [title]').tipsy({fade: true, trigger: 'focus', gravity: 'w'}); - -}); + setTimeout(function() { + $(".flash-message").fadeOut("slow", function () { + $(".flash-message").remove(); + }); + }, 2000); +}); |