9 lines
76 KiB
JavaScript
9 lines
76 KiB
JavaScript
|
|
/*!
|
||
|
|
* Tipped - A Complete Javascript Tooltip Solution - v4.7.0
|
||
|
|
* (c) 2012-2019 Nick Stakenburg
|
||
|
|
*
|
||
|
|
* http://www.tippedjs.com
|
||
|
|
*
|
||
|
|
* @license: https://creativecommons.org/licenses/by/4.0
|
||
|
|
*/
|
||
|
|
!function(t,i){"function"==typeof define&&define.amd?define(["jquery"],i):"object"==typeof module&&module.exports?module.exports=i(require("jquery")):t.Tipped=i(jQuery)}(this,function($){var Tipped={};$.extend(Tipped,{version:"4.7.0"}),Tipped.Skins={base:{afterUpdate:!1,ajax:{},cache:!0,container:!1,containment:{selector:"viewport",padding:5},close:!1,detach:!0,fadeIn:200,fadeOut:200,showDelay:75,hideDelay:25,hideAfter:!1,hideOn:{element:"mouseleave"},hideOthers:!1,position:"top",inline:!1,offset:{x:0,y:0},onHide:!1,onShow:!1,padding:!0,radius:!0,shadow:!0,showOn:{element:"mousemove"},size:"medium",spinner:!0,stem:!0,target:"element",voila:!0},reset:{ajax:!1,hideOn:{element:"mouseleave",tooltip:"mouseleave"},showOn:{element:"mouseenter",tooltip:"mouseenter"}}},$.each("dark light gray red green blue lightyellow lightblue lightpink".split(" "),function(t,i){Tipped.Skins[i]={}});var Browser=(e=navigator.userAgent,{IE:!(!window.attachEvent||-1!==e.indexOf("Opera"))&&f("MSIE "),Opera:-1<e.indexOf("Opera")&&(!!window.opera&&opera.version&&parseFloat(opera.version())||7.55),WebKit:-1<e.indexOf("AppleWebKit/")&&f("AppleWebKit/"),Gecko:-1<e.indexOf("Gecko")&&-1===e.indexOf("KHTML")&&f("rv:"),MobileSafari:!!e.match(/Apple.*Mobile.*Safari/),Chrome:-1<e.indexOf("Chrome")&&f("Chrome/"),ChromeMobile:-1<e.indexOf("CrMo")&&f("CrMo/"),Android:-1<e.indexOf("Android")&&f("Android "),IEMobile:-1<e.indexOf("IEMobile")&&f("IEMobile/")}),e;function f(t){var i=new RegExp(t+"([\\d.]+)").exec(e);return!i||parseFloat(i[1])}var Support=(i=document.createElement("div"),j="Webkit Moz O ms Khtml".split(" "),{css:{animation:m("animation"),transform:m("transform"),prefixed:function(t){return m(t,"prefix")}},shadow:m("boxShadow")&&m("pointerEvents"),touch:function(){try{return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}catch(t){return!1}}()}),i,j;function m(t,e){var s=t.charAt(0).toUpperCase()+t.substr(1);return function(t,e){for(var s in t)if(void 0!==i.style[t[s]])return"prefix"!==e||t[s];return!1}((t+" "+j.join(s+" ")+s).split(" "),e)}var _slice=Array.prototype.slice,_={wrap:function(t,i){var e=t;return function(){var t=[$.proxy(e,this)].concat(_slice.call(arguments));return i.apply(this,t)}},isElement:function(t){return t&&1===t.nodeType},isText:function(t){return t&&3===t.nodeType},isDocumentFragment:function(t){return t&&11===t.nodeType},delay:function(t,i){var e=_slice.call(arguments,2);return setTimeout(function(){return t.apply(t,e)},i)},defer:function(t){return _.delay.apply(this,[t,1].concat(_slice.call(arguments,1)))},pointer:function(t){return{x:t.pageX,y:t.pageY}},element:{isAttached:function(t){var i=function(t){for(var i=t;i&&i.parentNode;)i=i.parentNode;return i}(t);return!(!i||!i.body)}}};function degrees(t){return 180*t/Math.PI}function radian(t){return t*Math.PI/180}function sec(t){return 1/Math.cos(t)}function sfcc(t){return String.fromCharCode.apply(String,t.replace(" ","").split(","))}function deepExtend(t,i){for(var e in i)i[e]&&i[e].constructor&&i[e].constructor===Object?(t[e]=$.extend({},t[e])||{},deepExtend(t[e],i[e])):t[e]=i[e];return t}var getUID=(U=0,function(t){for(t=t||"_tipped-uid-",U++;document.getElementById(t+U);)U++;return t+U}),U,Position={positions:["topleft","topmiddle","topright","righttop","rightmiddle","rightbottom","bottomright","bottommiddle","bottomleft","leftbottom","leftmiddle","lefttop"],regex:{toOrientation:/^(top|left|bottom|right)(top|left|bottom|right|middle|center)$/,horizontal:/^(top|bottom)/,isCenter:/(middle|center)/,side:/^(top|bottom|left|right)/},toDimension:(X={top:"height",left:"width",bottom:"height",right:"width"},function(t){return X[t]}),isCenter:function(t){return!!t.toLowerCase().match(this.regex.isCenter)},isCorner:function(t){return!this.isCenter(t)},getOrientation:function(t){return t.toLowerCase().match(this.regex.horizontal)?"horizontal":"vertical"},getSide:function(t){var i=null,e=t.toLowerCase().match(this.regex.side);return e&&e[1]&&(i=e[1]),i},split:function(t){return t.toLowerCase().match(this.regex.toOrientation)},_flip:{top:"bottom",b
|