RMS.Manage.Web/bower_components/bootstrap-fileinput-master/js/fileinput.js
(开头部分) 149KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*!
* bootstrap-fileinput v4.3.5
* http://plugins.krajee.com/file-input
*
* Author: Kartik Visweswaran
* Copyright: 2014 - 2016, Kartik Visweswaran, Krajee.com
*
* Licensed under the BSD 3-Clause
* https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md
*/
(function (factory) {
"use strict";
//noinspection JSUnresolvedVariable
if (typeof define === 'function' && define.amd) { // jshint ignore:line
// AMD. Register as an anonymous module.
define(['jquery'], factory); // jshint ignore:line
} else { // noinspection JSUnresolvedVariable
if (typeof module === 'object' && module.exports) { // jshint ignore:line
// Node/CommonJS
// noinspection JSUnresolvedVariable
module.exports = factory(require('jquery')); // jshint ignore:line
} else {
// Browser globals
factory(window.jQuery);
}
}
}(function ($) {
"use strict";
$.fn.fileinputLocales = {};
$.fn.fileinputThemes = {};
var NAMESPACE, MODAL_ID, STYLE_SETTING, OBJECT_PARAMS, DEFAULT_PREVIEW, objUrl, compare, isIE, handler,
previewCache, getNum, hasFileAPISupport, hasDragDropSupport, hasFileUploadSupport, addCss, tMain1, tMain2,
tPreview, tFileIcon, tClose, tCaption, tBtnDefault, tBtnLink, tBtnBrowse, tModalMain, tModal, tProgress, tSize,
tFooter, tActions, tActionDelete, tActionUpload, tActionZoom, tActionDrag, tTagBef, tTagBef1, tTagBef2, tTagAft,
tGeneric, tHtml, tImage, tText, tVideo, tAudio, tFlash, tObject, tPdf, tOther, defaultFileActionSettings,
defaultLayoutTemplates, defaultPreviewTemplates, defaultPreviewZoomSettings, defaultPreviewTypes, getElement,
defaultPreviewSettings, defaultFileTypeSettings, isEmpty, isArray, ifSet, uniqId, htmlEncode, replaceTags,
cleanMemory, findFileName, checkFullScreen, toggleFullScreen, moveArray, FileInput;
NAMESPACE = '.fileinput';
MODAL_ID = 'kvFileinputModal';
STYLE_SETTING = 'style="width:{width};height:{height};"';
OBJECT_PARAMS = '<param name="controller" value="true" />\n' +
'<param name="allowFullScreen" value="true" />\n' +
'<param name="allowScriptAccess" value="always" />\n' +
'<param name="autoPlay" value="false" />\n' +
'<param name="autoStart" value="false" />\n' +
'<param name="quality" value="high" />\n';
DEFAULT_PREVIEW = '<div class="file-preview-other">\n' +
'<span class="{previewFileIconClass}">{previewFileIcon}</span>\n' +
'</div>';
//noinspection JSUnresolvedVariable
objUrl = window.URL || window.webkitURL;
compare = function (input, str, exact) {
return input !== undefined && (exact ? input === str : input.match(str));
};
isIE = function (ver) {
// check for IE versions < 11
后面还有 3227 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。