[Xfce4-commits] <wiki:master> Drop minified js.

Nick Schermer noreply at xfce.org
Sun Jan 8 14:08:01 CET 2012


Updating branch refs/heads/master
         to fe8f0e7e8eb01c28632229d0a99c402c54baf015 (commit)
       from 0ef994a9b5afcc3a4c719aa2ef10bac540af960f (commit)

commit fe8f0e7e8eb01c28632229d0a99c402c54baf015
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Jan 8 14:06:21 2012 +0100

    Drop minified js.

 lib/tpl/docs/main.php          |    2 +-
 lib/tpl/docs/xfceheader.min.js |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/lib/tpl/docs/main.php b/lib/tpl/docs/main.php
index 5cb92a8..f09d48a 100644
--- a/lib/tpl/docs/main.php
+++ b/lib/tpl/docs/main.php
@@ -28,7 +28,7 @@ if (!defined('DOKU_INC')) die();
     [<?php echo strip_tags($conf['title'])?>]
   </title>
   <?php tpl_metaheaders()?>
-  <script type="text/javascript" src="/lib/tpl/docs/xfceheader.min.js"></script>
+  <script type="text/javascript" src="/lib/tpl/docs/xfceheader.js"></script>
 </head>
 
 <body>
diff --git a/lib/tpl/docs/xfceheader.min.js b/lib/tpl/docs/xfceheader.min.js
deleted file mode 100644
index 28cb740..0000000
--- a/lib/tpl/docs/xfceheader.min.js
+++ /dev/null
@@ -1 +0,0 @@
-function slide(h){if(typeof(window.pageYOffset)=='number')o=window.pageYOffset;else if(document.body&&document.body.scrollTop)o=document.body.scrollTop;else if(document.documentElement&&document.documentElement.scrollTop)o=document.documentElement.scrollTop;else o=0;var a=h.clientHeight-5;if(o>a)o=a;h.className='';h.style.top=-o+"px";return o}window.onload=function(e){var h=document.getElementById('xfce-header');var o=slide(h);h.style.position='fixed';document.getElementById('xfce-header-spacer').style.height=h.clientHeight+'px';window.onscroll=function(e){o=slide(h)}h.onmouseover=function(e){h.style.top='0px';h.className='slide'}h.onmouseout=function(e){h.style.top=-o+'px'}}


More information about the Xfce4-commits mailing list