APCGC_CBS.Admin/Lib/fontIconPicker/jquery.fonticonpicker.js
(开头部分) 26KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* jQuery fontIconPicker - v2.0.0
*
* An icon picker built on top of font icons and jQuery
*
* http://codeb.it/fontIconPicker
*
* Made by Alessandro Benoit & Swashata
* Under MIT License
*
* {@link https://github.com/micc83/fontIconPicker}
*/
;(function ($) {
'use strict';
// Create the defaults once
var defaults = {
theme : 'fip-grey', // The CSS theme to use with this fontIconPicker. You can set different themes on multiple elements on the same page
source : false, // Icons source (array|false|object)
emptyIcon : true, // Empty icon should be shown?
emptyIconValue : '', // The value of the empty icon, change if you select has something else, say "none"
iconsPerPage : 20, // Number of icons per page
hasSearch : true, // Is search enabled?
searchSource : false, // Give a manual search values. If using attributes then for proper search feature we also need to pass icon names under the same order of source
useAttribute : false, // Whether to use attribute selector for printing icons
attributeName : 'data-icon', // HTML Attribute name
convertToHex : true, // Whether or not to convert to hexadecimal for attribute value. If true then please pass decimal integer value to the source (or as value="" attribute of the select field)
allCategoryText : 'From all categories', // The text for the select all category option
unCategorizedText : 'Uncategorized' // The text for the select uncategorized option
};
// The actual plugin constructor
function Plugin(element, options) {
this.element = $(element);
this.settings = $.extend({}, defaults, options);
if (this.settings.emptyIcon) {
this.settings.iconsPerPage--;
}
this.iconPicker = $('<div/>', {
'class': 'icons-selector',
style: 'position: relative',
html: '<div class="selector">' +
'<span class="selected-icon">' +
'<i class="fip-icon-block"></i>' +
'</span>' +
'<span class="selector-button">' +
'<i class="fip-icon-down-dir"></i>' +
'</span>' +
'</div>' +
'<div class="selector-popup" style="display: none;">' + ((this.settings.hasSearch) ?
'<div class="selector-search">' +
'<input type="text" name="" value="" placeholder="Search icon" class="icons-search-input"/>' +
'<i class="fip-icon-search"></i>' +
'</div>' : '') +
'<div class="selector-category">' +
'<select name="" class="icon-category-select" style="display: none">' +
'</select>' +
'</div>' +
后面还有 763 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。