%PDF- %PDF-
Direktori : /home/opti/workflow/src/public/app-assets/js/scripts/tooltip/ |
Current File : /home/opti/workflow/src/public/app-assets/js/scripts/tooltip/tooltip.min.js |
/*! * stack-admin-theme (https://pixinvent.com/bootstrap-admin-template/stack) * Copyright 2018 PIXINVENT * Licensed under the Themeforest Standard Licenses */ !function(window,document,$){"use strict";$("#show-tooltip").tooltip({title:"Tooltip Show Event",trigger:"click",placement:"right"}).on("show.bs.tooltip",function(){alert("Show event fired.")}),$("#shown-tooltip").tooltip({title:"Tooltip Shown Event",trigger:"click",placement:"top"}).on("shown.bs.tooltip",function(){alert("Shown event fired.")}),$("#hide-tooltip").tooltip({title:"Tooltip Hide Event",trigger:"click",placement:"bottom"}).on("hide.bs.tooltip",function(){alert("Hide event fired.")}),$("#hidden-tooltip").tooltip({title:"Tooltip Hidden Event",trigger:"click",placement:"left"}).on("hidden.bs.tooltip",function(){alert("Hidden event fired.")}),$("#show-method").on("click",function(){$(this).tooltip("show")}),$("#hide-method").on("mouseenter",function(){$(this).tooltip("show")}),$("#hide-method").on("click",function(){$(this).tooltip("hide")}),$("#toggle-method").on("click",function(){$(this).tooltip("toggle")}),$("#dispose").on("click",function(){$("#dispose-method").tooltip("dispose")}),$(".manual").on("click",function(){$(this).tooltip("show")}),$(".manual").on("mouseout",function(){$(this).tooltip("hide")}),$(".template").on("click",function(){}),$("[data-popup=tooltip-custom]").on("shown.bs.tooltip",function(){var bg="",text="",bgClass="",textClass="",$this=$(this);void 0!==$this.data("bg-color")&&(bg=$this.data("bg-color"),bgClass="tooltip-bg-"+bg,$(".tooltip").addClass(bgClass)),void 0!==$this.data("text-color")&&(text=$this.data("text-color"),textClass="tooltip-text-"+text,$(".tooltip").addClass(textClass))}),$("[data-popup=tooltip-custom]").on("hidden.bs.tooltip",function(){var bg="",text="",bgClass="",textClass="",$this=$(this);void 0!==$this.data("bg-color")&&(bg=$this.data("bg-color"),bgClass="tooltip-bg-"+bg,$(".tooltip").removeClass(bgClass)),void 0!==$this.data("text-color")&&(text=$this.data("text-color"),textClass="tooltip-text-"+text,$(".tooltip").removeClass(textClass))})}(window,document,jQuery);