summaryrefslogtreecommitdiffstats
path: root/webroot/js
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-07-04 02:09:47 -0700
committerraylu <raylu@mixpanel.com>2011-07-04 02:10:36 -0700
commit0bcf819b071545d8e536bd2f224a13c9e58fb185 (patch)
tree6a5a78aab1dad20d05d754f7d74db7e235b17098 /webroot/js
parentf930e120150969a2c882776e2fa6e424521ae00f (diff)
downloadotakuhub-0bcf819b071545d8e536bd2f224a13c9e58fb185.tar.xz
reorganize JS
Diffstat (limited to 'webroot/js')
-rw-r--r--webroot/js/functions.js27
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);
+});