diff --git a/Makefile b/Makefile index 6443ab22..fd76dda6 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,7 @@ QTIP_CSS_MIN = ${DIST_DIR}/jquery.qtip.min.css QTIP_VER = `cat version.txt` VER = sed s/@VERSION/${QTIP_VER}/ -JS_ENGINE ?= `which nodejs` +JS_ENGINE ?= `which node nodejs` COMPILER = ${JS_ENGINE} ${BUILD_DIR}/uglify.js --unsafe MINIFIER = java -Xmx96m -jar ${BUILD_DIR}/yuicompressor.jar PACKER = java -jar ${BUILD_DIR}/js.jar ${BUILD_DIR}/packer.js diff --git a/dist/jquery.qtip.css b/dist/jquery.qtip.css index 8678b8ea..4b817610 100644 --- a/dist/jquery.qtip.css +++ b/dist/jquery.qtip.css @@ -9,7 +9,7 @@ * http://en.wikipedia.org/wiki/MIT_License * http://en.wikipedia.org/wiki/GNU_General_Public_License * -* Date: Wed Feb 2 00:05:48 2011 +0000 +* Date: Wed Feb 2 00:07:15 2011 +0000 */ /* Fluid class for determining actual width in IE */ diff --git a/dist/jquery.qtip.js b/dist/jquery.qtip.js index 34d8eff3..e1eb5cd6 100644 --- a/dist/jquery.qtip.js +++ b/dist/jquery.qtip.js @@ -9,7 +9,7 @@ * http://en.wikipedia.org/wiki/MIT_License * http://en.wikipedia.org/wiki/GNU_General_Public_License * -* Date: Wed Feb 2 00:05:48 2011 +0000 +* Date: Wed Feb 2 00:07:15 2011 +0000 */ "use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/ diff --git a/dist/jquery.qtip.min.js b/dist/jquery.qtip.min.js index cf06a2e1..d785f8e1 100644 --- a/dist/jquery.qtip.min.js +++ b/dist/jquery.qtip.min.js @@ -9,5 +9,5 @@ * http://en.wikipedia.org/wiki/MIT_License * http://en.wikipedia.org/wiki/GNU_General_Public_License * -* Date: Wed Feb 2 00:05:48 2011 +0000 +* Date: Wed Feb 2 00:07:15 2011 +0000 */"use strict",function(a,b,c){function w(b){var c=this,d=b.elements,e=d.tooltip,f=".bgiframe-"+b.id,g="tooltipmove"+f+" tooltipshow"+f;a.extend(c,{init:function(){d.bgiframe=a(''),d.bgiframe.appendTo(e),e.bind(g,c.adjust)},adjust:function(){var a=b.get("dimensions"),c=b.plugins.tip,f=b.elements.tip,g,h;h=parseInt(e.css("border-left-width"),10)||0,h={left:-h,top:-h},c&&f&&(g=c.corner.precedance==="x"?["width","left"]:["height","top"],h[g[1]]-=f[g[0]]()),d.bgiframe.css(h).css(a)},destroy:function(){c.iframe.remove(),e.unbind(g)}}),c.init()}function v(c){var f=this,g=c.options.show.modal,h=c.elements,i=h.tooltip,j="#qtip-overlay",k=".qtipmodal",l="tooltipshow"+k+" tooltiphide"+k;c.checks.modal={"^show.modal.(on|blur)$":function(){f.init(),h.overlay.toggle(i.is(":visible"))}},a.extend(f,{init:function(){g.on&&(i.unbind(k).bind(l,function(b,c,d){var e=b.type.replace("tooltip","");a.isFunction(g[e])?g[e].call(h.overlay,d,c):f[e](d)}),f.create(),g.blur===d&&h.overlay.unbind(k+c.id).bind("click"+k+c.id,function(){c.hide.call(c)}))},create:function(){var c=a(j),d;if(c.length){h.overlay=c;return c}d=h.overlay=a("
",{id:j.substr(1),css:{position:"absolute",top:0,left:0,display:"none"}}).appendTo(document.body),a(b).bind("resize"+k,function(){d.css({height:Math.max(a(b).height(),a(document).height()),width:Math.max(a(b).width(),a(document).width())})}).trigger("resize");return d},toggle:function(b){var g=h.overlay,j=c.options.show.modal.effect,k=b?"show":"hide",l;g||(g=f.create());if(!g.is(":animated")||b)g.stop(d,e),b&&(l=parseInt(a.css(i[0],"z-index"),10),g.css("z-index",(l||a.fn.qtip.zindex)-1)),a.isFunction(j)?j.call(g,b):j===e?g[k]():g.fadeTo(90,b?.7:0,function(){b||a(this).hide()})},show:function(){f.toggle(d)},hide:function(){f.toggle(e)},destroy:function(){var f=d;a("*").each(function(){var b=a(this).data("qtip");if(b&&b.id!==c.id&&b.options.show.modal)return f=e}),f?(h.overlay.remove(),a(b).unbind(k)):h.overlay.unbind(k+c.id),i.unbind(l)}}),f.init()}function u(b,g){function v(a){var b=a.precedance==="y",c=m[b?"width":"height"],d=m[b?"height":"width"],e=a.string().indexOf("center")>-1,f=c*(e?.5:1),g=Math.pow,h=Math.round,i,j,k,l=Math.sqrt(g(f,2)+g(d,2)),n=[o/f*l,o/d*l];n[2]=Math.sqrt(g(n[0],2)-g(o,2)),n[3]=Math.sqrt(g(n[1],2)-g(o,2)),i=l+n[2]+n[3]+(e?0:n[0]),j=i/l,k=[h(j*d),h(j*c)];return{height:k[b?0:1],width:k[b?1:0]}}function u(b){var c=j.titlebar&&b.y==="top",d=c?j.titlebar:j.content,e=a.browser.mozilla,f=e?"-moz-":a.browser.webkit?"-webkit-":"",g=b.y+(e?"":"-")+b.x,h=f+(e?"border-radius-"+g:"border-"+g+"-radius");return parseInt(d.css(h),10)||parseInt(k.css(h),10)||0}function s(a,b,c){b=b?b:a[a.precedance];var d=j.titlebar&&a.y==="top",e=d?j.titlebar:j.content,f="border-"+b+"-width",g=parseInt(e.css(f),10);return(c?g||parseInt(k.css(f),10):g)||0}function r(b,e,f,g){if(j.tip){var k=a.extend({},h.corner),m=f.adjusted,n;h.corner.fixed!==d&&(m.left&&(k.x=k.x==="center"?m.left>0?"left":"right":k.x==="left"?"right":"left"),m.top&&(k.y=k.y==="center"?m.top>0?"top":"bottom":k.y==="top"?"bottom":"top"),k.string()!==l.corner&&(l.top!==m.top||l.left!==m.left)&&(n=h.update(k))),n||(n=h.position(k,0)),n.right!==c&&(n.left=n.right),n.bottom!==c&&(n.top=n.bottom),n.option=Math.max(0,i.offset),f.left-=n.left.charAt?n.option:(n.right?-1:1)*n.left,f.top-=n.top.charAt?n.option:(n.bottom?-1:1)*n.top,l.left=m.left,l.top=m.top,l.corner=k.string()}}var h=this,i=b.options.style.tip,j=b.elements,k=j.tooltip,l={top:0,left:0,corner:""},m={width:i.width,height:i.height},n={},o=i.border||0,p=".qtip-tip",q=a("")[0].getContext;h.corner=f,h.mimic=f,b.checks.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){h.init()||h.destroy(),b.reposition()},"^style.tip.(height|width)$":function(){m={width:i.width,height:i.height},h.create(),h.update(),b.reposition()},"^content.title.text|style.(classes|widget)$":function(){j.tip&&h.update()}},a.extend(h,{init:function(){var b=h.detectCorner()&&(q||a.browser.msie);b&&(h.create(),h.update(),k.unbind(p).bind("tooltipmove"+p,r));return b},detectCorner:function(){var c=i.corner,f=b.options.position,g=f.at,j=f.my.string?f.my.string():f.my;if(c===e||j===e&&g===e)return e;c===d?h.corner=new a.fn.qtip.plugins.Corner(j):c.string||(h.corner=new a.fn.qtip.plugins.Corner(c),h.corner.fixed=d);return h.corner.string()!=="centercenter"},detectColours:function(){var c=j.tip.css({backgroundColor:"",border:""}),d=h.corner,e=d[d.precedance],f="border-"+e+"-color",g="border"+e.charAt(0)+e.substr(1)+"Color",l=/rgba?\(0, 0, 0(, 0)?\)|transparent/i,o="background-color",p="transparent",q=j.titlebar&&(d.y==="top"||d.y==="center"&&c.position().top+m.height/2+i.offset