jizy-tooltip 2.1.2 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1,2 @@
|
|
|
1
|
+
/*! jTooltip v2.1.3 | MIT | 2026-04-23T09:35Z | [default] */
|
|
1
2
|
@keyframes tooltip-anim{0%{opacity:0;transform:matrix(.5,0,0,.8,0,0)}20%{transform:matrix(1,0,0,1,0,0)}40%{opacity:1}70%{transform:matrix(1,0,0,1,0,0)}to{transform:matrix(1,0,0,1,0,0)}}.tooltip{animation:tooltip-anim .7s;background-color:#333;border-radius:4px;box-shadow:0 0 4px hsla(0,0%,100%,.7);color:#fff;font-family:inherit;font-size:14px;line-height:1;max-width:170px;opacity:0;position:absolute;text-align:center;transform:translateZ(0);transition:opacity .8s;z-index:234567891}.tooltip:empty{display:none!important;opacity:0!important}.tooltip .tip-header{border-bottom:1px solid #fff;padding:2px 4px}.tooltip .tip-content{padding:8px 10px}.tooltip.arrow:after{border:0 solid transparent;box-shadow:0 0 4px hsla(0,0%,100%,.7);content:"";display:block;position:absolute}.tooltip.arrow.left:after,.tooltip.arrow.right:after{top:50%;transform:translateY(-50%)}.tooltip.arrow.bottom:after,.tooltip.arrow.top:after{left:50%;transform:translateX(-50%)}.tooltip.arrow.left:after{border-left-color:#333;border-width:6px 0 6px 8px;right:-8px}.tooltip.arrow.right:after{border-right-color:#333;border-width:6px 8px 6px 0;left:-8px}.tooltip.arrow.bottom:after{border-top-color:#333;border-width:0 6px 8px;top:-8px}.tooltip.arrow.top:after{border-bottom-color:#333;border-width:8px 6px 0;bottom:-8px}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! jTooltip v2.1.
|
|
1
|
+
/*! jTooltip v2.1.3 | MIT | 2026-04-23T09:35Z | [default] */
|
|
2
2
|
!function(t){"use strict";if("object"!=typeof t||!t||!t.document)throw new Error("jTooltip requires a window and a document");if(void 0!==t.jTooltip)throw new Error("jTooltip is already defined");!function(){class t{constructor(t){this.el=t,this.uuid=t.dataset.tipId||autoUuid(),this.header=t.dataset.tipHeader||"",this.content=t.dataset.tip||"",this.theme=t.dataset.tipTheme||"",this.position=t.dataset.tipPosition||"top",this.coords=null}setCoords(){const t=this.el.getBoundingClientRect();this.coords={top:t.top+window.scrollY,left:t.left+window.scrollX,right:t.right+window.scrollX,bottom:t.bottom+window.scrollY,width:t.width,height:t.height}}autoUuid(){return crypto.randomUUID?crypto.randomUUID():"tip-"+Date.now()+Math.random().toString(16).slice(2)}}}();t.jTooltip=Tooltip}("undefined"!=typeof window?window:this);
|