diff options
Diffstat (limited to 'views/default/magic_topbar')
-rw-r--r-- | views/default/magic_topbar/css.php | 18 | ||||
-rw-r--r-- | views/default/magic_topbar/js.php | 40 |
2 files changed, 0 insertions, 58 deletions
diff --git a/views/default/magic_topbar/css.php b/views/default/magic_topbar/css.php deleted file mode 100644 index 718c09bd0..000000000 --- a/views/default/magic_topbar/css.php +++ /dev/null @@ -1,18 +0,0 @@ -<?php -/** - * Magic Topbar CSS - * - * @package ElggMagicTopbar -*/ -?> - -/* Magic Topbar Plugin */ - -.elgg-page-topbar{ - position: fixed; - width:100%; -} -.elgg-page-header { - margin-top: 0px; - padding-top: 24px; -} diff --git a/views/default/magic_topbar/js.php b/views/default/magic_topbar/js.php deleted file mode 100644 index cb51913f3..000000000 --- a/views/default/magic_topbar/js.php +++ /dev/null @@ -1,40 +0,0 @@ -<?php -/** - * Hide the topbar when no using with an animation. - * - * @package ElggMagicTopbar - */ -?> - -$(function() { - - var $topbar = $(".elgg-page-topbar"), - $window = $(window); - - $topbar.css({position: 'fixed', width: '100%'}); - - $window.scroll(function() { - $topbar.stop(); - var opacity; - if ($window.scrollTop() > 14) { - $topbar.animate({opacity: 0}, 'fast'); - } else { - $topbar.css({opacity: 1}); - } - }); - - $topbar.mouseenter(function(){ - $topbar.stop(); - $topbar.animate({opacity: 1}); - }) - .mouseleave(function(){ - $topbar.stop(); - var opacity; - if ($window.scrollTop() > 14) { - opacity = 0; - } else { - opacity = 1; - } - $topbar.animate({opacity: opacity}); - }); -}); |