move libs to tests
This commit is contained in:
libs
bootstrap204
css
img
js
bootstrap211
css
img
js
bootstrap221
jquery-ui-datepicker
src/containers
test
index.htmljquery.ui.datepicker-ru.js
libs
bootstrap221
css
img
js
jquery-ui-1.9.1.custom
css
redmond
images
ui-bg_flat_0_aaaaaa_40x100.pngui-bg_flat_55_fbec88_40x100.pngui-bg_glass_75_d0e5f5_1x400.pngui-bg_glass_85_dfeffc_1x400.pngui-bg_glass_95_fef1ec_1x400.pngui-bg_gloss-wave_55_5c9ccc_500x100.pngui-bg_inset-hard_100_f5f8f9_1x100.pngui-bg_inset-hard_100_fcfdfd_1x100.pngui-icons_217bc0_256x240.pngui-icons_2e83ff_256x240.pngui-icons_469bdd_256x240.pngui-icons_6da8d5_256x240.pngui-icons_cd0a0a_256x240.pngui-icons_d8e7f3_256x240.pngui-icons_f9bd01_256x240.png
jquery-ui-1.9.1.custom.cssjquery-ui-1.9.1.custom.min.csssmoothness
images
ui-bg_flat_0_aaaaaa_40x100.pngui-bg_flat_75_ffffff_40x100.pngui-bg_glass_55_fbf9ee_1x400.pngui-bg_glass_65_ffffff_1x400.pngui-bg_glass_75_dadada_1x400.pngui-bg_glass_75_e6e6e6_1x400.pngui-bg_glass_95_fef1ec_1x400.pngui-bg_highlight-soft_75_cccccc_1x100.pngui-icons_222222_256x240.pngui-icons_2e83ff_256x240.pngui-icons_454545_256x240.pngui-icons_888888_256x240.pngui-icons_cd0a0a_256x240.png
jquery-ui-1.9.1.custom.cssjquery-ui-1.9.1.custom.min.cssjs
jquery
mockjax
poshytip
jquery.poshytip.jsjquery.poshytip.min.js
tip-darkgray
tip-green
tip-skyblue
tip-twitter
tip-violet
tip-yellow
tip-yellowsimple
qunit
unit
470
test/libs/poshytip/jquery.poshytip.js
Normal file
470
test/libs/poshytip/jquery.poshytip.js
Normal file
@ -0,0 +1,470 @@
|
||||
/*
|
||||
* Poshy Tip jQuery plugin v1.1
|
||||
* http://vadikom.com/tools/poshy-tip-jquery-plugin-for-stylish-tooltips/
|
||||
* Copyright 2010-2011, Vasil Dinkov, http://vadikom.com/
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
|
||||
var tips = [],
|
||||
reBgImage = /^url\(["']?([^"'\)]*)["']?\);?$/i,
|
||||
rePNG = /\.png$/i,
|
||||
ie6 = $.browser.msie && $.browser.version == 6;
|
||||
|
||||
// make sure the tips' position is updated on resize
|
||||
function handleWindowResize() {
|
||||
$.each(tips, function() {
|
||||
this.refresh(true);
|
||||
});
|
||||
}
|
||||
$(window).resize(handleWindowResize);
|
||||
|
||||
$.Poshytip = function(elm, options) {
|
||||
this.$elm = $(elm);
|
||||
this.opts = $.extend({}, $.fn.poshytip.defaults, options);
|
||||
this.$tip = $(['<div class="',this.opts.className,'">',
|
||||
'<div class="tip-inner tip-bg-image"></div>',
|
||||
'<div class="tip-arrow tip-arrow-top tip-arrow-right tip-arrow-bottom tip-arrow-left"></div>',
|
||||
'</div>'].join('')).appendTo(document.body);
|
||||
this.$arrow = this.$tip.find('div.tip-arrow');
|
||||
this.$inner = this.$tip.find('div.tip-inner');
|
||||
this.disabled = false;
|
||||
this.content = null;
|
||||
this.init();
|
||||
};
|
||||
|
||||
$.Poshytip.prototype = {
|
||||
init: function() {
|
||||
tips.push(this);
|
||||
|
||||
// save the original title and a reference to the Poshytip object
|
||||
var title = this.$elm.attr('title');
|
||||
this.$elm.data('title.poshytip', title !== undefined ? title : null)
|
||||
.data('poshytip', this);
|
||||
|
||||
// hook element events
|
||||
if (this.opts.showOn != 'none') {
|
||||
this.$elm.bind({
|
||||
'mouseenter.poshytip': $.proxy(this.mouseenter, this),
|
||||
'mouseleave.poshytip': $.proxy(this.mouseleave, this)
|
||||
});
|
||||
switch (this.opts.showOn) {
|
||||
case 'hover':
|
||||
if (this.opts.alignTo == 'cursor')
|
||||
this.$elm.bind('mousemove.poshytip', $.proxy(this.mousemove, this));
|
||||
if (this.opts.allowTipHover)
|
||||
this.$tip.hover($.proxy(this.clearTimeouts, this), $.proxy(this.mouseleave, this));
|
||||
break;
|
||||
case 'focus':
|
||||
this.$elm.bind({
|
||||
'focus.poshytip': $.proxy(this.show, this),
|
||||
'blur.poshytip': $.proxy(this.hide, this)
|
||||
});
|
||||
break;
|
||||
}
|
||||
}
|
||||
},
|
||||
mouseenter: function(e) {
|
||||
if (this.disabled)
|
||||
return true;
|
||||
|
||||
this.$elm.attr('title', '');
|
||||
if (this.opts.showOn == 'focus')
|
||||
return true;
|
||||
|
||||
this.clearTimeouts();
|
||||
this.showTimeout = setTimeout($.proxy(this.show, this), this.opts.showTimeout);
|
||||
},
|
||||
mouseleave: function(e) {
|
||||
if (this.disabled || this.asyncAnimating && (this.$tip[0] === e.relatedTarget || jQuery.contains(this.$tip[0], e.relatedTarget)))
|
||||
return true;
|
||||
|
||||
var title = this.$elm.data('title.poshytip');
|
||||
if (title !== null)
|
||||
this.$elm.attr('title', title);
|
||||
if (this.opts.showOn == 'focus')
|
||||
return true;
|
||||
|
||||
this.clearTimeouts();
|
||||
this.hideTimeout = setTimeout($.proxy(this.hide, this), this.opts.hideTimeout);
|
||||
},
|
||||
mousemove: function(e) {
|
||||
if (this.disabled)
|
||||
return true;
|
||||
|
||||
this.eventX = e.pageX;
|
||||
this.eventY = e.pageY;
|
||||
if (this.opts.followCursor && this.$tip.data('active')) {
|
||||
this.calcPos();
|
||||
this.$tip.css({left: this.pos.l, top: this.pos.t});
|
||||
if (this.pos.arrow)
|
||||
this.$arrow[0].className = 'tip-arrow tip-arrow-' + this.pos.arrow;
|
||||
}
|
||||
},
|
||||
show: function() {
|
||||
if (this.disabled || this.$tip.data('active'))
|
||||
return;
|
||||
|
||||
this.reset();
|
||||
this.update();
|
||||
this.display();
|
||||
if (this.opts.timeOnScreen)
|
||||
setTimeout($.proxy(this.hide, this), this.opts.timeOnScreen);
|
||||
},
|
||||
hide: function() {
|
||||
if (this.disabled || !this.$tip.data('active'))
|
||||
return;
|
||||
|
||||
this.display(true);
|
||||
},
|
||||
reset: function() {
|
||||
this.$tip.queue([]).detach().css('visibility', 'hidden').data('active', false);
|
||||
this.$inner.find('*').poshytip('hide');
|
||||
if (this.opts.fade)
|
||||
this.$tip.css('opacity', this.opacity);
|
||||
this.$arrow[0].className = 'tip-arrow tip-arrow-top tip-arrow-right tip-arrow-bottom tip-arrow-left';
|
||||
this.asyncAnimating = false;
|
||||
},
|
||||
update: function(content, dontOverwriteOption) {
|
||||
if (this.disabled)
|
||||
return;
|
||||
|
||||
var async = content !== undefined;
|
||||
if (async) {
|
||||
if (!dontOverwriteOption)
|
||||
this.opts.content = content;
|
||||
if (!this.$tip.data('active'))
|
||||
return;
|
||||
} else {
|
||||
content = this.opts.content;
|
||||
}
|
||||
|
||||
// update content only if it has been changed since last time
|
||||
var self = this,
|
||||
newContent = typeof content == 'function' ?
|
||||
content.call(this.$elm[0], function(newContent) {
|
||||
self.update(newContent);
|
||||
}) :
|
||||
content == '[title]' ? this.$elm.data('title.poshytip') : content;
|
||||
if (this.content !== newContent) {
|
||||
this.$inner.empty().append(newContent);
|
||||
this.content = newContent;
|
||||
}
|
||||
|
||||
this.refresh(async);
|
||||
},
|
||||
refresh: function(async) {
|
||||
if (this.disabled)
|
||||
return;
|
||||
|
||||
if (async) {
|
||||
if (!this.$tip.data('active'))
|
||||
return;
|
||||
// save current position as we will need to animate
|
||||
var currPos = {left: this.$tip.css('left'), top: this.$tip.css('top')};
|
||||
}
|
||||
|
||||
// reset position to avoid text wrapping, etc.
|
||||
this.$tip.css({left: 0, top: 0}).appendTo(document.body);
|
||||
|
||||
// save default opacity
|
||||
if (this.opacity === undefined)
|
||||
this.opacity = this.$tip.css('opacity');
|
||||
|
||||
// check for images - this code is here (i.e. executed each time we show the tip and not on init) due to some browser inconsistencies
|
||||
var bgImage = this.$tip.css('background-image').match(reBgImage),
|
||||
arrow = this.$arrow.css('background-image').match(reBgImage);
|
||||
|
||||
if (bgImage) {
|
||||
var bgImagePNG = rePNG.test(bgImage[1]);
|
||||
// fallback to background-color/padding/border in IE6 if a PNG is used
|
||||
if (ie6 && bgImagePNG) {
|
||||
this.$tip.css('background-image', 'none');
|
||||
this.$inner.css({margin: 0, border: 0, padding: 0});
|
||||
bgImage = bgImagePNG = false;
|
||||
} else {
|
||||
this.$tip.prepend('<table border="0" cellpadding="0" cellspacing="0"><tr><td class="tip-top tip-bg-image" colspan="2"><span></span></td><td class="tip-right tip-bg-image" rowspan="2"><span></span></td></tr><tr><td class="tip-left tip-bg-image" rowspan="2"><span></span></td><td></td></tr><tr><td class="tip-bottom tip-bg-image" colspan="2"><span></span></td></tr></table>')
|
||||
.css({border: 0, padding: 0, 'background-image': 'none', 'background-color': 'transparent'})
|
||||
.find('.tip-bg-image').css('background-image', 'url("' + bgImage[1] +'")').end()
|
||||
.find('td').eq(3).append(this.$inner);
|
||||
}
|
||||
// disable fade effect in IE due to Alpha filter + translucent PNG issue
|
||||
if (bgImagePNG && !$.support.opacity)
|
||||
this.opts.fade = false;
|
||||
}
|
||||
// IE arrow fixes
|
||||
if (arrow && !$.support.opacity) {
|
||||
// disable arrow in IE6 if using a PNG
|
||||
if (ie6 && rePNG.test(arrow[1])) {
|
||||
arrow = false;
|
||||
this.$arrow.css('background-image', 'none');
|
||||
}
|
||||
// disable fade effect in IE due to Alpha filter + translucent PNG issue
|
||||
this.opts.fade = false;
|
||||
}
|
||||
|
||||
var $table = this.$tip.find('table');
|
||||
if (ie6) {
|
||||
// fix min/max-width in IE6
|
||||
this.$tip[0].style.width = '';
|
||||
$table.width('auto').find('td').eq(3).width('auto');
|
||||
var tipW = this.$tip.width(),
|
||||
minW = parseInt(this.$tip.css('min-width')),
|
||||
maxW = parseInt(this.$tip.css('max-width'));
|
||||
if (!isNaN(minW) && tipW < minW)
|
||||
tipW = minW;
|
||||
else if (!isNaN(maxW) && tipW > maxW)
|
||||
tipW = maxW;
|
||||
this.$tip.add($table).width(tipW).eq(0).find('td').eq(3).width('100%');
|
||||
} else if ($table[0]) {
|
||||
// fix the table width if we are using a background image
|
||||
// IE9, FF4 use float numbers for width/height so use getComputedStyle for them to avoid text wrapping
|
||||
// for details look at: http://vadikom.com/dailies/offsetwidth-offsetheight-useless-in-ie9-firefox4/
|
||||
$table.width('auto').find('td').eq(3).width('auto').end().end().width(document.defaultView && document.defaultView.getComputedStyle && parseFloat(document.defaultView.getComputedStyle(this.$tip[0], null).width) || this.$tip.width()).find('td').eq(3).width('100%');
|
||||
}
|
||||
this.tipOuterW = this.$tip.outerWidth();
|
||||
this.tipOuterH = this.$tip.outerHeight();
|
||||
|
||||
this.calcPos();
|
||||
|
||||
// position and show the arrow image
|
||||
if (arrow && this.pos.arrow) {
|
||||
this.$arrow[0].className = 'tip-arrow tip-arrow-' + this.pos.arrow;
|
||||
this.$arrow.css('visibility', 'inherit');
|
||||
}
|
||||
|
||||
if (async) {
|
||||
this.asyncAnimating = true;
|
||||
var self = this;
|
||||
this.$tip.css(currPos).animate({left: this.pos.l, top: this.pos.t}, 200, function() { self.asyncAnimating = false; });
|
||||
} else {
|
||||
this.$tip.css({left: this.pos.l, top: this.pos.t});
|
||||
}
|
||||
},
|
||||
display: function(hide) {
|
||||
var active = this.$tip.data('active');
|
||||
if (active && !hide || !active && hide)
|
||||
return;
|
||||
|
||||
this.$tip.stop();
|
||||
if ((this.opts.slide && this.pos.arrow || this.opts.fade) && (hide && this.opts.hideAniDuration || !hide && this.opts.showAniDuration)) {
|
||||
var from = {}, to = {};
|
||||
// this.pos.arrow is only undefined when alignX == alignY == 'center' and we don't need to slide in that rare case
|
||||
if (this.opts.slide && this.pos.arrow) {
|
||||
var prop, arr;
|
||||
if (this.pos.arrow == 'bottom' || this.pos.arrow == 'top') {
|
||||
prop = 'top';
|
||||
arr = 'bottom';
|
||||
} else {
|
||||
prop = 'left';
|
||||
arr = 'right';
|
||||
}
|
||||
var val = parseInt(this.$tip.css(prop));
|
||||
from[prop] = val + (hide ? 0 : (this.pos.arrow == arr ? -this.opts.slideOffset : this.opts.slideOffset));
|
||||
to[prop] = val + (hide ? (this.pos.arrow == arr ? this.opts.slideOffset : -this.opts.slideOffset) : 0) + 'px';
|
||||
}
|
||||
if (this.opts.fade) {
|
||||
from.opacity = hide ? this.$tip.css('opacity') : 0;
|
||||
to.opacity = hide ? 0 : this.opacity;
|
||||
}
|
||||
this.$tip.css(from).animate(to, this.opts[hide ? 'hideAniDuration' : 'showAniDuration']);
|
||||
}
|
||||
hide ? this.$tip.queue($.proxy(this.reset, this)) : this.$tip.css('visibility', 'inherit');
|
||||
this.$tip.data('active', !active);
|
||||
},
|
||||
disable: function() {
|
||||
this.reset();
|
||||
this.disabled = true;
|
||||
},
|
||||
enable: function() {
|
||||
this.disabled = false;
|
||||
},
|
||||
destroy: function() {
|
||||
this.reset();
|
||||
this.$tip.remove();
|
||||
delete this.$tip;
|
||||
this.content = null;
|
||||
this.$elm.unbind('.poshytip').removeData('title.poshytip').removeData('poshytip');
|
||||
tips.splice($.inArray(this, tips), 1);
|
||||
},
|
||||
clearTimeouts: function() {
|
||||
if (this.showTimeout) {
|
||||
clearTimeout(this.showTimeout);
|
||||
this.showTimeout = 0;
|
||||
}
|
||||
if (this.hideTimeout) {
|
||||
clearTimeout(this.hideTimeout);
|
||||
this.hideTimeout = 0;
|
||||
}
|
||||
},
|
||||
calcPos: function() {
|
||||
var pos = {l: 0, t: 0, arrow: ''},
|
||||
$win = $(window),
|
||||
win = {
|
||||
l: $win.scrollLeft(),
|
||||
t: $win.scrollTop(),
|
||||
w: $win.width(),
|
||||
h: $win.height()
|
||||
}, xL, xC, xR, yT, yC, yB;
|
||||
if (this.opts.alignTo == 'cursor') {
|
||||
xL = xC = xR = this.eventX;
|
||||
yT = yC = yB = this.eventY;
|
||||
} else { // this.opts.alignTo == 'target'
|
||||
var elmOffset = this.$elm.offset(),
|
||||
elm = {
|
||||
l: elmOffset.left,
|
||||
t: elmOffset.top,
|
||||
w: this.$elm.outerWidth(),
|
||||
h: this.$elm.outerHeight()
|
||||
};
|
||||
xL = elm.l + (this.opts.alignX != 'inner-right' ? 0 : elm.w); // left edge
|
||||
xC = xL + Math.floor(elm.w / 2); // h center
|
||||
xR = xL + (this.opts.alignX != 'inner-left' ? elm.w : 0); // right edge
|
||||
yT = elm.t + (this.opts.alignY != 'inner-bottom' ? 0 : elm.h); // top edge
|
||||
yC = yT + Math.floor(elm.h / 2); // v center
|
||||
yB = yT + (this.opts.alignY != 'inner-top' ? elm.h : 0); // bottom edge
|
||||
}
|
||||
|
||||
// keep in viewport and calc arrow position
|
||||
switch (this.opts.alignX) {
|
||||
case 'right':
|
||||
case 'inner-left':
|
||||
pos.l = xR + this.opts.offsetX;
|
||||
if (pos.l + this.tipOuterW > win.l + win.w)
|
||||
pos.l = win.l + win.w - this.tipOuterW;
|
||||
if (this.opts.alignX == 'right' || this.opts.alignY == 'center')
|
||||
pos.arrow = 'left';
|
||||
break;
|
||||
case 'center':
|
||||
pos.l = xC - Math.floor(this.tipOuterW / 2);
|
||||
if (pos.l + this.tipOuterW > win.l + win.w)
|
||||
pos.l = win.l + win.w - this.tipOuterW;
|
||||
else if (pos.l < win.l)
|
||||
pos.l = win.l;
|
||||
break;
|
||||
default: // 'left' || 'inner-right'
|
||||
pos.l = xL - this.tipOuterW - this.opts.offsetX;
|
||||
if (pos.l < win.l)
|
||||
pos.l = win.l;
|
||||
if (this.opts.alignX == 'left' || this.opts.alignY == 'center')
|
||||
pos.arrow = 'right';
|
||||
}
|
||||
switch (this.opts.alignY) {
|
||||
case 'bottom':
|
||||
case 'inner-top':
|
||||
pos.t = yB + this.opts.offsetY;
|
||||
// 'left' and 'right' need priority for 'target'
|
||||
if (!pos.arrow || this.opts.alignTo == 'cursor')
|
||||
pos.arrow = 'top';
|
||||
if (pos.t + this.tipOuterH > win.t + win.h) {
|
||||
pos.t = yT - this.tipOuterH - this.opts.offsetY;
|
||||
if (pos.arrow == 'top')
|
||||
pos.arrow = 'bottom';
|
||||
}
|
||||
break;
|
||||
case 'center':
|
||||
pos.t = yC - Math.floor(this.tipOuterH / 2);
|
||||
if (pos.t + this.tipOuterH > win.t + win.h)
|
||||
pos.t = win.t + win.h - this.tipOuterH;
|
||||
else if (pos.t < win.t)
|
||||
pos.t = win.t;
|
||||
break;
|
||||
default: // 'top' || 'inner-bottom'
|
||||
pos.t = yT - this.tipOuterH - this.opts.offsetY;
|
||||
// 'left' and 'right' need priority for 'target'
|
||||
if (!pos.arrow || this.opts.alignTo == 'cursor')
|
||||
pos.arrow = 'bottom';
|
||||
if (pos.t < win.t) {
|
||||
pos.t = yB + this.opts.offsetY;
|
||||
if (pos.arrow == 'bottom')
|
||||
pos.arrow = 'top';
|
||||
}
|
||||
}
|
||||
this.pos = pos;
|
||||
}
|
||||
};
|
||||
|
||||
$.fn.poshytip = function(options) {
|
||||
if (typeof options == 'string') {
|
||||
var args = arguments,
|
||||
method = options;
|
||||
Array.prototype.shift.call(args);
|
||||
// unhook live events if 'destroy' is called
|
||||
if (method == 'destroy')
|
||||
this.die('mouseenter.poshytip').die('focus.poshytip');
|
||||
return this.each(function() {
|
||||
var poshytip = $(this).data('poshytip');
|
||||
if (poshytip && poshytip[method])
|
||||
poshytip[method].apply(poshytip, args);
|
||||
});
|
||||
}
|
||||
|
||||
var opts = $.extend({}, $.fn.poshytip.defaults, options);
|
||||
|
||||
// generate CSS for this tip class if not already generated
|
||||
if (!$('#poshytip-css-' + opts.className)[0])
|
||||
$(['<style id="poshytip-css-',opts.className,'" type="text/css">',
|
||||
'div.',opts.className,'{visibility:hidden;position:absolute;top:0;left:0;}',
|
||||
'div.',opts.className,' table, div.',opts.className,' td{margin:0;font-family:inherit;font-size:inherit;font-weight:inherit;font-style:inherit;font-variant:inherit;}',
|
||||
'div.',opts.className,' td.tip-bg-image span{display:block;font:1px/1px sans-serif;height:',opts.bgImageFrameSize,'px;width:',opts.bgImageFrameSize,'px;overflow:hidden;}',
|
||||
'div.',opts.className,' td.tip-right{background-position:100% 0;}',
|
||||
'div.',opts.className,' td.tip-bottom{background-position:100% 100%;}',
|
||||
'div.',opts.className,' td.tip-left{background-position:0 100%;}',
|
||||
'div.',opts.className,' div.tip-inner{background-position:-',opts.bgImageFrameSize,'px -',opts.bgImageFrameSize,'px;}',
|
||||
'div.',opts.className,' div.tip-arrow{visibility:hidden;position:absolute;overflow:hidden;font:1px/1px sans-serif;}',
|
||||
'</style>'].join('')).appendTo('head');
|
||||
|
||||
// check if we need to hook live events
|
||||
if (opts.liveEvents && opts.showOn != 'none') {
|
||||
var deadOpts = $.extend({}, opts, { liveEvents: false });
|
||||
switch (opts.showOn) {
|
||||
case 'hover':
|
||||
this.live('mouseenter.poshytip', function() {
|
||||
var $this = $(this);
|
||||
if (!$this.data('poshytip'))
|
||||
$this.poshytip(deadOpts).poshytip('mouseenter');
|
||||
});
|
||||
break;
|
||||
case 'focus':
|
||||
this.live('focus.poshytip', function() {
|
||||
var $this = $(this);
|
||||
if (!$this.data('poshytip'))
|
||||
$this.poshytip(deadOpts).poshytip('show');
|
||||
});
|
||||
break;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
return this.each(function() {
|
||||
new $.Poshytip(this, opts);
|
||||
});
|
||||
}
|
||||
|
||||
// default settings
|
||||
$.fn.poshytip.defaults = {
|
||||
content: '[title]', // content to display ('[title]', 'string', element, function(updateCallback){...}, jQuery)
|
||||
className: 'tip-yellow', // class for the tips
|
||||
bgImageFrameSize: 10, // size in pixels for the background-image (if set in CSS) frame around the inner content of the tip
|
||||
showTimeout: 500, // timeout before showing the tip (in milliseconds 1000 == 1 second)
|
||||
hideTimeout: 100, // timeout before hiding the tip
|
||||
timeOnScreen: 0, // timeout before automatically hiding the tip after showing it (set to > 0 in order to activate)
|
||||
showOn: 'hover', // handler for showing the tip ('hover', 'focus', 'none') - use 'none' to trigger it manually
|
||||
liveEvents: false, // use live events
|
||||
alignTo: 'cursor', // align/position the tip relative to ('cursor', 'target')
|
||||
alignX: 'right', // horizontal alignment for the tip relative to the mouse cursor or the target element
|
||||
// ('right', 'center', 'left', 'inner-left', 'inner-right') - 'inner-*' matter if alignTo:'target'
|
||||
alignY: 'top', // vertical alignment for the tip relative to the mouse cursor or the target element
|
||||
// ('bottom', 'center', 'top', 'inner-bottom', 'inner-top') - 'inner-*' matter if alignTo:'target'
|
||||
offsetX: -22, // offset X pixels from the default position - doesn't matter if alignX:'center'
|
||||
offsetY: 18, // offset Y pixels from the default position - doesn't matter if alignY:'center'
|
||||
allowTipHover: true, // allow hovering the tip without hiding it onmouseout of the target - matters only if showOn:'hover'
|
||||
followCursor: false, // if the tip should follow the cursor - matters only if showOn:'hover' and alignTo:'cursor'
|
||||
fade: true, // use fade animation
|
||||
slide: true, // use slide animation
|
||||
slideOffset: 8, // slide animation offset
|
||||
showAniDuration: 300, // show animation duration - set to 0 if you don't want show animation
|
||||
hideAniDuration: 300 // hide animation duration - set to 0 if you don't want hide animation
|
||||
};
|
||||
|
||||
})(jQuery);
|
7
test/libs/poshytip/jquery.poshytip.min.js
vendored
Normal file
7
test/libs/poshytip/jquery.poshytip.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
62
test/libs/poshytip/tip-darkgray/tip-darkgray.css
Normal file
62
test/libs/poshytip/tip-darkgray/tip-darkgray.css
Normal file
@ -0,0 +1,62 @@
|
||||
.tip-darkgray {
|
||||
opacity:0.95;
|
||||
z-index:1000;
|
||||
text-align:left;
|
||||
text-shadow:#444 0 1px 1px;
|
||||
border:1px solid #888;
|
||||
padding:8px;
|
||||
min-width:50px;
|
||||
max-width:530px;
|
||||
color:#fff;
|
||||
background-color:#999;
|
||||
background-image:url(tip-darkgray.png); /* bgImageFrameSize >= 11 should work fine */
|
||||
/**
|
||||
* - If you set a background-image, border/padding/background-color will be ingnored.
|
||||
* You can set any padding to .tip-inner instead if you need.
|
||||
* - If you want a tiled background-image and border/padding for the tip,
|
||||
* set the background-image to .tip-inner instead.
|
||||
*/
|
||||
}
|
||||
.tip-darkgray .tip-inner {
|
||||
font:bold 12px/18px arial,helvetica,sans-serif;
|
||||
margin-top:-1px;
|
||||
padding:0 4px 3px 4px;
|
||||
}
|
||||
|
||||
/* Configure an arrow image - the script will automatically position it on the correct side of the tip */
|
||||
.tip-darkgray .tip-arrow-top {
|
||||
margin-top:-7px;
|
||||
margin-left:15px;
|
||||
top:0;
|
||||
left:0;
|
||||
width:16px;
|
||||
height:10px;
|
||||
background:url(tip-darkgray_arrows.png) no-repeat;
|
||||
}
|
||||
.tip-darkgray .tip-arrow-right {
|
||||
margin-top:-9px; /* approx. half the height to center it */
|
||||
margin-left:-7px;
|
||||
top:50%;
|
||||
left:100%;
|
||||
width:11px;
|
||||
height:21px;
|
||||
background:url(tip-darkgray_arrows.png) no-repeat -22px 0;
|
||||
}
|
||||
.tip-darkgray .tip-arrow-bottom {
|
||||
margin-top:-7px;
|
||||
margin-left:15px;
|
||||
top:100%;
|
||||
left:0;
|
||||
width:22px;
|
||||
height:13px;
|
||||
background:url(tip-darkgray_arrows.png) no-repeat -44px 0;
|
||||
}
|
||||
.tip-darkgray .tip-arrow-left {
|
||||
margin-top:-9px; /* approx. half the height to center it */
|
||||
margin-left:-6px;
|
||||
top:50%;
|
||||
left:0;
|
||||
width:11px;
|
||||
height:21px;
|
||||
background:url(tip-darkgray_arrows.png) no-repeat -66px 0;
|
||||
}
|
BIN
test/libs/poshytip/tip-darkgray/tip-darkgray.png
Normal file
BIN
test/libs/poshytip/tip-darkgray/tip-darkgray.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 5.1 KiB |
BIN
test/libs/poshytip/tip-darkgray/tip-darkgray_arrows.png
Normal file
BIN
test/libs/poshytip/tip-darkgray/tip-darkgray_arrows.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 1.2 KiB |
57
test/libs/poshytip/tip-green/tip-green.css
Normal file
57
test/libs/poshytip/tip-green/tip-green.css
Normal file
@ -0,0 +1,57 @@
|
||||
.tip-green {
|
||||
z-index:1000;
|
||||
text-align:left;
|
||||
border:1px solid #bdde98;
|
||||
padding:7px 10px;
|
||||
min-width:50px;
|
||||
max-width:300px;
|
||||
color:#860404;
|
||||
background-color:#dff6c6;
|
||||
/**
|
||||
* - If you set a background-image, border/padding/background-color will be ingnored.
|
||||
* You can set any padding to .tip-inner instead if you need.
|
||||
* - If you want a tiled background-image and border/padding for the tip,
|
||||
* set the background-image to .tip-inner instead.
|
||||
*/
|
||||
}
|
||||
.tip-green .tip-inner {
|
||||
font:bold 12px/14px arial,helvetica,sans-serif;
|
||||
}
|
||||
|
||||
/* Configure an arrow image - the script will automatically position it on the correct side of the tip */
|
||||
.tip-green .tip-arrow-top {
|
||||
margin-top:-10px;
|
||||
margin-left:6px;
|
||||
top:0;
|
||||
left:0;
|
||||
width:10px;
|
||||
height:10px;
|
||||
background:url(tip-green_arrows.gif) no-repeat;
|
||||
}
|
||||
.tip-green .tip-arrow-right {
|
||||
margin-top:6px;
|
||||
margin-left:0;
|
||||
top:0;
|
||||
left:100%;
|
||||
width:10px;
|
||||
height:10px;
|
||||
background:url(tip-green_arrows.gif) no-repeat -10px 0;
|
||||
}
|
||||
.tip-green .tip-arrow-bottom {
|
||||
margin-top:0;
|
||||
margin-left:6px;
|
||||
top:100%;
|
||||
left:0;
|
||||
width:10px;
|
||||
height:10px;
|
||||
background:url(tip-green_arrows.gif) no-repeat -20px 0;
|
||||
}
|
||||
.tip-green .tip-arrow-left {
|
||||
margin-top:6px;
|
||||
margin-left:-10px;
|
||||
top:0;
|
||||
left:0;
|
||||
width:10px;
|
||||
height:10px;
|
||||
background:url(tip-green_arrows.gif) no-repeat -30px 0;
|
||||
}
|
BIN
test/libs/poshytip/tip-green/tip-green_arrows.gif
Normal file
BIN
test/libs/poshytip/tip-green/tip-green_arrows.gif
Normal file
Binary file not shown.
After ![]() (image error) Size: 118 B |
58
test/libs/poshytip/tip-skyblue/tip-skyblue.css
Normal file
58
test/libs/poshytip/tip-skyblue/tip-skyblue.css
Normal file
@ -0,0 +1,58 @@
|
||||
.tip-skyblue {
|
||||
z-index:1000;
|
||||
text-align:left;
|
||||
padding:8px 10px;
|
||||
min-width:50px;
|
||||
max-width:300px;
|
||||
color:#37356c;
|
||||
background-color:#b9f3f8;
|
||||
background-image:url(tip-skyblue.png); /* bgImageFrameSize == 9 works fine */
|
||||
/**
|
||||
* - If you set a background-image, border/padding/background-color will be ingnored.
|
||||
* You can set any padding to .tip-inner instead if you need.
|
||||
* - If you want a tiled background-image and border/padding for the tip,
|
||||
* set the background-image to .tip-inner instead.
|
||||
*/
|
||||
}
|
||||
.tip-skyblue .tip-inner {
|
||||
font:bold 13px/15px 'trebuchet ms',arial,helvetica,sans-serif;
|
||||
padding:0 3px 1px 3px;
|
||||
}
|
||||
|
||||
/* Configure an arrow image - the script will automatically position it on the correct side of the tip */
|
||||
.tip-skyblue .tip-arrow-top {
|
||||
margin-top:-12px;
|
||||
margin-left:0;
|
||||
top:0;
|
||||
left:0;
|
||||
width:11px;
|
||||
height:19px;
|
||||
background:url(tip-skyblue_arrows.png) no-repeat;
|
||||
}
|
||||
.tip-skyblue .tip-arrow-right {
|
||||
margin-top:0;
|
||||
margin-left:-7px;
|
||||
top:0;
|
||||
left:100%;
|
||||
width:18px;
|
||||
height:13px;
|
||||
background:url(tip-skyblue_arrows.png) no-repeat -20px 0;
|
||||
}
|
||||
.tip-skyblue .tip-arrow-bottom {
|
||||
margin-top:-8px;
|
||||
margin-left:0;
|
||||
top:100%;
|
||||
left:0;
|
||||
width:11px;
|
||||
height:20px;
|
||||
background:url(tip-skyblue_arrows.png) no-repeat -40px 0;
|
||||
}
|
||||
.tip-skyblue .tip-arrow-left {
|
||||
margin-top:0;
|
||||
margin-left:-11px;
|
||||
top:0;
|
||||
left:0;
|
||||
width:18px;
|
||||
height:13px;
|
||||
background:url(tip-skyblue_arrows.png) no-repeat -60px 0;
|
||||
}
|
BIN
test/libs/poshytip/tip-skyblue/tip-skyblue.png
Normal file
BIN
test/libs/poshytip/tip-skyblue/tip-skyblue.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 4.6 KiB |
BIN
test/libs/poshytip/tip-skyblue/tip-skyblue_arrows.png
Normal file
BIN
test/libs/poshytip/tip-skyblue/tip-skyblue_arrows.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 896 B |
59
test/libs/poshytip/tip-twitter/tip-twitter.css
Normal file
59
test/libs/poshytip/tip-twitter/tip-twitter.css
Normal file
@ -0,0 +1,59 @@
|
||||
.tip-twitter {
|
||||
opacity:0.8;
|
||||
z-index:1000;
|
||||
text-align:left;
|
||||
border-radius:4px;
|
||||
-moz-border-radius:4px;
|
||||
-webkit-border-radius:4px;
|
||||
padding:8px 8px;
|
||||
max-width:200px;
|
||||
color:#fff;
|
||||
background-color:#000;
|
||||
/**
|
||||
* - If you set a background-image, border/padding/background-color will be ingnored.
|
||||
* You can set any padding to .tip-inner instead if you need.
|
||||
* - If you want a tiled background-image and border/padding for the tip,
|
||||
* set the background-image to .tip-inner instead.
|
||||
*/
|
||||
}
|
||||
.tip-twitter .tip-inner {
|
||||
font:bold 11px/14px 'Lucida Grande',sans-serif;
|
||||
}
|
||||
|
||||
/* Configure an arrow image - the script will automatically position it on the correct side of the tip */
|
||||
.tip-twitter .tip-arrow-top {
|
||||
margin-top:-5px;
|
||||
margin-left:-5px; /* approx. half the width to center it */
|
||||
top:0;
|
||||
left:50%;
|
||||
width:9px;
|
||||
height:5px;
|
||||
background:url(tip-twitter_arrows.gif) no-repeat;
|
||||
}
|
||||
.tip-twitter .tip-arrow-right {
|
||||
margin-top:-4px; /* approx. half the height to center it */
|
||||
margin-left:0;
|
||||
top:50%;
|
||||
left:100%;
|
||||
width:5px;
|
||||
height:9px;
|
||||
background:url(tip-twitter_arrows.gif) no-repeat -9px 0;
|
||||
}
|
||||
.tip-twitter .tip-arrow-bottom {
|
||||
margin-top:0;
|
||||
margin-left:-5px; /* approx. half the width to center it */
|
||||
top:100%;
|
||||
left:50%;
|
||||
width:9px;
|
||||
height:5px;
|
||||
background:url(tip-twitter_arrows.gif) no-repeat -18px 0;
|
||||
}
|
||||
.tip-twitter .tip-arrow-left {
|
||||
margin-top:-4px; /* approx. half the height to center it */
|
||||
margin-left:-5px;
|
||||
top:50%;
|
||||
left:0;
|
||||
width:5px;
|
||||
height:9px;
|
||||
background:url(tip-twitter_arrows.gif) no-repeat -27px 0;
|
||||
}
|
BIN
test/libs/poshytip/tip-twitter/tip-twitter_arrows.gif
Normal file
BIN
test/libs/poshytip/tip-twitter/tip-twitter_arrows.gif
Normal file
Binary file not shown.
After ![]() (image error) Size: 87 B |
60
test/libs/poshytip/tip-violet/tip-violet.css
Normal file
60
test/libs/poshytip/tip-violet/tip-violet.css
Normal file
@ -0,0 +1,60 @@
|
||||
.tip-violet {
|
||||
z-index:1000;
|
||||
text-align:left;
|
||||
border:1px solid #afafaf;
|
||||
padding:7px;
|
||||
min-width:50px;
|
||||
max-width:530px;
|
||||
color:#860404;
|
||||
background-color:#f2e7fd;
|
||||
background-image:url(tip-violet.png); /* bgImageFrameSize >= 9 should work fine */
|
||||
/**
|
||||
* - If you set a background-image, border/padding/background-color will be ingnored.
|
||||
* You can set any padding to .tip-inner instead if you need.
|
||||
* - If you want a tiled background-image and border/padding for the tip,
|
||||
* set the background-image to .tip-inner instead.
|
||||
*/
|
||||
}
|
||||
.tip-violet .tip-inner {
|
||||
font:bold 12px/18px 'trebuchet ms',arial,helvetica,sans-serif;
|
||||
margin-top:-1px;
|
||||
padding:0 3px 2px 3px;
|
||||
}
|
||||
|
||||
/* Configure an arrow image - the script will automatically position it on the correct side of the tip */
|
||||
.tip-violet .tip-arrow-top {
|
||||
margin-top:-7px;
|
||||
margin-left:15px;
|
||||
top:0;
|
||||
left:0;
|
||||
width:16px;
|
||||
height:10px;
|
||||
background:url(tip-violet_arrows.png) no-repeat;
|
||||
}
|
||||
.tip-violet .tip-arrow-right {
|
||||
margin-top:-9px; /* approx. half the height to center it */
|
||||
margin-left:-4px;
|
||||
top:50%;
|
||||
left:100%;
|
||||
width:10px;
|
||||
height:20px;
|
||||
background:url(tip-violet_arrows.png) no-repeat -16px 0;
|
||||
}
|
||||
.tip-violet .tip-arrow-bottom {
|
||||
margin-top:-6px;
|
||||
margin-left:15px;
|
||||
top:100%;
|
||||
left:0;
|
||||
width:16px;
|
||||
height:13px;
|
||||
background:url(tip-violet_arrows.png) no-repeat -32px 0;
|
||||
}
|
||||
.tip-violet .tip-arrow-left {
|
||||
margin-top:-9px; /* approx. half the height to center it */
|
||||
margin-left:-6px;
|
||||
top:50%;
|
||||
left:0;
|
||||
width:10px;
|
||||
height:20px;
|
||||
background:url(tip-violet_arrows.png) no-repeat -48px 0;
|
||||
}
|
BIN
test/libs/poshytip/tip-violet/tip-violet.png
Normal file
BIN
test/libs/poshytip/tip-violet/tip-violet.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 4.8 KiB |
BIN
test/libs/poshytip/tip-violet/tip-violet_arrows.png
Normal file
BIN
test/libs/poshytip/tip-violet/tip-violet_arrows.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 1.4 KiB |
60
test/libs/poshytip/tip-yellow/tip-yellow.css
Normal file
60
test/libs/poshytip/tip-yellow/tip-yellow.css
Normal file
@ -0,0 +1,60 @@
|
||||
.tip-yellow {
|
||||
z-index:1000;
|
||||
text-align:left;
|
||||
border:1px solid #939393;
|
||||
padding:7px;
|
||||
min-width:50px;
|
||||
max-width:530px;
|
||||
color:#8c3901;
|
||||
background-color:#fef9d9;
|
||||
background-image:url(tip-yellow.png); /* bgImageFrameSize >= 10 should work fine */
|
||||
/**
|
||||
* - If you set a background-image, border/padding/background-color will be ingnored.
|
||||
* You can set any padding to .tip-inner instead if you need.
|
||||
* - If you want a tiled background-image and border/padding for the tip,
|
||||
* set the background-image to .tip-inner instead.
|
||||
*/
|
||||
}
|
||||
.tip-yellow .tip-inner {
|
||||
font:bold 13px/18px 'trebuchet ms',arial,helvetica,sans-serif;
|
||||
margin-top:-2px;
|
||||
padding:0 3px 1px 3px;
|
||||
}
|
||||
|
||||
/* Configure an arrow image - the script will automatically position it on the correct side of the tip */
|
||||
.tip-yellow .tip-arrow-top {
|
||||
margin-top:-7px;
|
||||
margin-left:15px;
|
||||
top:0;
|
||||
left:0;
|
||||
width:16px;
|
||||
height:10px;
|
||||
background:url(tip-yellow_arrows.png) no-repeat;
|
||||
}
|
||||
.tip-yellow .tip-arrow-right {
|
||||
margin-top:-9px; /* approx. half the height to center it */
|
||||
margin-left:-4px;
|
||||
top:50%;
|
||||
left:100%;
|
||||
width:10px;
|
||||
height:20px;
|
||||
background:url(tip-yellow_arrows.png) no-repeat -16px 0;
|
||||
}
|
||||
.tip-yellow .tip-arrow-bottom {
|
||||
margin-top:-6px;
|
||||
margin-left:15px;
|
||||
top:100%;
|
||||
left:0;
|
||||
width:16px;
|
||||
height:13px;
|
||||
background:url(tip-yellow_arrows.png) no-repeat -32px 0;
|
||||
}
|
||||
.tip-yellow .tip-arrow-left {
|
||||
margin-top:-9px; /* approx. half the height to center it */
|
||||
margin-left:-6px;
|
||||
top:50%;
|
||||
left:0;
|
||||
width:10px;
|
||||
height:20px;
|
||||
background:url(tip-yellow_arrows.png) no-repeat -48px 0;
|
||||
}
|
BIN
test/libs/poshytip/tip-yellow/tip-yellow.png
Normal file
BIN
test/libs/poshytip/tip-yellow/tip-yellow.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 5.0 KiB |
BIN
test/libs/poshytip/tip-yellow/tip-yellow_arrows.png
Normal file
BIN
test/libs/poshytip/tip-yellow/tip-yellow_arrows.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 1.4 KiB |
60
test/libs/poshytip/tip-yellowsimple/tip-yellowsimple.css
Normal file
60
test/libs/poshytip/tip-yellowsimple/tip-yellowsimple.css
Normal file
@ -0,0 +1,60 @@
|
||||
.tip-yellowsimple {
|
||||
z-index:1000;
|
||||
text-align:left;
|
||||
border:1px solid #c7bf93;
|
||||
border-radius:4px;
|
||||
-moz-border-radius:4px;
|
||||
-webkit-border-radius:4px;
|
||||
padding:6px 8px;
|
||||
min-width:50px;
|
||||
max-width:300px;
|
||||
color:#000;
|
||||
background-color:#fff9c9;
|
||||
/**
|
||||
* - If you set a background-image, border/padding/background-color will be ingnored.
|
||||
* You can set any padding to .tip-inner instead if you need.
|
||||
* - If you want a tiled background-image and border/padding for the tip,
|
||||
* set the background-image to .tip-inner instead.
|
||||
*/
|
||||
}
|
||||
.tip-yellowsimple .tip-inner {
|
||||
font:12px/16px arial,helvetica,sans-serif;
|
||||
}
|
||||
|
||||
/* Configure an arrow image - the script will automatically position it on the correct side of the tip */
|
||||
.tip-yellowsimple .tip-arrow-top {
|
||||
margin-top:-6px;
|
||||
margin-left:-5px; /* approx. half the width to center it */
|
||||
top:0;
|
||||
left:50%;
|
||||
width:9px;
|
||||
height:6px;
|
||||
background:url(tip-yellowsimple_arrows.gif) no-repeat;
|
||||
}
|
||||
.tip-yellowsimple .tip-arrow-right {
|
||||
margin-top:-4px; /* approx. half the height to center it */
|
||||
margin-left:0;
|
||||
top:50%;
|
||||
left:100%;
|
||||
width:6px;
|
||||
height:9px;
|
||||
background:url(tip-yellowsimple_arrows.gif) no-repeat -9px 0;
|
||||
}
|
||||
.tip-yellowsimple .tip-arrow-bottom {
|
||||
margin-top:0;
|
||||
margin-left:-5px; /* approx. half the width to center it */
|
||||
top:100%;
|
||||
left:50%;
|
||||
width:9px;
|
||||
height:6px;
|
||||
background:url(tip-yellowsimple_arrows.gif) no-repeat -18px 0;
|
||||
}
|
||||
.tip-yellowsimple .tip-arrow-left {
|
||||
margin-top:-4px; /* approx. half the height to center it */
|
||||
margin-left:-6px;
|
||||
top:50%;
|
||||
left:0;
|
||||
width:6px;
|
||||
height:9px;
|
||||
background:url(tip-yellowsimple_arrows.gif) no-repeat -27px 0;
|
||||
}
|
BIN
test/libs/poshytip/tip-yellowsimple/tip-yellowsimple_arrows.gif
Normal file
BIN
test/libs/poshytip/tip-yellowsimple/tip-yellowsimple_arrows.gif
Normal file
Binary file not shown.
After ![]() (image error) Size: 107 B |
Reference in New Issue
Block a user