aboutsummaryrefslogtreecommitdiff
path: root/views/default/magic_topbar/js.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/magic_topbar/js.php')
-rw-r--r--views/default/magic_topbar/js.php40
1 files changed, 0 insertions, 40 deletions
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});
- });
-});