mirror of
https://github.com/felixfoertsch/wordpress-dev-env.git
synced 2026-04-18 07:18:43 +02:00
Initial commit
This commit is contained in:
2
wordpress_plugins/debug-bar-constants/js/index.php
Normal file
2
wordpress_plugins/debug-bar-constants/js/index.php
Normal file
@@ -0,0 +1,2 @@
|
||||
<?php
|
||||
// Nothing to see here.
|
||||
70
wordpress_plugins/debug-bar-constants/js/jquery.ui.totop.js
vendored
Normal file
70
wordpress_plugins/debug-bar-constants/js/jquery.ui.totop.js
vendored
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| UItoTop jQuery Plugin 1.2 by Matt Varone
|
||||
| http://www.mattvarone.com/web-design/uitotop-jquery-plugin/
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
(function($){
|
||||
$.fn.UItoTop = function(options) {
|
||||
|
||||
var defaults = {
|
||||
text: 'To Top',
|
||||
min: 200,
|
||||
inDelay:600,
|
||||
outDelay:400,
|
||||
containerID: 'toTop',
|
||||
containerHoverID: 'toTopHover',
|
||||
scrollSpeed: 1200,
|
||||
easingType: 'linear'
|
||||
},
|
||||
settings = $.extend(defaults, options),
|
||||
containerIDhash = '#' + settings.containerID,
|
||||
containerHoverIDHash = '#'+settings.containerHoverID;
|
||||
|
||||
$('body').append('<a href="#" id="'+settings.containerID+'">'+settings.text+'</a>');
|
||||
$(containerIDhash).hide().on('click.UItoTop',function(){
|
||||
$('#debug-menu-targets').animate({scrollTop:0}, settings.scrollSpeed, settings.easingType);
|
||||
$('#'+settings.containerHoverID, this).stop().animate({'opacity': 0 }, settings.inDelay, settings.easingType);
|
||||
return false;
|
||||
})
|
||||
.prepend('<span id="'+settings.containerHoverID+'"></span>')
|
||||
.hover(function() {
|
||||
$(containerHoverIDHash, this).stop().animate({
|
||||
'opacity': 1
|
||||
}, 600, 'linear');
|
||||
}, function() {
|
||||
$(containerHoverIDHash, this).stop().animate({
|
||||
'opacity': 0
|
||||
}, 700, 'linear');
|
||||
});
|
||||
|
||||
$('#debug-menu-targets').scroll(function() {
|
||||
var sd = $('#debug-menu-targets').scrollTop();
|
||||
if(typeof document.body.style.maxHeight === "undefined") {
|
||||
$(containerIDhash).css({
|
||||
'position': 'absolute',
|
||||
'top': sd + $(window).height() - 50
|
||||
});
|
||||
}
|
||||
if ( sd > settings.min ) {
|
||||
$(containerIDhash).fadeIn(settings.inDelay);
|
||||
}
|
||||
else {
|
||||
$(containerIDhash).fadeOut(settings.Outdelay);
|
||||
}
|
||||
});
|
||||
};
|
||||
})(jQuery);
|
||||
|
||||
|
||||
jQuery(document).ready(function() {
|
||||
/*
|
||||
var defaults = {
|
||||
containerID: 'toTop', // fading element id
|
||||
containerHoverID: 'toTopHover', // fading element hover id
|
||||
scrollSpeed: 1200,
|
||||
easingType: 'linear'
|
||||
};
|
||||
*/
|
||||
jQuery('#debug-menu-target-Debug_Bar_PHP_Constants').UItoTop({ easingType: 'swing', scrollSpeed: 300 });
|
||||
});
|
||||
2
wordpress_plugins/debug-bar-constants/js/jquery.ui.totop.min.js
vendored
Normal file
2
wordpress_plugins/debug-bar-constants/js/jquery.ui.totop.min.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* UItoTop jQuery Plugin 1.2 | Matt Varone | http://www.mattvarone.com/web-design/uitotop-jquery-plugin */
|
||||
(function($){$.fn.UItoTop=function(options){var defaults={text:'To Top',min:200,inDelay:600,outDelay:400,containerID:'toTop',containerHoverID:'toTopHover',scrollSpeed:1200,easingType:'linear'},settings=$.extend(defaults,options),containerIDhash='#'+settings.containerID,containerHoverIDHash='#'+settings.containerHoverID;$('body').append('<a href="#" id="'+settings.containerID+'">'+settings.text+'</a>');$(containerIDhash).hide().on('click.UItoTop',function(){$('#debug-menu-targets').animate({scrollTop:0},settings.scrollSpeed,settings.easingType);$('#'+settings.containerHoverID,this).stop().animate({'opacity':0},settings.inDelay,settings.easingType);return false}).prepend('<span id="'+settings.containerHoverID+'"></span>').hover(function(){$(containerHoverIDHash,this).stop().animate({'opacity':1},600,'linear')},function(){$(containerHoverIDHash,this).stop().animate({'opacity':0},700,'linear')});$('#debug-menu-targets').scroll(function(){var sd=$('#debug-menu-targets').scrollTop();if(typeof document.body.style.maxHeight==="undefined"){$(containerIDhash).css({'position':'absolute','top':sd+$(window).height()-50})}if(sd>settings.min){$(containerIDhash).fadeIn(settings.inDelay)}else{$(containerIDhash).fadeOut(settings.Outdelay)}})}})(jQuery);jQuery(document).ready(function(){jQuery('#debug-menu-target-Debug_Bar_PHP_Constants').UItoTop({easingType:'swing',scrollSpeed:300})});
|
||||
22
wordpress_plugins/debug-bar-constants/js/readme.txt
Normal file
22
wordpress_plugins/debug-bar-constants/js/readme.txt
Normal file
@@ -0,0 +1,22 @@
|
||||
# UItoTop jQuery Plugin
|
||||
|
||||
http://www.mattvarone.com/web-design/uitotop-jquery-plugin/
|
||||
|
||||
Ver 1.2
|
||||
|
||||
## License
|
||||
|
||||
Copyright (C) 2010 Matt Varone
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
Reference in New Issue
Block a user