init files
Dieser Commit ist enthalten in:
Ursprung
d41e3b5158
Commit
16ad56ae48
41 geänderte Dateien mit 8754 neuen und 0 gelöschten Zeilen
118
external/aToolTip/js/atooltip.jquery.js
gevendort
Normale Datei
118
external/aToolTip/js/atooltip.jquery.js
gevendort
Normale Datei
|
|
@ -0,0 +1,118 @@
|
|||
/*
|
||||
jQuery Version: jQuery 1.3.2
|
||||
Plugin Name: aToolTip V 1.0
|
||||
Plugin by: Ara Abcarians: http://ara-abcarians.com
|
||||
License: aToolTip is licensed under a Creative Commons Attribution 3.0 Unported License
|
||||
Read more about this license at --> http://creativecommons.org/licenses/by/3.0/
|
||||
Modified: Murat Purc <murat@purc>, 2010-01-28: Position clickable tooltip on right side,
|
||||
remove previous opened tooltip
|
||||
|
||||
Creates following node:
|
||||
-----------------------
|
||||
<div class="aToolTip">
|
||||
<div class="aToolTipInner">
|
||||
<p class="aToolTipContent"></p>
|
||||
Content
|
||||
<a alt="close" href="#" class="aToolTipCloseBtn">close</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
*/
|
||||
(function($) {
|
||||
$.fn.aToolTip = function(options) {
|
||||
|
||||
// setup default settings
|
||||
var defaults = {
|
||||
clickIt: false,
|
||||
closeTipBtn: 'aToolTipCloseBtn',
|
||||
fixed: false,
|
||||
inSpeed: 400,
|
||||
outSpeed: 100,
|
||||
tipContent: '',
|
||||
toolTipClass: 'aToolTip',
|
||||
xOffset: 0,
|
||||
yOffset: 0
|
||||
},
|
||||
|
||||
// This makes it so the users custom options overrides the default ones
|
||||
settings = $.extend({}, defaults, options);
|
||||
|
||||
return this.each(function() {
|
||||
var obj = $(this);
|
||||
// Decide weather to use a title attr as the tooltip content
|
||||
if (obj.attr('title') && !settings.tipContent) {
|
||||
// set the tooltip content/text to be the obj title attribute
|
||||
var tipContent = obj.attr('title');
|
||||
} else {
|
||||
// if no title attribute set it to the tipContent option in settings
|
||||
var tipContent = settings.tipContent;
|
||||
}
|
||||
|
||||
// check if obj has a title attribute and if click feature is off
|
||||
if(tipContent && !settings.clickIt){
|
||||
// Activate on hover
|
||||
obj.hover(function(el){
|
||||
obj.attr({title: ''});
|
||||
$('body').append("<div class='"+ settings.toolTipClass +"'><div class='"+ settings.toolTipClass +"Inner'><p class='aToolTipContent'>"+ tipContent +"</p></div></div>");
|
||||
$('.' + settings.toolTipClass).css({
|
||||
position: 'absolute',
|
||||
display: 'none',
|
||||
zIndex: '50000',
|
||||
top: (obj.offset().top - $('.' + settings.toolTipClass).outerHeight() - settings.yOffset) + 'px',
|
||||
left: (obj.offset().left + obj.outerWidth() + settings.xOffset) + 'px'
|
||||
})
|
||||
.stop().fadeIn(settings.inSpeed);
|
||||
},
|
||||
function(){
|
||||
// Fade out
|
||||
$('.' + settings.toolTipClass).stop().fadeOut(settings.outSpeed, function(){$(this).remove();});
|
||||
});
|
||||
}
|
||||
|
||||
// Follow mouse if fixed is false and click is false
|
||||
if(!settings.fixed && !settings.clickIt){
|
||||
obj.mousemove(function(el){
|
||||
$('.' + settings.toolTipClass).css({
|
||||
top: (el.pageY - $('.' + settings.toolTipClass).outerHeight() - settings.yOffset),
|
||||
left: (el.pageX + settings.xOffset)
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
// check if click feature is enabled
|
||||
if(tipContent && settings.clickIt){
|
||||
// Activate on click
|
||||
obj.click(function(el){
|
||||
if (!settings.tipContent) {
|
||||
obj.attr({title: ''});
|
||||
}
|
||||
|
||||
// $('.' + settings.toolTipClass).remove();
|
||||
$('.' + settings.toolTipClass).stop().fadeOut(settings.outSpeed, function(){$(this).remove();});
|
||||
|
||||
$('body').append("<div class='"+ settings.toolTipClass +"'><div class='"+ settings.toolTipClass +"Inner'><p class='aToolTipContent'>"+ tipContent +"</p><a class='"+ settings.closeTipBtn +"' href='#' alt='close'>close</a></div></div>");
|
||||
$('.' + settings.toolTipClass).css({
|
||||
position: 'absolute',
|
||||
display: 'none',
|
||||
zIndex: '50000',
|
||||
// top: (obj.offset().top - $('.' + settings.toolTipClass).outerHeight() - settings.yOffset) + 'px',
|
||||
// left: (obj.offset().left + obj.outerWidth() + settings.xOffset) + 'px'
|
||||
top: (obj.offset().top - settings.yOffset) + 'px',
|
||||
left: (obj.offset().left + obj.outerWidth() + settings.xOffset) + 'px'
|
||||
})
|
||||
.fadeIn(settings.inSpeed);
|
||||
// Click to close tooltip
|
||||
$('.' + settings.closeTipBtn).click(function(){
|
||||
$('.' + settings.toolTipClass).fadeOut(settings.outSpeed, function(){$(this).remove();});
|
||||
return false;
|
||||
});
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
}); // END: return this
|
||||
|
||||
// returns the jQuery object to allow for chainability.
|
||||
return this;
|
||||
};
|
||||
})(jQuery);
|
||||
2
external/aToolTip/js/atooltip.min.jquery.js
gevendort
Normale Datei
2
external/aToolTip/js/atooltip.min.jquery.js
gevendort
Normale Datei
|
|
@ -0,0 +1,2 @@
|
|||
/*Plugin by: Ara Abcarians: http://ara-abcarians.com License: http://creativecommons.org/licenses/by/3.0/ */
|
||||
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(2($){$.O.w=2(d){8 e={9:f,q:\'P\',x:f,r:Q,s:R,y:\'\',1:\'w\',g:5,h:5},0=$.S({},e,d);i 3.T(2(){8 b=$(3);j(b.k(\'l\')){8 c=b.k(\'l\')}U{8 c=0.y}j(c&&!0.9){b.V(2(a){b.k({l:\'\'});$(\'z\').t("<m 4=\'"+0.1+"\'><p 4=\'A\'>"+c+"</p></m>");$(\'.\'+0.1).u({B:\'C\',D:\'E\',F:\'G\',6:(b.n().6-$(\'.\'+0.1).v()-0.h)+\'o\',7:(b.n().7+b.H()+0.g)+\'o\'}).I().J(0.r)},2(){$(\'.\'+0.1).I().K(0.s,2(){$(3).L()})})}j(!0.x&&!0.9){b.W(2(a){$(\'.\'+0.1).u({6:(a.X-$(\'.\'+0.1).v()-0.h),7:(a.Y+0.g)})})}j(c&&0.9){b.M(2(a){b.k({l:\'\'});$(\'z\').t("<m 4=\'"+0.1+"\'><p 4=\'A\'>"+c+"</p></m>");$(\'.\'+0.1).t("<a 4=\'"+0.q+"\' Z=\'#\' 10=\'N\'>N</a>");$(\'.\'+0.1).u({B:\'C\',D:\'E\',F:\'G\',6:(b.n().6-$(\'.\'+0.1).v()-0.h)+\'o\',7:(b.n().7+b.H()+0.g)+\'o\'}).J(0.r);$(\'.\'+0.q).M(2(){$(\'.\'+0.1).K(0.s,2(){$(3).L()});i f});i f})}});i 3}})(11);',62,64,'settings|toolTipClass|function|this|class||top|left|var|clickIt||||||false|xOffset|yOffset|return|if|attr|title|div|offset|px||closeTipBtn|inSpeed|outSpeed|append|css|outerHeight|aToolTip|fixed|tipContent|body|aToolTipContent|position|absolute|display|none|zIndex|50000|outerWidth|stop|fadeIn|fadeOut|remove|click|close|fn|aToolTipCloseBtn|400|100|extend|each|else|hover|mousemove|pageY|pageX|href|alt|jQuery'.split('|'),0,{}))
|
||||
19
external/aToolTip/js/jquery.min.js
gevendort
Normale Datei
19
external/aToolTip/js/jquery.min.js
gevendort
Normale Datei
Dateidiff unterdrückt, weil mindestens eine Zeile zu lang ist
Laden …
Tabelle hinzufügen
Einen Link hinzufügen
In neuem Issue referenzieren