%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 14.207.165.8 / Your IP : 216.73.216.102 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/eoffice/frontend/web/assets/7ecbed4c/js/ |
Upload File : |
/*!
* @package yii2-widget-activeform
* @author Kartik Visweswaran <kartikv2@gmail.com>
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2015 - 2018
* @version 1.5.0
*
* Active Field Hints Display Module
*
* Author: Kartik Visweswaran
* Copyright: 2015, Kartik Visweswaran, Krajee.com
* For more JQuery plugins visit http://plugins.krajee.com
* For more Yii related demos visit http://demos.krajee.com
*/
(function ($) {
"use strict";
var isEmpty = function (value, trim) {
return value === null || value === undefined || value === [] || value === '' || trim && $.trim(value) === '';
},
NAMESPACE = '.kvActiveField',
ActiveFieldHint = function (element, options) {
var self = this;
self.$element = $(element);
$.each(options, function (key, val) {
self[key] = val;
});
self.init();
};
ActiveFieldHint.prototype = {
constructor: ActiveFieldHint,
init: function () {
var self = this, $el = self.$element, $block = $el.find('.kv-hint-block'), content = $block.html(),
$hints = $el.find('.kv-hintable'), $span;
$block.hide();
if (isEmpty(content)) {
return;
}
if (!isEmpty(self.contentCssClass)) {
$span = $(document.createElement('span')).addClass(self.contentCssClass).append(content);
$span = $(document.createElement('span')).append($span);
content = $span.html();
$span.remove();
}
$hints.each(function () {
var $src = $(this);
if ($src.hasClass('kv-type-label')) {
$src.removeClass(self.labelCssClass).addClass(self.labelCssClass);
} else {
$src.removeClass('hide ' + self.iconCssClass).addClass(self.iconCssClass);
}
if ($src.hasClass('kv-hint-click')) {
self.listen('click', $src, content);
}
if ($src.hasClass('kv-hint-hover')) {
self.listen('hover', $src, content);
}
});
if (self.hideOnEscape) {
$(document).on('keyup', function (e) {
$hints.each(function () {
var $src = $(this);
if (e.which === 27) {
$src.popover('hide');
}
});
});
}
if (self.hideOnClickOut) {
$('body').on('click', function (e) {
$hints.each(function () {
var $src = $(this);
if (!$src.is(e.target) && $src.has(e.target).length === 0 && $('.popover').has(e.target).length === 0) {
$src.popover('hide');
}
});
});
}
},
listen: function (event, $src, content) {
var self = this, opts = {
html: true,
trigger: 'manual',
content: content,
title: self.title,
placement: self.placement,
container: self.container || false,
animation: !!self.animation,
delay: self.delay,
selector: self.selector
};
if (!isEmpty(self.template)) {
opts.template = self.template;
}
if (!isEmpty(self.viewport)) {
opts.viewport = self.viewport;
}
$src.popover(opts);
if (event === 'click') {
self.raise($src, 'click', function (e) {
e.preventDefault();
$src.popover('toggle');
});
return;
}
self.raise($src, 'mouseenter', function () {
$src.popover('show');
});
self.raise($src, 'mouseleave', function () {
$src.popover('hide');
});
},
raise: function ($elem, event, callback) {
event = event + NAMESPACE;
$elem.off(event).on(event, callback);
}
};
//ActiveFieldHint plugin definition
$.fn.activeFieldHint = function (option) {
var args = Array.apply(null, arguments);
args.shift();
return this.each(function () {
var $this = $(this),
data = $this.data('activeFieldHint'),
options = typeof option === 'object' && option;
if (!data) {
$this.data('activeFieldHint',
(data = new ActiveFieldHint(this, $.extend({}, $.fn.activeFieldHint.defaults, options, $(this).data()))));
}
if (typeof option === 'string') {
data[option].apply(data, args);
}
});
};
$.fn.activeFieldHint.defaults = {
labelCssClass: 'kv-hint-label',
iconCssClass: 'kv-hint-icon',
contentCssClass: 'kv-hint-content',
hideOnEscape: false,
hideOnClickOut: false,
title: '',
placement: 'right',
container: 'form',
delay: 0,
animation: true,
selector: false,
template: '',
viewport: ''
};
})(window.jQuery);