").append( jQuery.parseHTML( responseText ) ).find( selector ) :
+
+ // Otherwise use the full result
+ responseText );
+
+ }).complete( callback && function( jqXHR, status ) {
+ self.each( callback, response || [ jqXHR.responseText, status, jqXHR ] );
+ });
+ }
+
+ return this;
+};
+
+// Attach a bunch of functions for handling common AJAX events
+jQuery.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend" ], function( i, type ){
+ jQuery.fn[ type ] = function( fn ){
+ return this.on( type, fn );
+ };
+});
+
+jQuery.each( [ "get", "post" ], function( i, method ) {
+ jQuery[ method ] = function( url, data, callback, type ) {
+ // shift arguments if data argument was omitted
+ if ( jQuery.isFunction( data ) ) {
+ type = type || callback;
+ callback = data;
+ data = undefined;
+ }
+
+ return jQuery.ajax({
+ url: url,
+ type: method,
+ dataType: type,
+ data: data,
+ success: callback
+ });
+ };
+});
+
+jQuery.extend({
+
+ // Counter for holding the number of active queries
+ active: 0,
+
+ // Last-Modified header cache for next request
+ lastModified: {},
+ etag: {},
+
+ ajaxSettings: {
+ url: ajaxLocation,
+ type: "GET",
+ isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
+ global: true,
+ processData: true,
+ async: true,
+ contentType: "application/x-www-form-urlencoded; charset=UTF-8",
+ /*
+ timeout: 0,
+ data: null,
+ dataType: null,
+ username: null,
+ password: null,
+ cache: null,
+ throws: false,
+ traditional: false,
+ headers: {},
+ */
+
+ accepts: {
+ "*": allTypes,
+ text: "text/plain",
+ html: "text/html",
+ xml: "application/xml, text/xml",
+ json: "application/json, text/javascript"
+ },
+
+ contents: {
+ xml: /xml/,
+ html: /html/,
+ json: /json/
+ },
+
+ responseFields: {
+ xml: "responseXML",
+ text: "responseText"
+ },
+
+ // Data converters
+ // Keys separate source (or catchall "*") and destination types with a single space
+ converters: {
+
+ // Convert anything to text
+ "* text": window.String,
+
+ // Text to html (true = no transformation)
+ "text html": true,
+
+ // Evaluate text as a json expression
+ "text json": jQuery.parseJSON,
+
+ // Parse text as xml
+ "text xml": jQuery.parseXML
+ },
+
+ // For options that shouldn't be deep extended:
+ // you can add your own custom options here if
+ // and when you create one that shouldn't be
+ // deep extended (see ajaxExtend)
+ flatOptions: {
+ url: true,
+ context: true
+ }
+ },
+
+ // Creates a full fledged settings object into target
+ // with both ajaxSettings and settings fields.
+ // If target is omitted, writes into ajaxSettings.
+ ajaxSetup: function( target, settings ) {
+ return settings ?
+
+ // Building a settings object
+ ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
+
+ // Extending ajaxSettings
+ ajaxExtend( jQuery.ajaxSettings, target );
+ },
+
+ ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
+ ajaxTransport: addToPrefiltersOrTransports( transports ),
+
+ // Main method
+ ajax: function( url, options ) {
+
+ // If url is an object, simulate pre-1.5 signature
+ if ( typeof url === "object" ) {
+ options = url;
+ url = undefined;
+ }
+
+ // Force options to be an object
+ options = options || {};
+
+ var // Cross-domain detection vars
+ parts,
+ // Loop variable
+ i,
+ // URL without anti-cache param
+ cacheURL,
+ // Response headers as string
+ responseHeadersString,
+ // timeout handle
+ timeoutTimer,
+
+ // To know if global events are to be dispatched
+ fireGlobals,
+
+ transport,
+ // Response headers
+ responseHeaders,
+ // Create the final options object
+ s = jQuery.ajaxSetup( {}, options ),
+ // Callbacks context
+ callbackContext = s.context || s,
+ // Context for global events is callbackContext if it is a DOM node or jQuery collection
+ globalEventContext = s.context && ( callbackContext.nodeType || callbackContext.jquery ) ?
+ jQuery( callbackContext ) :
+ jQuery.event,
+ // Deferreds
+ deferred = jQuery.Deferred(),
+ completeDeferred = jQuery.Callbacks("once memory"),
+ // Status-dependent callbacks
+ statusCode = s.statusCode || {},
+ // Headers (they are sent all at once)
+ requestHeaders = {},
+ requestHeadersNames = {},
+ // The jqXHR state
+ state = 0,
+ // Default abort message
+ strAbort = "canceled",
+ // Fake xhr
+ jqXHR = {
+ readyState: 0,
+
+ // Builds headers hashtable if needed
+ getResponseHeader: function( key ) {
+ var match;
+ if ( state === 2 ) {
+ if ( !responseHeaders ) {
+ responseHeaders = {};
+ while ( (match = rheaders.exec( responseHeadersString )) ) {
+ responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
+ }
+ }
+ match = responseHeaders[ key.toLowerCase() ];
+ }
+ return match == null ? null : match;
+ },
+
+ // Raw string
+ getAllResponseHeaders: function() {
+ return state === 2 ? responseHeadersString : null;
+ },
+
+ // Caches the header
+ setRequestHeader: function( name, value ) {
+ var lname = name.toLowerCase();
+ if ( !state ) {
+ name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
+ requestHeaders[ name ] = value;
+ }
+ return this;
+ },
+
+ // Overrides response content-type header
+ overrideMimeType: function( type ) {
+ if ( !state ) {
+ s.mimeType = type;
+ }
+ return this;
+ },
+
+ // Status-dependent callbacks
+ statusCode: function( map ) {
+ var code;
+ if ( map ) {
+ if ( state < 2 ) {
+ for ( code in map ) {
+ // Lazy-add the new callback in a way that preserves old ones
+ statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
+ }
+ } else {
+ // Execute the appropriate callbacks
+ jqXHR.always( map[ jqXHR.status ] );
+ }
+ }
+ return this;
+ },
+
+ // Cancel the request
+ abort: function( statusText ) {
+ var finalText = statusText || strAbort;
+ if ( transport ) {
+ transport.abort( finalText );
+ }
+ done( 0, finalText );
+ return this;
+ }
+ };
+
+ // Attach deferreds
+ deferred.promise( jqXHR ).complete = completeDeferred.add;
+ jqXHR.success = jqXHR.done;
+ jqXHR.error = jqXHR.fail;
+
+ // Remove hash character (#7531: and string promotion)
+ // Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
+ // Handle falsy url in the settings object (#10093: consistency with old signature)
+ // We also use the url parameter if available
+ s.url = ( ( url || s.url || ajaxLocation ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );
+
+ // Alias method option to type as per ticket #12004
+ s.type = options.method || options.type || s.method || s.type;
+
+ // Extract dataTypes list
+ s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( core_rnotwhite ) || [""];
+
+ // A cross-domain request is in order when we have a protocol:host:port mismatch
+ if ( s.crossDomain == null ) {
+ parts = rurl.exec( s.url.toLowerCase() );
+ s.crossDomain = !!( parts &&
+ ( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] ||
+ ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
+ ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) )
+ );
+ }
+
+ // Convert data if not already a string
+ if ( s.data && s.processData && typeof s.data !== "string" ) {
+ s.data = jQuery.param( s.data, s.traditional );
+ }
+
+ // Apply prefilters
+ inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
+
+ // If request was aborted inside a prefilter, stop there
+ if ( state === 2 ) {
+ return jqXHR;
+ }
+
+ // We can fire global events as of now if asked to
+ fireGlobals = s.global;
+
+ // Watch for a new set of requests
+ if ( fireGlobals && jQuery.active++ === 0 ) {
+ jQuery.event.trigger("ajaxStart");
+ }
+
+ // Uppercase the type
+ s.type = s.type.toUpperCase();
+
+ // Determine if request has content
+ s.hasContent = !rnoContent.test( s.type );
+
+ // Save the URL in case we're toying with the If-Modified-Since
+ // and/or If-None-Match header later on
+ cacheURL = s.url;
+
+ // More options handling for requests with no content
+ if ( !s.hasContent ) {
+
+ // If data is available, append data to url
+ if ( s.data ) {
+ cacheURL = ( s.url += ( ajax_rquery.test( cacheURL ) ? "&" : "?" ) + s.data );
+ // #9682: remove data so that it's not used in an eventual retry
+ delete s.data;
+ }
+
+ // Add anti-cache in url if needed
+ if ( s.cache === false ) {
+ s.url = rts.test( cacheURL ) ?
+
+ // If there is already a '_' parameter, set its value
+ cacheURL.replace( rts, "$1_=" + ajax_nonce++ ) :
+
+ // Otherwise add one to the end
+ cacheURL + ( ajax_rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ajax_nonce++;
+ }
+ }
+
+ // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
+ if ( s.ifModified ) {
+ if ( jQuery.lastModified[ cacheURL ] ) {
+ jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
+ }
+ if ( jQuery.etag[ cacheURL ] ) {
+ jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
+ }
+ }
+
+ // Set the correct header, if data is being sent
+ if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
+ jqXHR.setRequestHeader( "Content-Type", s.contentType );
+ }
+
+ // Set the Accepts header for the server, depending on the dataType
+ jqXHR.setRequestHeader(
+ "Accept",
+ s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
+ s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
+ s.accepts[ "*" ]
+ );
+
+ // Check for headers option
+ for ( i in s.headers ) {
+ jqXHR.setRequestHeader( i, s.headers[ i ] );
+ }
+
+ // Allow custom headers/mimetypes and early abort
+ if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
+ // Abort if not done already and return
+ return jqXHR.abort();
+ }
+
+ // aborting is no longer a cancellation
+ strAbort = "abort";
+
+ // Install callbacks on deferreds
+ for ( i in { success: 1, error: 1, complete: 1 } ) {
+ jqXHR[ i ]( s[ i ] );
+ }
+
+ // Get transport
+ transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
+
+ // If no transport, we auto-abort
+ if ( !transport ) {
+ done( -1, "No Transport" );
+ } else {
+ jqXHR.readyState = 1;
+
+ // Send global event
+ if ( fireGlobals ) {
+ globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
+ }
+ // Timeout
+ if ( s.async && s.timeout > 0 ) {
+ timeoutTimer = setTimeout(function() {
+ jqXHR.abort("timeout");
+ }, s.timeout );
+ }
+
+ try {
+ state = 1;
+ transport.send( requestHeaders, done );
+ } catch ( e ) {
+ // Propagate exception as error if not done
+ if ( state < 2 ) {
+ done( -1, e );
+ // Simply rethrow otherwise
+ } else {
+ throw e;
+ }
+ }
+ }
+
+ // Callback for when everything is done
+ function done( status, nativeStatusText, responses, headers ) {
+ var isSuccess, success, error, response, modified,
+ statusText = nativeStatusText;
+
+ // Called once
+ if ( state === 2 ) {
+ return;
+ }
+
+ // State is "done" now
+ state = 2;
+
+ // Clear timeout if it exists
+ if ( timeoutTimer ) {
+ clearTimeout( timeoutTimer );
+ }
+
+ // Dereference transport for early garbage collection
+ // (no matter how long the jqXHR object will be used)
+ transport = undefined;
+
+ // Cache response headers
+ responseHeadersString = headers || "";
+
+ // Set readyState
+ jqXHR.readyState = status > 0 ? 4 : 0;
+
+ // Get response data
+ if ( responses ) {
+ response = ajaxHandleResponses( s, jqXHR, responses );
+ }
+
+ // If successful, handle type chaining
+ if ( status >= 200 && status < 300 || status === 304 ) {
+
+ // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
+ if ( s.ifModified ) {
+ modified = jqXHR.getResponseHeader("Last-Modified");
+ if ( modified ) {
+ jQuery.lastModified[ cacheURL ] = modified;
+ }
+ modified = jqXHR.getResponseHeader("etag");
+ if ( modified ) {
+ jQuery.etag[ cacheURL ] = modified;
+ }
+ }
+
+ // if no content
+ if ( status === 204 ) {
+ isSuccess = true;
+ statusText = "nocontent";
+
+ // if not modified
+ } else if ( status === 304 ) {
+ isSuccess = true;
+ statusText = "notmodified";
+
+ // If we have data, let's convert it
+ } else {
+ isSuccess = ajaxConvert( s, response );
+ statusText = isSuccess.state;
+ success = isSuccess.data;
+ error = isSuccess.error;
+ isSuccess = !error;
+ }
+ } else {
+ // We extract error from statusText
+ // then normalize statusText and status for non-aborts
+ error = statusText;
+ if ( status || !statusText ) {
+ statusText = "error";
+ if ( status < 0 ) {
+ status = 0;
+ }
+ }
+ }
+
+ // Set data for the fake xhr object
+ jqXHR.status = status;
+ jqXHR.statusText = ( nativeStatusText || statusText ) + "";
+
+ // Success/Error
+ if ( isSuccess ) {
+ deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
+ } else {
+ deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
+ }
+
+ // Status-dependent callbacks
+ jqXHR.statusCode( statusCode );
+ statusCode = undefined;
+
+ if ( fireGlobals ) {
+ globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",
+ [ jqXHR, s, isSuccess ? success : error ] );
+ }
+
+ // Complete
+ completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
+
+ if ( fireGlobals ) {
+ globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
+ // Handle the global AJAX counter
+ if ( !( --jQuery.active ) ) {
+ jQuery.event.trigger("ajaxStop");
+ }
+ }
+ }
+
+ return jqXHR;
+ },
+
+ getScript: function( url, callback ) {
+ return jQuery.get( url, undefined, callback, "script" );
+ },
+
+ getJSON: function( url, data, callback ) {
+ return jQuery.get( url, data, callback, "json" );
+ }
+});
+
+/* Handles responses to an ajax request:
+ * - sets all responseXXX fields accordingly
+ * - finds the right dataType (mediates between content-type and expected dataType)
+ * - returns the corresponding response
+ */
+function ajaxHandleResponses( s, jqXHR, responses ) {
+ var firstDataType, ct, finalDataType, type,
+ contents = s.contents,
+ dataTypes = s.dataTypes,
+ responseFields = s.responseFields;
+
+ // Fill responseXXX fields
+ for ( type in responseFields ) {
+ if ( type in responses ) {
+ jqXHR[ responseFields[type] ] = responses[ type ];
+ }
+ }
+
+ // Remove auto dataType and get content-type in the process
+ while( dataTypes[ 0 ] === "*" ) {
+ dataTypes.shift();
+ if ( ct === undefined ) {
+ ct = s.mimeType || jqXHR.getResponseHeader("Content-Type");
+ }
+ }
+
+ // Check if we're dealing with a known content-type
+ if ( ct ) {
+ for ( type in contents ) {
+ if ( contents[ type ] && contents[ type ].test( ct ) ) {
+ dataTypes.unshift( type );
+ break;
+ }
+ }
+ }
+
+ // Check to see if we have a response for the expected dataType
+ if ( dataTypes[ 0 ] in responses ) {
+ finalDataType = dataTypes[ 0 ];
+ } else {
+ // Try convertible dataTypes
+ for ( type in responses ) {
+ if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {
+ finalDataType = type;
+ break;
+ }
+ if ( !firstDataType ) {
+ firstDataType = type;
+ }
+ }
+ // Or just use first one
+ finalDataType = finalDataType || firstDataType;
+ }
+
+ // If we found a dataType
+ // We add the dataType to the list if needed
+ // and return the corresponding response
+ if ( finalDataType ) {
+ if ( finalDataType !== dataTypes[ 0 ] ) {
+ dataTypes.unshift( finalDataType );
+ }
+ return responses[ finalDataType ];
+ }
+}
+
+// Chain conversions given the request and the original response
+function ajaxConvert( s, response ) {
+ var conv2, current, conv, tmp,
+ converters = {},
+ i = 0,
+ // Work with a copy of dataTypes in case we need to modify it for conversion
+ dataTypes = s.dataTypes.slice(),
+ prev = dataTypes[ 0 ];
+
+ // Apply the dataFilter if provided
+ if ( s.dataFilter ) {
+ response = s.dataFilter( response, s.dataType );
+ }
+
+ // Create converters map with lowercased keys
+ if ( dataTypes[ 1 ] ) {
+ for ( conv in s.converters ) {
+ converters[ conv.toLowerCase() ] = s.converters[ conv ];
+ }
+ }
+
+ // Convert to each sequential dataType, tolerating list modification
+ for ( ; (current = dataTypes[++i]); ) {
+
+ // There's only work to do if current dataType is non-auto
+ if ( current !== "*" ) {
+
+ // Convert response if prev dataType is non-auto and differs from current
+ if ( prev !== "*" && prev !== current ) {
+
+ // Seek a direct converter
+ conv = converters[ prev + " " + current ] || converters[ "* " + current ];
+
+ // If none found, seek a pair
+ if ( !conv ) {
+ for ( conv2 in converters ) {
+
+ // If conv2 outputs current
+ tmp = conv2.split(" ");
+ if ( tmp[ 1 ] === current ) {
+
+ // If prev can be converted to accepted input
+ conv = converters[ prev + " " + tmp[ 0 ] ] ||
+ converters[ "* " + tmp[ 0 ] ];
+ if ( conv ) {
+ // Condense equivalence converters
+ if ( conv === true ) {
+ conv = converters[ conv2 ];
+
+ // Otherwise, insert the intermediate dataType
+ } else if ( converters[ conv2 ] !== true ) {
+ current = tmp[ 0 ];
+ dataTypes.splice( i--, 0, current );
+ }
+
+ break;
+ }
+ }
+ }
+ }
+
+ // Apply converter (if not an equivalence)
+ if ( conv !== true ) {
+
+ // Unless errors are allowed to bubble, catch and return them
+ if ( conv && s["throws"] ) {
+ response = conv( response );
+ } else {
+ try {
+ response = conv( response );
+ } catch ( e ) {
+ return { state: "parsererror", error: conv ? e : "No conversion from " + prev + " to " + current };
+ }
+ }
+ }
+ }
+
+ // Update prev for next iteration
+ prev = current;
+ }
+ }
+
+ return { state: "success", data: response };
+}
+// Install script dataType
+jQuery.ajaxSetup({
+ accepts: {
+ script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
+ },
+ contents: {
+ script: /(?:java|ecma)script/
+ },
+ converters: {
+ "text script": function( text ) {
+ jQuery.globalEval( text );
+ return text;
+ }
+ }
+});
+
+// Handle cache's special case and global
+jQuery.ajaxPrefilter( "script", function( s ) {
+ if ( s.cache === undefined ) {
+ s.cache = false;
+ }
+ if ( s.crossDomain ) {
+ s.type = "GET";
+ s.global = false;
+ }
+});
+
+// Bind script tag hack transport
+jQuery.ajaxTransport( "script", function(s) {
+
+ // This transport only deals with cross domain requests
+ if ( s.crossDomain ) {
+
+ var script,
+ head = document.head || jQuery("head")[0] || document.documentElement;
+
+ return {
+
+ send: function( _, callback ) {
+
+ script = document.createElement("script");
+
+ script.async = true;
+
+ if ( s.scriptCharset ) {
+ script.charset = s.scriptCharset;
+ }
+
+ script.src = s.url;
+
+ // Attach handlers for all browsers
+ script.onload = script.onreadystatechange = function( _, isAbort ) {
+
+ if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {
+
+ // Handle memory leak in IE
+ script.onload = script.onreadystatechange = null;
+
+ // Remove the script
+ if ( script.parentNode ) {
+ script.parentNode.removeChild( script );
+ }
+
+ // Dereference the script
+ script = null;
+
+ // Callback if not abort
+ if ( !isAbort ) {
+ callback( 200, "success" );
+ }
+ }
+ };
+
+ // Circumvent IE6 bugs with base elements (#2709 and #4378) by prepending
+ // Use native DOM manipulation to avoid our domManip AJAX trickery
+ head.insertBefore( script, head.firstChild );
+ },
+
+ abort: function() {
+ if ( script ) {
+ script.onload( undefined, true );
+ }
+ }
+ };
+ }
+});
+var oldCallbacks = [],
+ rjsonp = /(=)\?(?=&|$)|\?\?/;
+
+// Default jsonp settings
+jQuery.ajaxSetup({
+ jsonp: "callback",
+ jsonpCallback: function() {
+ var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( ajax_nonce++ ) );
+ this[ callback ] = true;
+ return callback;
+ }
+});
+
+// Detect, normalize options and install callbacks for jsonp requests
+jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
+
+ var callbackName, overwritten, responseContainer,
+ jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?
+ "url" :
+ typeof s.data === "string" && !( s.contentType || "" ).indexOf("application/x-www-form-urlencoded") && rjsonp.test( s.data ) && "data"
+ );
+
+ // Handle iff the expected data type is "jsonp" or we have a parameter to set
+ if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {
+
+ // Get callback name, remembering preexisting value associated with it
+ callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?
+ s.jsonpCallback() :
+ s.jsonpCallback;
+
+ // Insert callback into url or form data
+ if ( jsonProp ) {
+ s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );
+ } else if ( s.jsonp !== false ) {
+ s.url += ( ajax_rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
+ }
+
+ // Use data converter to retrieve json after script execution
+ s.converters["script json"] = function() {
+ if ( !responseContainer ) {
+ jQuery.error( callbackName + " was not called" );
+ }
+ return responseContainer[ 0 ];
+ };
+
+ // force json dataType
+ s.dataTypes[ 0 ] = "json";
+
+ // Install callback
+ overwritten = window[ callbackName ];
+ window[ callbackName ] = function() {
+ responseContainer = arguments;
+ };
+
+ // Clean-up function (fires after converters)
+ jqXHR.always(function() {
+ // Restore preexisting value
+ window[ callbackName ] = overwritten;
+
+ // Save back as free
+ if ( s[ callbackName ] ) {
+ // make sure that re-using the options doesn't screw things around
+ s.jsonpCallback = originalSettings.jsonpCallback;
+
+ // save the callback name for future use
+ oldCallbacks.push( callbackName );
+ }
+
+ // Call if it was a function and we have a response
+ if ( responseContainer && jQuery.isFunction( overwritten ) ) {
+ overwritten( responseContainer[ 0 ] );
+ }
+
+ responseContainer = overwritten = undefined;
+ });
+
+ // Delegate to script
+ return "script";
+ }
+});
+var xhrCallbacks, xhrSupported,
+ xhrId = 0,
+ // #5280: Internet Explorer will keep connections alive if we don't abort on unload
+ xhrOnUnloadAbort = window.ActiveXObject && function() {
+ // Abort all pending requests
+ var key;
+ for ( key in xhrCallbacks ) {
+ xhrCallbacks[ key ]( undefined, true );
+ }
+ };
+
+// Functions to create xhrs
+function createStandardXHR() {
+ try {
+ return new window.XMLHttpRequest();
+ } catch( e ) {}
+}
+
+function createActiveXHR() {
+ try {
+ return new window.ActiveXObject("Microsoft.XMLHTTP");
+ } catch( e ) {}
+}
+
+// Create the request object
+// (This is still attached to ajaxSettings for backward compatibility)
+jQuery.ajaxSettings.xhr = window.ActiveXObject ?
+ /* Microsoft failed to properly
+ * implement the XMLHttpRequest in IE7 (can't request local files),
+ * so we use the ActiveXObject when it is available
+ * Additionally XMLHttpRequest can be disabled in IE7/IE8 so
+ * we need a fallback.
+ */
+ function() {
+ return !this.isLocal && createStandardXHR() || createActiveXHR();
+ } :
+ // For all other browsers, use the standard XMLHttpRequest object
+ createStandardXHR;
+
+// Determine support properties
+xhrSupported = jQuery.ajaxSettings.xhr();
+jQuery.support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );
+xhrSupported = jQuery.support.ajax = !!xhrSupported;
+
+// Create transport if the browser can provide an xhr
+if ( xhrSupported ) {
+
+ jQuery.ajaxTransport(function( s ) {
+ // Cross domain only allowed if supported through XMLHttpRequest
+ if ( !s.crossDomain || jQuery.support.cors ) {
+
+ var callback;
+
+ return {
+ send: function( headers, complete ) {
+
+ // Get a new xhr
+ var handle, i,
+ xhr = s.xhr();
+
+ // Open the socket
+ // Passing null username, generates a login popup on Opera (#2865)
+ if ( s.username ) {
+ xhr.open( s.type, s.url, s.async, s.username, s.password );
+ } else {
+ xhr.open( s.type, s.url, s.async );
+ }
+
+ // Apply custom fields if provided
+ if ( s.xhrFields ) {
+ for ( i in s.xhrFields ) {
+ xhr[ i ] = s.xhrFields[ i ];
+ }
+ }
+
+ // Override mime type if needed
+ if ( s.mimeType && xhr.overrideMimeType ) {
+ xhr.overrideMimeType( s.mimeType );
+ }
+
+ // X-Requested-With header
+ // For cross-domain requests, seeing as conditions for a preflight are
+ // akin to a jigsaw puzzle, we simply never set it to be sure.
+ // (it can always be set on a per-request basis or even using ajaxSetup)
+ // For same-domain requests, won't change header if already provided.
+ if ( !s.crossDomain && !headers["X-Requested-With"] ) {
+ headers["X-Requested-With"] = "XMLHttpRequest";
+ }
+
+ // Need an extra try/catch for cross domain requests in Firefox 3
+ try {
+ for ( i in headers ) {
+ xhr.setRequestHeader( i, headers[ i ] );
+ }
+ } catch( err ) {}
+
+ // Do send the request
+ // This may raise an exception which is actually
+ // handled in jQuery.ajax (so no try/catch here)
+ xhr.send( ( s.hasContent && s.data ) || null );
+
+ // Listener
+ callback = function( _, isAbort ) {
+ var status, responseHeaders, statusText, responses;
+
+ // Firefox throws exceptions when accessing properties
+ // of an xhr when a network error occurred
+ // http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)
+ try {
+
+ // Was never called and is aborted or complete
+ if ( callback && ( isAbort || xhr.readyState === 4 ) ) {
+
+ // Only called once
+ callback = undefined;
+
+ // Do not keep as active anymore
+ if ( handle ) {
+ xhr.onreadystatechange = jQuery.noop;
+ if ( xhrOnUnloadAbort ) {
+ delete xhrCallbacks[ handle ];
+ }
+ }
+
+ // If it's an abort
+ if ( isAbort ) {
+ // Abort it manually if needed
+ if ( xhr.readyState !== 4 ) {
+ xhr.abort();
+ }
+ } else {
+ responses = {};
+ status = xhr.status;
+ responseHeaders = xhr.getAllResponseHeaders();
+
+ // When requesting binary data, IE6-9 will throw an exception
+ // on any attempt to access responseText (#11426)
+ if ( typeof xhr.responseText === "string" ) {
+ responses.text = xhr.responseText;
+ }
+
+ // Firefox throws an exception when accessing
+ // statusText for faulty cross-domain requests
+ try {
+ statusText = xhr.statusText;
+ } catch( e ) {
+ // We normalize with Webkit giving an empty statusText
+ statusText = "";
+ }
+
+ // Filter status for non standard behaviors
+
+ // If the request is local and we have data: assume a success
+ // (success with no data won't get notified, that's the best we
+ // can do given current implementations)
+ if ( !status && s.isLocal && !s.crossDomain ) {
+ status = responses.text ? 200 : 404;
+ // IE - #1450: sometimes returns 1223 when it should be 204
+ } else if ( status === 1223 ) {
+ status = 204;
+ }
+ }
+ }
+ } catch( firefoxAccessException ) {
+ if ( !isAbort ) {
+ complete( -1, firefoxAccessException );
+ }
+ }
+
+ // Call complete if needed
+ if ( responses ) {
+ complete( status, statusText, responses, responseHeaders );
+ }
+ };
+
+ if ( !s.async ) {
+ // if we're in sync mode we fire the callback
+ callback();
+ } else if ( xhr.readyState === 4 ) {
+ // (IE6 & IE7) if it's in cache and has been
+ // retrieved directly we need to fire the callback
+ setTimeout( callback );
+ } else {
+ handle = ++xhrId;
+ if ( xhrOnUnloadAbort ) {
+ // Create the active xhrs callbacks list if needed
+ // and attach the unload handler
+ if ( !xhrCallbacks ) {
+ xhrCallbacks = {};
+ jQuery( window ).unload( xhrOnUnloadAbort );
+ }
+ // Add to list of active xhrs callbacks
+ xhrCallbacks[ handle ] = callback;
+ }
+ xhr.onreadystatechange = callback;
+ }
+ },
+
+ abort: function() {
+ if ( callback ) {
+ callback( undefined, true );
+ }
+ }
+ };
+ }
+ });
+}
+var fxNow, timerId,
+ rfxtypes = /^(?:toggle|show|hide)$/,
+ rfxnum = new RegExp( "^(?:([+-])=|)(" + core_pnum + ")([a-z%]*)$", "i" ),
+ rrun = /queueHooks$/,
+ animationPrefilters = [ defaultPrefilter ],
+ tweeners = {
+ "*": [function( prop, value ) {
+ var end, unit,
+ tween = this.createTween( prop, value ),
+ parts = rfxnum.exec( value ),
+ target = tween.cur(),
+ start = +target || 0,
+ scale = 1,
+ maxIterations = 20;
+
+ if ( parts ) {
+ end = +parts[2];
+ unit = parts[3] || ( jQuery.cssNumber[ prop ] ? "" : "px" );
+
+ // We need to compute starting value
+ if ( unit !== "px" && start ) {
+ // Iteratively approximate from a nonzero starting point
+ // Prefer the current property, because this process will be trivial if it uses the same units
+ // Fallback to end or a simple constant
+ start = jQuery.css( tween.elem, prop, true ) || end || 1;
+
+ do {
+ // If previous iteration zeroed out, double until we get *something*
+ // Use a string for doubling factor so we don't accidentally see scale as unchanged below
+ scale = scale || ".5";
+
+ // Adjust and apply
+ start = start / scale;
+ jQuery.style( tween.elem, prop, start + unit );
+
+ // Update scale, tolerating zero or NaN from tween.cur()
+ // And breaking the loop if scale is unchanged or perfect, or if we've just had enough
+ } while ( scale !== (scale = tween.cur() / target) && scale !== 1 && --maxIterations );
+ }
+
+ tween.unit = unit;
+ tween.start = start;
+ // If a +=/-= token was provided, we're doing a relative animation
+ tween.end = parts[1] ? start + ( parts[1] + 1 ) * end : end;
+ }
+ return tween;
+ }]
+ };
+
+// Animations created synchronously will run synchronously
+function createFxNow() {
+ setTimeout(function() {
+ fxNow = undefined;
+ });
+ return ( fxNow = jQuery.now() );
+}
+
+function createTweens( animation, props ) {
+ jQuery.each( props, function( prop, value ) {
+ var collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ),
+ index = 0,
+ length = collection.length;
+ for ( ; index < length; index++ ) {
+ if ( collection[ index ].call( animation, prop, value ) ) {
+
+ // we're done with this property
+ return;
+ }
+ }
+ });
+}
+
+function Animation( elem, properties, options ) {
+ var result,
+ stopped,
+ index = 0,
+ length = animationPrefilters.length,
+ deferred = jQuery.Deferred().always( function() {
+ // don't match elem in the :animated selector
+ delete tick.elem;
+ }),
+ tick = function() {
+ if ( stopped ) {
+ return false;
+ }
+ var currentTime = fxNow || createFxNow(),
+ remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
+ // archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497)
+ temp = remaining / animation.duration || 0,
+ percent = 1 - temp,
+ index = 0,
+ length = animation.tweens.length;
+
+ for ( ; index < length ; index++ ) {
+ animation.tweens[ index ].run( percent );
+ }
+
+ deferred.notifyWith( elem, [ animation, percent, remaining ]);
+
+ if ( percent < 1 && length ) {
+ return remaining;
+ } else {
+ deferred.resolveWith( elem, [ animation ] );
+ return false;
+ }
+ },
+ animation = deferred.promise({
+ elem: elem,
+ props: jQuery.extend( {}, properties ),
+ opts: jQuery.extend( true, { specialEasing: {} }, options ),
+ originalProperties: properties,
+ originalOptions: options,
+ startTime: fxNow || createFxNow(),
+ duration: options.duration,
+ tweens: [],
+ createTween: function( prop, end ) {
+ var tween = jQuery.Tween( elem, animation.opts, prop, end,
+ animation.opts.specialEasing[ prop ] || animation.opts.easing );
+ animation.tweens.push( tween );
+ return tween;
+ },
+ stop: function( gotoEnd ) {
+ var index = 0,
+ // if we are going to the end, we want to run all the tweens
+ // otherwise we skip this part
+ length = gotoEnd ? animation.tweens.length : 0;
+ if ( stopped ) {
+ return this;
+ }
+ stopped = true;
+ for ( ; index < length ; index++ ) {
+ animation.tweens[ index ].run( 1 );
+ }
+
+ // resolve when we played the last frame
+ // otherwise, reject
+ if ( gotoEnd ) {
+ deferred.resolveWith( elem, [ animation, gotoEnd ] );
+ } else {
+ deferred.rejectWith( elem, [ animation, gotoEnd ] );
+ }
+ return this;
+ }
+ }),
+ props = animation.props;
+
+ propFilter( props, animation.opts.specialEasing );
+
+ for ( ; index < length ; index++ ) {
+ result = animationPrefilters[ index ].call( animation, elem, props, animation.opts );
+ if ( result ) {
+ return result;
+ }
+ }
+
+ createTweens( animation, props );
+
+ if ( jQuery.isFunction( animation.opts.start ) ) {
+ animation.opts.start.call( elem, animation );
+ }
+
+ jQuery.fx.timer(
+ jQuery.extend( tick, {
+ elem: elem,
+ anim: animation,
+ queue: animation.opts.queue
+ })
+ );
+
+ // attach callbacks from options
+ return animation.progress( animation.opts.progress )
+ .done( animation.opts.done, animation.opts.complete )
+ .fail( animation.opts.fail )
+ .always( animation.opts.always );
+}
+
+function propFilter( props, specialEasing ) {
+ var value, name, index, easing, hooks;
+
+ // camelCase, specialEasing and expand cssHook pass
+ for ( index in props ) {
+ name = jQuery.camelCase( index );
+ easing = specialEasing[ name ];
+ value = props[ index ];
+ if ( jQuery.isArray( value ) ) {
+ easing = value[ 1 ];
+ value = props[ index ] = value[ 0 ];
+ }
+
+ if ( index !== name ) {
+ props[ name ] = value;
+ delete props[ index ];
+ }
+
+ hooks = jQuery.cssHooks[ name ];
+ if ( hooks && "expand" in hooks ) {
+ value = hooks.expand( value );
+ delete props[ name ];
+
+ // not quite $.extend, this wont overwrite keys already present.
+ // also - reusing 'index' from above because we have the correct "name"
+ for ( index in value ) {
+ if ( !( index in props ) ) {
+ props[ index ] = value[ index ];
+ specialEasing[ index ] = easing;
+ }
+ }
+ } else {
+ specialEasing[ name ] = easing;
+ }
+ }
+}
+
+jQuery.Animation = jQuery.extend( Animation, {
+
+ tweener: function( props, callback ) {
+ if ( jQuery.isFunction( props ) ) {
+ callback = props;
+ props = [ "*" ];
+ } else {
+ props = props.split(" ");
+ }
+
+ var prop,
+ index = 0,
+ length = props.length;
+
+ for ( ; index < length ; index++ ) {
+ prop = props[ index ];
+ tweeners[ prop ] = tweeners[ prop ] || [];
+ tweeners[ prop ].unshift( callback );
+ }
+ },
+
+ prefilter: function( callback, prepend ) {
+ if ( prepend ) {
+ animationPrefilters.unshift( callback );
+ } else {
+ animationPrefilters.push( callback );
+ }
+ }
+});
+
+function defaultPrefilter( elem, props, opts ) {
+ /*jshint validthis:true */
+ var prop, index, length,
+ value, dataShow, toggle,
+ tween, hooks, oldfire,
+ anim = this,
+ style = elem.style,
+ orig = {},
+ handled = [],
+ hidden = elem.nodeType && isHidden( elem );
+
+ // handle queue: false promises
+ if ( !opts.queue ) {
+ hooks = jQuery._queueHooks( elem, "fx" );
+ if ( hooks.unqueued == null ) {
+ hooks.unqueued = 0;
+ oldfire = hooks.empty.fire;
+ hooks.empty.fire = function() {
+ if ( !hooks.unqueued ) {
+ oldfire();
+ }
+ };
+ }
+ hooks.unqueued++;
+
+ anim.always(function() {
+ // doing this makes sure that the complete handler will be called
+ // before this completes
+ anim.always(function() {
+ hooks.unqueued--;
+ if ( !jQuery.queue( elem, "fx" ).length ) {
+ hooks.empty.fire();
+ }
+ });
+ });
+ }
+
+ // height/width overflow pass
+ if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) {
+ // Make sure that nothing sneaks out
+ // Record all 3 overflow attributes because IE does not
+ // change the overflow attribute when overflowX and
+ // overflowY are set to the same value
+ opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];
+
+ // Set display property to inline-block for height/width
+ // animations on inline elements that are having width/height animated
+ if ( jQuery.css( elem, "display" ) === "inline" &&
+ jQuery.css( elem, "float" ) === "none" ) {
+
+ // inline-level elements accept inline-block;
+ // block-level elements need to be inline with layout
+ if ( !jQuery.support.inlineBlockNeedsLayout || css_defaultDisplay( elem.nodeName ) === "inline" ) {
+ style.display = "inline-block";
+
+ } else {
+ style.zoom = 1;
+ }
+ }
+ }
+
+ if ( opts.overflow ) {
+ style.overflow = "hidden";
+ if ( !jQuery.support.shrinkWrapBlocks ) {
+ anim.always(function() {
+ style.overflow = opts.overflow[ 0 ];
+ style.overflowX = opts.overflow[ 1 ];
+ style.overflowY = opts.overflow[ 2 ];
+ });
+ }
+ }
+
+
+ // show/hide pass
+ for ( index in props ) {
+ value = props[ index ];
+ if ( rfxtypes.exec( value ) ) {
+ delete props[ index ];
+ toggle = toggle || value === "toggle";
+ if ( value === ( hidden ? "hide" : "show" ) ) {
+ continue;
+ }
+ handled.push( index );
+ }
+ }
+
+ length = handled.length;
+ if ( length ) {
+ dataShow = jQuery._data( elem, "fxshow" ) || jQuery._data( elem, "fxshow", {} );
+ if ( "hidden" in dataShow ) {
+ hidden = dataShow.hidden;
+ }
+
+ // store state if its toggle - enables .stop().toggle() to "reverse"
+ if ( toggle ) {
+ dataShow.hidden = !hidden;
+ }
+ if ( hidden ) {
+ jQuery( elem ).show();
+ } else {
+ anim.done(function() {
+ jQuery( elem ).hide();
+ });
+ }
+ anim.done(function() {
+ var prop;
+ jQuery._removeData( elem, "fxshow" );
+ for ( prop in orig ) {
+ jQuery.style( elem, prop, orig[ prop ] );
+ }
+ });
+ for ( index = 0 ; index < length ; index++ ) {
+ prop = handled[ index ];
+ tween = anim.createTween( prop, hidden ? dataShow[ prop ] : 0 );
+ orig[ prop ] = dataShow[ prop ] || jQuery.style( elem, prop );
+
+ if ( !( prop in dataShow ) ) {
+ dataShow[ prop ] = tween.start;
+ if ( hidden ) {
+ tween.end = tween.start;
+ tween.start = prop === "width" || prop === "height" ? 1 : 0;
+ }
+ }
+ }
+ }
+}
+
+function Tween( elem, options, prop, end, easing ) {
+ return new Tween.prototype.init( elem, options, prop, end, easing );
+}
+jQuery.Tween = Tween;
+
+Tween.prototype = {
+ constructor: Tween,
+ init: function( elem, options, prop, end, easing, unit ) {
+ this.elem = elem;
+ this.prop = prop;
+ this.easing = easing || "swing";
+ this.options = options;
+ this.start = this.now = this.cur();
+ this.end = end;
+ this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" );
+ },
+ cur: function() {
+ var hooks = Tween.propHooks[ this.prop ];
+
+ return hooks && hooks.get ?
+ hooks.get( this ) :
+ Tween.propHooks._default.get( this );
+ },
+ run: function( percent ) {
+ var eased,
+ hooks = Tween.propHooks[ this.prop ];
+
+ if ( this.options.duration ) {
+ this.pos = eased = jQuery.easing[ this.easing ](
+ percent, this.options.duration * percent, 0, 1, this.options.duration
+ );
+ } else {
+ this.pos = eased = percent;
+ }
+ this.now = ( this.end - this.start ) * eased + this.start;
+
+ if ( this.options.step ) {
+ this.options.step.call( this.elem, this.now, this );
+ }
+
+ if ( hooks && hooks.set ) {
+ hooks.set( this );
+ } else {
+ Tween.propHooks._default.set( this );
+ }
+ return this;
+ }
+};
+
+Tween.prototype.init.prototype = Tween.prototype;
+
+Tween.propHooks = {
+ _default: {
+ get: function( tween ) {
+ var result;
+
+ if ( tween.elem[ tween.prop ] != null &&
+ (!tween.elem.style || tween.elem.style[ tween.prop ] == null) ) {
+ return tween.elem[ tween.prop ];
+ }
+
+ // passing an empty string as a 3rd parameter to .css will automatically
+ // attempt a parseFloat and fallback to a string if the parse fails
+ // so, simple values such as "10px" are parsed to Float.
+ // complex values such as "rotate(1rad)" are returned as is.
+ result = jQuery.css( tween.elem, tween.prop, "" );
+ // Empty strings, null, undefined and "auto" are converted to 0.
+ return !result || result === "auto" ? 0 : result;
+ },
+ set: function( tween ) {
+ // use step hook for back compat - use cssHook if its there - use .style if its
+ // available and use plain properties where available
+ if ( jQuery.fx.step[ tween.prop ] ) {
+ jQuery.fx.step[ tween.prop ]( tween );
+ } else if ( tween.elem.style && ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || jQuery.cssHooks[ tween.prop ] ) ) {
+ jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
+ } else {
+ tween.elem[ tween.prop ] = tween.now;
+ }
+ }
+ }
+};
+
+// Remove in 2.0 - this supports IE8's panic based approach
+// to setting things on disconnected nodes
+
+Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
+ set: function( tween ) {
+ if ( tween.elem.nodeType && tween.elem.parentNode ) {
+ tween.elem[ tween.prop ] = tween.now;
+ }
+ }
+};
+
+jQuery.each([ "toggle", "show", "hide" ], function( i, name ) {
+ var cssFn = jQuery.fn[ name ];
+ jQuery.fn[ name ] = function( speed, easing, callback ) {
+ return speed == null || typeof speed === "boolean" ?
+ cssFn.apply( this, arguments ) :
+ this.animate( genFx( name, true ), speed, easing, callback );
+ };
+});
+
+jQuery.fn.extend({
+ fadeTo: function( speed, to, easing, callback ) {
+
+ // show any hidden elements after setting opacity to 0
+ return this.filter( isHidden ).css( "opacity", 0 ).show()
+
+ // animate to the value specified
+ .end().animate({ opacity: to }, speed, easing, callback );
+ },
+ animate: function( prop, speed, easing, callback ) {
+ var empty = jQuery.isEmptyObject( prop ),
+ optall = jQuery.speed( speed, easing, callback ),
+ doAnimation = function() {
+ // Operate on a copy of prop so per-property easing won't be lost
+ var anim = Animation( this, jQuery.extend( {}, prop ), optall );
+ doAnimation.finish = function() {
+ anim.stop( true );
+ };
+ // Empty animations, or finishing resolves immediately
+ if ( empty || jQuery._data( this, "finish" ) ) {
+ anim.stop( true );
+ }
+ };
+ doAnimation.finish = doAnimation;
+
+ return empty || optall.queue === false ?
+ this.each( doAnimation ) :
+ this.queue( optall.queue, doAnimation );
+ },
+ stop: function( type, clearQueue, gotoEnd ) {
+ var stopQueue = function( hooks ) {
+ var stop = hooks.stop;
+ delete hooks.stop;
+ stop( gotoEnd );
+ };
+
+ if ( typeof type !== "string" ) {
+ gotoEnd = clearQueue;
+ clearQueue = type;
+ type = undefined;
+ }
+ if ( clearQueue && type !== false ) {
+ this.queue( type || "fx", [] );
+ }
+
+ return this.each(function() {
+ var dequeue = true,
+ index = type != null && type + "queueHooks",
+ timers = jQuery.timers,
+ data = jQuery._data( this );
+
+ if ( index ) {
+ if ( data[ index ] && data[ index ].stop ) {
+ stopQueue( data[ index ] );
+ }
+ } else {
+ for ( index in data ) {
+ if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {
+ stopQueue( data[ index ] );
+ }
+ }
+ }
+
+ for ( index = timers.length; index--; ) {
+ if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) {
+ timers[ index ].anim.stop( gotoEnd );
+ dequeue = false;
+ timers.splice( index, 1 );
+ }
+ }
+
+ // start the next in the queue if the last step wasn't forced
+ // timers currently will call their complete callbacks, which will dequeue
+ // but only if they were gotoEnd
+ if ( dequeue || !gotoEnd ) {
+ jQuery.dequeue( this, type );
+ }
+ });
+ },
+ finish: function( type ) {
+ if ( type !== false ) {
+ type = type || "fx";
+ }
+ return this.each(function() {
+ var index,
+ data = jQuery._data( this ),
+ queue = data[ type + "queue" ],
+ hooks = data[ type + "queueHooks" ],
+ timers = jQuery.timers,
+ length = queue ? queue.length : 0;
+
+ // enable finishing flag on private data
+ data.finish = true;
+
+ // empty the queue first
+ jQuery.queue( this, type, [] );
+
+ if ( hooks && hooks.cur && hooks.cur.finish ) {
+ hooks.cur.finish.call( this );
+ }
+
+ // look for any active animations, and finish them
+ for ( index = timers.length; index--; ) {
+ if ( timers[ index ].elem === this && timers[ index ].queue === type ) {
+ timers[ index ].anim.stop( true );
+ timers.splice( index, 1 );
+ }
+ }
+
+ // look for any animations in the old queue and finish them
+ for ( index = 0; index < length; index++ ) {
+ if ( queue[ index ] && queue[ index ].finish ) {
+ queue[ index ].finish.call( this );
+ }
+ }
+
+ // turn off finishing flag
+ delete data.finish;
+ });
+ }
+});
+
+// Generate parameters to create a standard animation
+function genFx( type, includeWidth ) {
+ var which,
+ attrs = { height: type },
+ i = 0;
+
+ // if we include width, step value is 1 to do all cssExpand values,
+ // if we don't include width, step value is 2 to skip over Left and Right
+ includeWidth = includeWidth? 1 : 0;
+ for( ; i < 4 ; i += 2 - includeWidth ) {
+ which = cssExpand[ i ];
+ attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
+ }
+
+ if ( includeWidth ) {
+ attrs.opacity = attrs.width = type;
+ }
+
+ return attrs;
+}
+
+// Generate shortcuts for custom animations
+jQuery.each({
+ slideDown: genFx("show"),
+ slideUp: genFx("hide"),
+ slideToggle: genFx("toggle"),
+ fadeIn: { opacity: "show" },
+ fadeOut: { opacity: "hide" },
+ fadeToggle: { opacity: "toggle" }
+}, function( name, props ) {
+ jQuery.fn[ name ] = function( speed, easing, callback ) {
+ return this.animate( props, speed, easing, callback );
+ };
+});
+
+jQuery.speed = function( speed, easing, fn ) {
+ var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
+ complete: fn || !fn && easing ||
+ jQuery.isFunction( speed ) && speed,
+ duration: speed,
+ easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
+ };
+
+ opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
+ opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
+
+ // normalize opt.queue - true/undefined/null -> "fx"
+ if ( opt.queue == null || opt.queue === true ) {
+ opt.queue = "fx";
+ }
+
+ // Queueing
+ opt.old = opt.complete;
+
+ opt.complete = function() {
+ if ( jQuery.isFunction( opt.old ) ) {
+ opt.old.call( this );
+ }
+
+ if ( opt.queue ) {
+ jQuery.dequeue( this, opt.queue );
+ }
+ };
+
+ return opt;
+};
+
+jQuery.easing = {
+ linear: function( p ) {
+ return p;
+ },
+ swing: function( p ) {
+ return 0.5 - Math.cos( p*Math.PI ) / 2;
+ }
+};
+
+jQuery.timers = [];
+jQuery.fx = Tween.prototype.init;
+jQuery.fx.tick = function() {
+ var timer,
+ timers = jQuery.timers,
+ i = 0;
+
+ fxNow = jQuery.now();
+
+ for ( ; i < timers.length; i++ ) {
+ timer = timers[ i ];
+ // Checks the timer has not already been removed
+ if ( !timer() && timers[ i ] === timer ) {
+ timers.splice( i--, 1 );
+ }
+ }
+
+ if ( !timers.length ) {
+ jQuery.fx.stop();
+ }
+ fxNow = undefined;
+};
+
+jQuery.fx.timer = function( timer ) {
+ if ( timer() && jQuery.timers.push( timer ) ) {
+ jQuery.fx.start();
+ }
+};
+
+jQuery.fx.interval = 13;
+
+jQuery.fx.start = function() {
+ if ( !timerId ) {
+ timerId = setInterval( jQuery.fx.tick, jQuery.fx.interval );
+ }
+};
+
+jQuery.fx.stop = function() {
+ clearInterval( timerId );
+ timerId = null;
+};
+
+jQuery.fx.speeds = {
+ slow: 600,
+ fast: 200,
+ // Default speed
+ _default: 400
+};
+
+// Back Compat <1.8 extension point
+jQuery.fx.step = {};
+
+if ( jQuery.expr && jQuery.expr.filters ) {
+ jQuery.expr.filters.animated = function( elem ) {
+ return jQuery.grep(jQuery.timers, function( fn ) {
+ return elem === fn.elem;
+ }).length;
+ };
+}
+jQuery.fn.offset = function( options ) {
+ if ( arguments.length ) {
+ return options === undefined ?
+ this :
+ this.each(function( i ) {
+ jQuery.offset.setOffset( this, options, i );
+ });
+ }
+
+ var docElem, win,
+ box = { top: 0, left: 0 },
+ elem = this[ 0 ],
+ doc = elem && elem.ownerDocument;
+
+ if ( !doc ) {
+ return;
+ }
+
+ docElem = doc.documentElement;
+
+ // Make sure it's not a disconnected DOM node
+ if ( !jQuery.contains( docElem, elem ) ) {
+ return box;
+ }
+
+ // If we don't have gBCR, just use 0,0 rather than error
+ // BlackBerry 5, iOS 3 (original iPhone)
+ if ( typeof elem.getBoundingClientRect !== core_strundefined ) {
+ box = elem.getBoundingClientRect();
+ }
+ win = getWindow( doc );
+ return {
+ top: box.top + ( win.pageYOffset || docElem.scrollTop ) - ( docElem.clientTop || 0 ),
+ left: box.left + ( win.pageXOffset || docElem.scrollLeft ) - ( docElem.clientLeft || 0 )
+ };
+};
+
+jQuery.offset = {
+
+ setOffset: function( elem, options, i ) {
+ var position = jQuery.css( elem, "position" );
+
+ // set position first, in-case top/left are set even on static elem
+ if ( position === "static" ) {
+ elem.style.position = "relative";
+ }
+
+ var curElem = jQuery( elem ),
+ curOffset = curElem.offset(),
+ curCSSTop = jQuery.css( elem, "top" ),
+ curCSSLeft = jQuery.css( elem, "left" ),
+ calculatePosition = ( position === "absolute" || position === "fixed" ) && jQuery.inArray("auto", [curCSSTop, curCSSLeft]) > -1,
+ props = {}, curPosition = {}, curTop, curLeft;
+
+ // need to be able to calculate position if either top or left is auto and position is either absolute or fixed
+ if ( calculatePosition ) {
+ curPosition = curElem.position();
+ curTop = curPosition.top;
+ curLeft = curPosition.left;
+ } else {
+ curTop = parseFloat( curCSSTop ) || 0;
+ curLeft = parseFloat( curCSSLeft ) || 0;
+ }
+
+ if ( jQuery.isFunction( options ) ) {
+ options = options.call( elem, i, curOffset );
+ }
+
+ if ( options.top != null ) {
+ props.top = ( options.top - curOffset.top ) + curTop;
+ }
+ if ( options.left != null ) {
+ props.left = ( options.left - curOffset.left ) + curLeft;
+ }
+
+ if ( "using" in options ) {
+ options.using.call( elem, props );
+ } else {
+ curElem.css( props );
+ }
+ }
+};
+
+
+jQuery.fn.extend({
+
+ position: function() {
+ if ( !this[ 0 ] ) {
+ return;
+ }
+
+ var offsetParent, offset,
+ parentOffset = { top: 0, left: 0 },
+ elem = this[ 0 ];
+
+ // fixed elements are offset from window (parentOffset = {top:0, left: 0}, because it is it's only offset parent
+ if ( jQuery.css( elem, "position" ) === "fixed" ) {
+ // we assume that getBoundingClientRect is available when computed position is fixed
+ offset = elem.getBoundingClientRect();
+ } else {
+ // Get *real* offsetParent
+ offsetParent = this.offsetParent();
+
+ // Get correct offsets
+ offset = this.offset();
+ if ( !jQuery.nodeName( offsetParent[ 0 ], "html" ) ) {
+ parentOffset = offsetParent.offset();
+ }
+
+ // Add offsetParent borders
+ parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true );
+ parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true );
+ }
+
+ // Subtract parent offsets and element margins
+ // note: when an element has margin: auto the offsetLeft and marginLeft
+ // are the same in Safari causing offset.left to incorrectly be 0
+ return {
+ top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ),
+ left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true)
+ };
+ },
+
+ offsetParent: function() {
+ return this.map(function() {
+ var offsetParent = this.offsetParent || document.documentElement;
+ while ( offsetParent && ( !jQuery.nodeName( offsetParent, "html" ) && jQuery.css( offsetParent, "position") === "static" ) ) {
+ offsetParent = offsetParent.offsetParent;
+ }
+ return offsetParent || document.documentElement;
+ });
+ }
+});
+
+
+// Create scrollLeft and scrollTop methods
+jQuery.each( {scrollLeft: "pageXOffset", scrollTop: "pageYOffset"}, function( method, prop ) {
+ var top = /Y/.test( prop );
+
+ jQuery.fn[ method ] = function( val ) {
+ return jQuery.access( this, function( elem, method, val ) {
+ var win = getWindow( elem );
+
+ if ( val === undefined ) {
+ return win ? (prop in win) ? win[ prop ] :
+ win.document.documentElement[ method ] :
+ elem[ method ];
+ }
+
+ if ( win ) {
+ win.scrollTo(
+ !top ? val : jQuery( win ).scrollLeft(),
+ top ? val : jQuery( win ).scrollTop()
+ );
+
+ } else {
+ elem[ method ] = val;
+ }
+ }, method, val, arguments.length, null );
+ };
+});
+
+function getWindow( elem ) {
+ return jQuery.isWindow( elem ) ?
+ elem :
+ elem.nodeType === 9 ?
+ elem.defaultView || elem.parentWindow :
+ false;
+}
+// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
+jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
+ jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name }, function( defaultExtra, funcName ) {
+ // margin is only for outerHeight, outerWidth
+ jQuery.fn[ funcName ] = function( margin, value ) {
+ var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),
+ extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );
+
+ return jQuery.access( this, function( elem, type, value ) {
+ var doc;
+
+ if ( jQuery.isWindow( elem ) ) {
+ // As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there
+ // isn't a whole lot we can do. See pull request at this URL for discussion:
+ // https://github.com/jquery/jquery/pull/764
+ return elem.document.documentElement[ "client" + name ];
+ }
+
+ // Get document width or height
+ if ( elem.nodeType === 9 ) {
+ doc = elem.documentElement;
+
+ // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], whichever is greatest
+ // unfortunately, this causes bug #3838 in IE6/8 only, but there is currently no good, small way to fix it.
+ return Math.max(
+ elem.body[ "scroll" + name ], doc[ "scroll" + name ],
+ elem.body[ "offset" + name ], doc[ "offset" + name ],
+ doc[ "client" + name ]
+ );
+ }
+
+ return value === undefined ?
+ // Get width or height on the element, requesting but not forcing parseFloat
+ jQuery.css( elem, type, extra ) :
+
+ // Set width or height on the element
+ jQuery.style( elem, type, value, extra );
+ }, type, chainable ? margin : undefined, chainable, null );
+ };
+ });
+});
+// Limit scope pollution from any deprecated API
+// (function() {
+
+// })();
+// Expose jQuery to the global object
+window.jQuery = window.$ = jQuery;
+
+// Expose jQuery as an AMD module, but only for AMD loaders that
+// understand the issues with loading multiple versions of jQuery
+// in a page that all might call define(). The loader will indicate
+// they have special allowances for multiple jQuery versions by
+// specifying define.amd.jQuery = true. Register as a named module,
+// since jQuery can be concatenated with other files that may use define,
+// but not use a proper concatenation script that understands anonymous
+// AMD modules. A named AMD is safest and most robust way to register.
+// Lowercase jquery is used because AMD module names are derived from
+// file names, and jQuery is normally delivered in a lowercase file name.
+// Do this after creating the global so that if an AMD module wants to call
+// noConflict to hide this version of jQuery, it will work.
+if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
+ define( "jquery", [], function () { return jQuery; } );
+}
+
+})( window );
diff --git a/templates/orange/static/mobile/js/lazyload.js b/templates/orange/static/mobile/js/lazyload.js
new file mode 100644
index 0000000..da97305
--- /dev/null
+++ b/templates/orange/static/mobile/js/lazyload.js
@@ -0,0 +1,180 @@
+/*!
+ * Lazy Load - JavaScript plugin for lazy loading images
+ *
+ * Copyright (c) 2007-2019 Mika Tuupola
+ *
+ * Licensed under the MIT license:
+ * http://www.opensource.org/licenses/mit-license.php
+ *
+ * Project home:
+ * https://appelsiini.net/projects/lazyload
+ *
+ * Version: 2.0.0-rc.2
+ *
+ */
+
+(function (root, factory) {
+ if (typeof exports === "object") {
+ module.exports = factory(root);
+ } else if (typeof define === "function" && define.amd) {
+ define([], factory);
+ } else {
+ root.LazyLoad = factory(root);
+ }
+}) (typeof global !== "undefined" ? global : this.window || this.global, function (root) {
+
+ "use strict";
+
+ if (typeof define === "function" && define.amd){
+ root = window;
+ }
+
+ const defaults = {
+ src: "data-src",
+ srcset: "data-srcset",
+ selector: ".lazyload",
+ root: null,
+ rootMargin: "0px",
+ threshold: 0
+ };
+
+ /**
+ * Merge two or more objects. Returns a new object.
+ * @private
+ * @param {Boolean} deep If true, do a deep (or recursive) merge [optional]
+ * @param {Object} objects The objects to merge together
+ * @returns {Object} Merged values of defaults and options
+ */
+ const extend = function () {
+
+ let extended = {};
+ let deep = false;
+ let i = 0;
+ let length = arguments.length;
+
+ /* Check if a deep merge */
+ if (Object.prototype.toString.call(arguments[0]) === "[object Boolean]") {
+ deep = arguments[0];
+ i++;
+ }
+
+ /* Merge the object into the extended object */
+ let merge = function (obj) {
+ for (let prop in obj) {
+ if (Object.prototype.hasOwnProperty.call(obj, prop)) {
+ /* If deep merge and property is an object, merge properties */
+ if (deep && Object.prototype.toString.call(obj[prop]) === "[object Object]") {
+ extended[prop] = extend(true, extended[prop], obj[prop]);
+ } else {
+ extended[prop] = obj[prop];
+ }
+ }
+ }
+ };
+
+ /* Loop through each object and conduct a merge */
+ for (; i < length; i++) {
+ let obj = arguments[i];
+ merge(obj);
+ }
+
+ return extended;
+ };
+
+ function LazyLoad(images, options) {
+ this.settings = extend(defaults, options || {});
+ this.images = images || document.querySelectorAll(this.settings.selector);
+ this.observer = null;
+ this.init();
+ }
+
+ LazyLoad.prototype = {
+ init: function() {
+
+ /* Without observers load everything and bail out early. */
+ if (!root.IntersectionObserver) {
+ this.loadImages();
+ return;
+ }
+
+ let self = this;
+ let observerConfig = {
+ root: this.settings.root,
+ rootMargin: this.settings.rootMargin,
+ threshold: [this.settings.threshold]
+ };
+
+ this.observer = new IntersectionObserver(function(entries) {
+ Array.prototype.forEach.call(entries, function (entry) {
+ if (entry.isIntersecting) {
+ self.observer.unobserve(entry.target);
+ let src = entry.target.getAttribute(self.settings.src);
+ let srcset = entry.target.getAttribute(self.settings.srcset);
+ if ("img" === entry.target.tagName.toLowerCase()) {
+ if (src) {
+ entry.target.src = src;
+ }
+ if (srcset) {
+ entry.target.srcset = srcset;
+ }
+ } else {
+ entry.target.style.backgroundImage = "url(" + src + ")";
+ }
+ }
+ });
+ }, observerConfig);
+
+ Array.prototype.forEach.call(this.images, function (image) {
+ self.observer.observe(image);
+ });
+ },
+
+ loadAndDestroy: function () {
+ if (!this.settings) { return; }
+ this.loadImages();
+ this.destroy();
+ },
+
+ loadImages: function () {
+ if (!this.settings) { return; }
+
+ let self = this;
+ Array.prototype.forEach.call(this.images, function (image) {
+ let src = image.getAttribute(self.settings.src);
+ let srcset = image.getAttribute(self.settings.srcset);
+ if ("img" === image.tagName.toLowerCase()) {
+ if (src) {
+ image.src = src;
+ }
+ if (srcset) {
+ image.srcset = srcset;
+ }
+ } else {
+ image.style.backgroundImage = "url('" + src + "')";
+ }
+ });
+ },
+
+ destroy: function () {
+ if (!this.settings) { return; }
+ this.observer.disconnect();
+ this.settings = null;
+ }
+ };
+
+ root.lazyload = function(images, options) {
+ return new LazyLoad(images, options);
+ };
+
+ if (root.jQuery) {
+ const $ = root.jQuery;
+ $.fn.lazyload = function (options) {
+ options = options || {};
+ options.attribute = options.attribute || "data-src";
+ new LazyLoad($.makeArray(this), options);
+ return this;
+ };
+ }
+
+ return LazyLoad;
+});
\ No newline at end of file
diff --git a/templates/orange/static/mobile/js/read.js b/templates/orange/static/mobile/js/read.js
new file mode 100644
index 0000000..ddbc718
--- /dev/null
+++ b/templates/orange/static/mobile/js/read.js
@@ -0,0 +1,197 @@
+var checkbg = "#A7A7A7";
+var nr_body = document.getElementById("read");//页面body
+var huyandiv = document.getElementById("huyandiv");//护眼div
+var lightdiv = document.getElementById("lightdiv");//灯光div
+var fontfont = document.getElementById("fontfont");//字体div
+var fontbig = document.getElementById("fontbig");//大字体div
+var fontmiddle = document.getElementById("fontmiddle");//中字体div
+var fontsmall = document.getElementById("fontsmall");//小字体div
+var nr1 = document.getElementById("chaptercontent");//内容div
+//内容页用户设置
+function nr_setbg(intype){
+ var huyandiv = document.getElementById("huyandiv");
+ var light = document.getElementById("lightdiv");
+ if(intype == "huyan"){
+ if(huyandiv.className == "button huyanon"){
+ document.cookie="light=huyan;path=/";
+ set("light","huyan");
+ }
+ else{
+ document.cookie="light=no;path=/";
+ set("light","no");
+ }
+ }
+ if(intype == "light"){
+ if(light.innerHTML == "关灯"){
+ document.cookie="light=yes;path=/";
+ set("light","yes");
+ }
+ else{
+ document.cookie="light=no;path=/";
+ set("light","no");
+ }
+ }
+ if(intype == "big"){
+ document.cookie="font=big;path=/";
+ set("font","big");
+ }
+ if(intype == "middle"){
+ document.cookie="font=middle;path=/";
+ set("font","middle");
+ }
+ if(intype == "small"){
+ document.cookie="font=small;path=/";
+ set("font","small");
+ }
+}
+
+//内容页读取设置
+function getset(){
+ var strCookie=document.cookie;
+ var arrCookie=strCookie.split("; ");
+ var light;
+ var font;
+
+ for(var i=0;i
-1) {//UC
+ window.location.href = "ext:add_favorite";
+ }
+ else if (document.all) // IE
+ window.external.AddFavorite(url, title);
+ else {
+ if(isTip){
+ alert("该浏览器不支持自动收藏,请点击Ctrl+D手动收藏!");
+ }
+ }
+ }
+
+}
+
+
+
+function SetCookie(name, value) {
+ var key = '';
+ var Days = 365;
+ var exp = new Date();
+ var domain = "";
+ exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000);
+ if (key == null || key == "") {
+ document.cookie = name + "=" + encodeURI(value) + ";expires=" + exp.toGMTString() + ";path=/;domain=" + domain + ";";
+ }
+ else {
+ var nameValue = GetCookie(name);
+ if (nameValue == "") {
+ document.cookie = name + "=" + key + "=" + encodeURI(value) + ";expires=" + exp.toGMTString() + ";path=/;domain=" + domain + ";";
+ }
+ else {
+ var keyValue = getCookie(name, key);
+ if (keyValue != "") {
+ nameValue = nameValue.replace(key + "=" + keyValue, key + "=" + encodeURI(value));
+ document.cookie = name + "=" + nameValue + ";expires=" + exp.toGMTString() + ";path=/;domain=" + domain + ";";
+ }
+ else {
+ document.cookie = name + "=" + nameValue + "&" + key + "=" + encodeURI(value) + ";expires=" + exp.toGMTString() + ";path=/;" + domain + ";";
+ }
+ }
+ }
+}
+
+function GetCookie(name) {
+ var nameValue = "";
+ var key = "";
+ var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
+ if (arr = document.cookie.match(reg)) {
+ nameValue = decodeURI(arr[2]);
+ }
+ if (key != null && key != "") {
+ reg = new RegExp("(^| |&)" + key + "=([^(;|&|=)]*)(&|$)");
+ if (arr = nameValue.match(reg)) {
+ return decodeURI(arr[2]);
+ }
+ else return "";
+ }
+ else {
+ return nameValue;
+ }
+}
+
+
+function DelCookie(name)
+
+{
+
+ var exp = new Date();
+
+ exp.setTime(exp.getTime() - 1);
+
+ var cval=GetCookie(name);
+
+ if(cval!=null)
+
+ document.cookie= name + "="+cval+";expires="+exp.toGMTString();
+
+}
+
+
+
+
diff --git a/templates/orange/static/mobile/layui/css/layui.css b/templates/orange/static/mobile/layui/css/layui.css
new file mode 100644
index 0000000..a7258a3
--- /dev/null
+++ b/templates/orange/static/mobile/layui/css/layui.css
@@ -0,0 +1,5015 @@
+/** layui-v2.4.5 MIT License By https://www.layui.com */
+.layui-inline, img {
+ display: inline-block;
+ vertical-align: middle
+}
+
+h1, h2, h3, h4, h5, h6 {
+ font-weight: 400
+}
+
+.layui-edge, .layui-header, .layui-inline, .layui-main {
+ position: relative
+}
+
+.layui-elip, .layui-form-checkbox span, .layui-form-pane .layui-form-label {
+ text-overflow: ellipsis;
+ white-space: nowrap
+}
+
+.layui-btn, .layui-edge, .layui-inline, img {
+ vertical-align: middle
+}
+
+.layui-btn, .layui-disabled, .layui-icon, .layui-unselect {
+ -webkit-user-select: none;
+ -ms-user-select: none;
+ -moz-user-select: none
+}
+
+blockquote, body, button, dd, div, dl, dt, form, h1, h2, h3, h4, h5, h6, input, li, ol, p, pre, td, textarea, th, ul {
+ margin: 0;
+ padding: 0;
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0)
+}
+
+a:active, a:hover {
+ outline: 0
+}
+
+img {
+ border: none
+}
+
+li {
+ list-style: none
+}
+
+table {
+ border-collapse: collapse;
+ border-spacing: 0
+}
+
+h4, h5, h6 {
+ font-size: 100%
+}
+
+button, input, optgroup, option, select, textarea {
+ font-family: inherit;
+ font-size: inherit;
+ font-style: inherit;
+ font-weight: inherit;
+ outline: 0
+}
+
+pre {
+ white-space: pre-wrap;
+ white-space: -moz-pre-wrap;
+ white-space: -pre-wrap;
+ white-space: -o-pre-wrap;
+ word-wrap: break-word
+}
+
+body {
+ line-height: 24px;
+ font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif
+}
+
+hr {
+ height: 1px;
+ margin: 10px 0;
+ border: 0;
+ clear: both
+}
+
+a {
+ color: #333;
+ text-decoration: none
+}
+
+a:hover {
+ color: #777
+}
+
+a cite {
+ font-style: normal;
+ *cursor: pointer
+}
+
+.layui-border-box, .layui-border-box * {
+ box-sizing: border-box
+}
+
+.layui-box, .layui-box * {
+ box-sizing: content-box
+}
+
+.layui-clear {
+ clear: both;
+ *zoom: 1
+}
+
+.layui-clear:after {
+ content: '\20';
+ clear: both;
+ *zoom: 1;
+ display: block;
+ height: 0
+}
+
+.layui-inline {
+ *display: inline;
+ *zoom: 1
+}
+
+.layui-edge {
+ display: inline-block;
+ width: 0;
+ height: 0;
+ border-width: 6px;
+ border-style: dashed;
+ border-color: transparent;
+ overflow: hidden
+}
+
+.layui-edge-top {
+ top: -4px;
+ border-bottom-color: #999;
+ border-bottom-style: solid
+}
+
+.layui-edge-right {
+ border-left-color: #999;
+ border-left-style: solid
+}
+
+.layui-edge-bottom {
+ top: 2px;
+ border-top-color: #999;
+ border-top-style: solid
+}
+
+.layui-edge-left {
+ border-right-color: #999;
+ border-right-style: solid
+}
+
+.layui-elip {
+ overflow: hidden
+}
+
+.layui-disabled, .layui-disabled:hover {
+ color: #d2d2d2 !important;
+ cursor: not-allowed !important
+}
+
+.layui-circle {
+ border-radius: 100%
+}
+
+.layui-show {
+ display: block !important
+}
+
+.layui-hide {
+ display: none !important
+}
+
+@font-face {
+ font-family: layui-icon;
+ src: url(../font/iconfont.eot?v=240);
+ src: url(../font/iconfont.eot?v=240#iefix) format('embedded-opentype'), url(../font/iconfont.svg?v=240#iconfont) format('svg'), url(../font/iconfont.woff?v=240) format('woff'), url(../font/iconfont.ttf?v=240) format('truetype')
+}
+
+.layui-icon {
+ font-family: layui-icon !important;
+ font-size: 16px;
+ font-style: normal;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale
+}
+
+.layui-icon-reply-fill:before {
+ content: "\e611"
+}
+
+.layui-icon-set-fill:before {
+ content: "\e614"
+}
+
+.layui-icon-menu-fill:before {
+ content: "\e60f"
+}
+
+.layui-icon-search:before {
+ content: "\e615"
+}
+
+.layui-icon-share:before {
+ content: "\e641"
+}
+
+.layui-icon-set-sm:before {
+ content: "\e620"
+}
+
+.layui-icon-engine:before {
+ content: "\e628"
+}
+
+.layui-icon-close:before {
+ content: "\1006"
+}
+
+.layui-icon-close-fill:before {
+ content: "\1007"
+}
+
+.layui-icon-chart-screen:before {
+ content: "\e629"
+}
+
+.layui-icon-star:before {
+ content: "\e600"
+}
+
+.layui-icon-circle-dot:before {
+ content: "\e617"
+}
+
+.layui-icon-chat:before {
+ content: "\e606"
+}
+
+.layui-icon-release:before {
+ content: "\e609"
+}
+
+.layui-icon-list:before {
+ content: "\e60a"
+}
+
+.layui-icon-chart:before {
+ content: "\e62c"
+}
+
+.layui-icon-ok-circle:before {
+ content: "\1005"
+}
+
+.layui-icon-layim-theme:before {
+ content: "\e61b"
+}
+
+.layui-icon-table:before {
+ content: "\e62d"
+}
+
+.layui-icon-right:before {
+ content: "\e602"
+}
+
+.layui-icon-left:before {
+ content: "\e603"
+}
+
+.layui-icon-cart-simple:before {
+ content: "\e698"
+}
+
+.layui-icon-face-cry:before {
+ content: "\e69c"
+}
+
+.layui-icon-face-smile:before {
+ content: "\e6af"
+}
+
+.layui-icon-survey:before {
+ content: "\e6b2"
+}
+
+.layui-icon-tree:before {
+ content: "\e62e"
+}
+
+.layui-icon-upload-circle:before {
+ content: "\e62f"
+}
+
+.layui-icon-add-circle:before {
+ content: "\e61f"
+}
+
+.layui-icon-download-circle:before {
+ content: "\e601"
+}
+
+.layui-icon-templeate-1:before {
+ content: "\e630"
+}
+
+.layui-icon-util:before {
+ content: "\e631"
+}
+
+.layui-icon-face-surprised:before {
+ content: "\e664"
+}
+
+.layui-icon-edit:before {
+ content: "\e642"
+}
+
+.layui-icon-speaker:before {
+ content: "\e645"
+}
+
+.layui-icon-down:before {
+ content: "\e61a"
+}
+
+.layui-icon-file:before {
+ content: "\e621"
+}
+
+.layui-icon-layouts:before {
+ content: "\e632"
+}
+
+.layui-icon-rate-half:before {
+ content: "\e6c9"
+}
+
+.layui-icon-add-circle-fine:before {
+ content: "\e608"
+}
+
+.layui-icon-prev-circle:before {
+ content: "\e633"
+}
+
+.layui-icon-read:before {
+ content: "\e705"
+}
+
+.layui-icon-404:before {
+ content: "\e61c"
+}
+
+.layui-icon-carousel:before {
+ content: "\e634"
+}
+
+.layui-icon-help:before {
+ content: "\e607"
+}
+
+.layui-icon-code-circle:before {
+ content: "\e635"
+}
+
+.layui-icon-water:before {
+ content: "\e636"
+}
+
+.layui-icon-username:before {
+ content: "\e66f"
+}
+
+.layui-icon-find-fill:before {
+ content: "\e670"
+}
+
+.layui-icon-about:before {
+ content: "\e60b"
+}
+
+.layui-icon-location:before {
+ content: "\e715"
+}
+
+.layui-icon-up:before {
+ content: "\e619"
+}
+
+.layui-icon-pause:before {
+ content: "\e651"
+}
+
+.layui-icon-date:before {
+ content: "\e637"
+}
+
+.layui-icon-layim-uploadfile:before {
+ content: "\e61d"
+}
+
+.layui-icon-delete:before {
+ content: "\e640"
+}
+
+.layui-icon-play:before {
+ content: "\e652"
+}
+
+.layui-icon-top:before {
+ content: "\e604"
+}
+
+.layui-icon-friends:before {
+ content: "\e612"
+}
+
+.layui-icon-refresh-3:before {
+ content: "\e9aa"
+}
+
+.layui-icon-ok:before {
+ content: "\e605"
+}
+
+.layui-icon-layer:before {
+ content: "\e638"
+}
+
+.layui-icon-face-smile-fine:before {
+ content: "\e60c"
+}
+
+.layui-icon-dollar:before {
+ content: "\e659"
+}
+
+.layui-icon-group:before {
+ content: "\e613"
+}
+
+.layui-icon-layim-download:before {
+ content: "\e61e"
+}
+
+.layui-icon-picture-fine:before {
+ content: "\e60d"
+}
+
+.layui-icon-link:before {
+ content: "\e64c"
+}
+
+.layui-icon-diamond:before {
+ content: "\e735"
+}
+
+.layui-icon-log:before {
+ content: "\e60e"
+}
+
+.layui-icon-rate-solid:before {
+ content: "\e67a"
+}
+
+.layui-icon-fonts-del:before {
+ content: "\e64f"
+}
+
+.layui-icon-unlink:before {
+ content: "\e64d"
+}
+
+.layui-icon-fonts-clear:before {
+ content: "\e639"
+}
+
+.layui-icon-triangle-r:before {
+ content: "\e623"
+}
+
+.layui-icon-circle:before {
+ content: "\e63f"
+}
+
+.layui-icon-radio:before {
+ content: "\e643"
+}
+
+.layui-icon-align-center:before {
+ content: "\e647"
+}
+
+.layui-icon-align-right:before {
+ content: "\e648"
+}
+
+.layui-icon-align-left:before {
+ content: "\e649"
+}
+
+.layui-icon-loading-1:before {
+ content: "\e63e"
+}
+
+.layui-icon-return:before {
+ content: "\e65c"
+}
+
+.layui-icon-fonts-strong:before {
+ content: "\e62b"
+}
+
+.layui-icon-upload:before {
+ content: "\e67c"
+}
+
+.layui-icon-dialogue:before {
+ content: "\e63a"
+}
+
+.layui-icon-video:before {
+ content: "\e6ed"
+}
+
+.layui-icon-headset:before {
+ content: "\e6fc"
+}
+
+.layui-icon-cellphone-fine:before {
+ content: "\e63b"
+}
+
+.layui-icon-add-1:before {
+ content: "\e654"
+}
+
+.layui-icon-face-smile-b:before {
+ content: "\e650"
+}
+
+.layui-icon-fonts-html:before {
+ content: "\e64b"
+}
+
+.layui-icon-form:before {
+ content: "\e63c"
+}
+
+.layui-icon-cart:before {
+ content: "\e657"
+}
+
+.layui-icon-camera-fill:before {
+ content: "\e65d"
+}
+
+.layui-icon-tabs:before {
+ content: "\e62a"
+}
+
+.layui-icon-fonts-code:before {
+ content: "\e64e"
+}
+
+.layui-icon-fire:before {
+ content: "\e756"
+}
+
+.layui-icon-set:before {
+ content: "\e716"
+}
+
+.layui-icon-fonts-u:before {
+ content: "\e646"
+}
+
+.layui-icon-triangle-d:before {
+ content: "\e625"
+}
+
+.layui-icon-tips:before {
+ content: "\e702"
+}
+
+.layui-icon-picture:before {
+ content: "\e64a"
+}
+
+.layui-icon-more-vertical:before {
+ content: "\e671"
+}
+
+.layui-icon-flag:before {
+ content: "\e66c"
+}
+
+.layui-icon-loading:before {
+ content: "\e63d"
+}
+
+.layui-icon-fonts-i:before {
+ content: "\e644"
+}
+
+.layui-icon-refresh-1:before {
+ content: "\e666"
+}
+
+.layui-icon-rmb:before {
+ content: "\e65e"
+}
+
+.layui-icon-home:before {
+ content: "\e68e"
+}
+
+.layui-icon-user:before {
+ content: "\e770"
+}
+
+.layui-icon-notice:before {
+ content: "\e667"
+}
+
+.layui-icon-login-weibo:before {
+ content: "\e675"
+}
+
+.layui-icon-voice:before {
+ content: "\e688"
+}
+
+.layui-icon-upload-drag:before {
+ content: "\e681"
+}
+
+.layui-icon-login-qq:before {
+ content: "\e676"
+}
+
+.layui-icon-snowflake:before {
+ content: "\e6b1"
+}
+
+.layui-icon-file-b:before {
+ content: "\e655"
+}
+
+.layui-icon-template:before {
+ content: "\e663"
+}
+
+.layui-icon-auz:before {
+ content: "\e672"
+}
+
+.layui-icon-console:before {
+ content: "\e665"
+}
+
+.layui-icon-app:before {
+ content: "\e653"
+}
+
+.layui-icon-prev:before {
+ content: "\e65a"
+}
+
+.layui-icon-website:before {
+ content: "\e7ae"
+}
+
+.layui-icon-next:before {
+ content: "\e65b"
+}
+
+.layui-icon-component:before {
+ content: "\e857"
+}
+
+.layui-icon-more:before {
+ content: "\e65f"
+}
+
+.layui-icon-login-wechat:before {
+ content: "\e677"
+}
+
+.layui-icon-shrink-right:before {
+ content: "\e668"
+}
+
+.layui-icon-spread-left:before {
+ content: "\e66b"
+}
+
+.layui-icon-camera:before {
+ content: "\e660"
+}
+
+.layui-icon-note:before {
+ content: "\e66e"
+}
+
+.layui-icon-refresh:before {
+ content: "\e669"
+}
+
+.layui-icon-female:before {
+ content: "\e661"
+}
+
+.layui-icon-male:before {
+ content: "\e662"
+}
+
+.layui-icon-password:before {
+ content: "\e673"
+}
+
+.layui-icon-senior:before {
+ content: "\e674"
+}
+
+.layui-icon-theme:before {
+ content: "\e66a"
+}
+
+.layui-icon-tread:before {
+ content: "\e6c5"
+}
+
+.layui-icon-praise:before {
+ content: "\e6c6"
+}
+
+.layui-icon-star-fill:before {
+ content: "\e658"
+}
+
+.layui-icon-rate:before {
+ content: "\e67b"
+}
+
+.layui-icon-template-1:before {
+ content: "\e656"
+}
+
+.layui-icon-vercode:before {
+ content: "\e679"
+}
+
+.layui-icon-cellphone:before {
+ content: "\e678"
+}
+
+.layui-icon-screen-full:before {
+ content: "\e622"
+}
+
+.layui-icon-screen-restore:before {
+ content: "\e758"
+}
+
+.layui-icon-cols:before {
+ content: "\e610"
+}
+
+.layui-icon-export:before {
+ content: "\e67d"
+}
+
+.layui-icon-print:before {
+ content: "\e66d"
+}
+
+.layui-icon-slider:before {
+ content: "\e714"
+}
+
+.layui-main {
+ width: 1140px;
+ margin: 0 auto
+}
+
+.layui-header {
+ z-index: 1000;
+ height: 60px
+}
+
+.layui-header a:hover {
+ transition: all .5s;
+ -webkit-transition: all .5s
+}
+
+.layui-side {
+ position: fixed;
+ left: 0;
+ top: 0;
+ bottom: 0;
+ z-index: 999;
+ width: 200px;
+ overflow-x: hidden
+}
+
+.layui-side-scroll {
+ position: relative;
+ width: 220px;
+ height: 100%;
+ overflow-x: hidden
+}
+
+.layui-body {
+ position: absolute;
+ left: 200px;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ z-index: 998;
+ width: auto;
+ overflow: hidden;
+ overflow-y: auto;
+ box-sizing: border-box
+}
+
+.layui-layout-body {
+ overflow: hidden
+}
+
+.layui-layout-admin .layui-header {
+ background-color: #23262E
+}
+
+.layui-layout-admin .layui-side {
+ top: 60px;
+ width: 200px;
+ overflow-x: hidden
+}
+
+.layui-layout-admin .layui-body {
+ top: 60px;
+ bottom: 44px
+}
+
+.layui-layout-admin .layui-main {
+ width: auto;
+ margin: 0 15px
+}
+
+.layui-layout-admin .layui-footer {
+ position: fixed;
+ left: 200px;
+ right: 0;
+ bottom: 0;
+ height: 44px;
+ line-height: 44px;
+ padding: 0 15px;
+ background-color: #eee
+}
+
+.layui-layout-admin .layui-logo {
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 200px;
+ height: 100%;
+ line-height: 60px;
+ text-align: center;
+ color: #009688;
+ font-size: 16px
+}
+
+.layui-layout-admin .layui-header .layui-nav {
+ background: 0 0
+}
+
+.layui-layout-left {
+ position: absolute !important;
+ left: 200px;
+ top: 0
+}
+
+.layui-layout-right {
+ position: absolute !important;
+ right: 0;
+ top: 0
+}
+
+.layui-container {
+ position: relative;
+ margin: 0 auto;
+ padding: 0 15px;
+ box-sizing: border-box
+}
+
+.layui-fluid {
+ position: relative;
+ margin: 0 auto;
+ padding: 0 15px
+}
+
+.layui-row:after, .layui-row:before {
+ content: '';
+ display: block;
+ clear: both
+}
+
+.layui-col-lg1, .layui-col-lg10, .layui-col-lg11, .layui-col-lg12, .layui-col-lg2, .layui-col-lg3, .layui-col-lg4, .layui-col-lg5, .layui-col-lg6, .layui-col-lg7, .layui-col-lg8, .layui-col-lg9, .layui-col-md1, .layui-col-md10, .layui-col-md11, .layui-col-md12, .layui-col-md2, .layui-col-md3, .layui-col-md4, .layui-col-md5, .layui-col-md6, .layui-col-md7, .layui-col-md8, .layui-col-md9, .layui-col-sm1, .layui-col-sm10, .layui-col-sm11, .layui-col-sm12, .layui-col-sm2, .layui-col-sm3, .layui-col-sm4, .layui-col-sm5, .layui-col-sm6, .layui-col-sm7, .layui-col-sm8, .layui-col-sm9, .layui-col-xs1, .layui-col-xs10, .layui-col-xs11, .layui-col-xs12, .layui-col-xs2, .layui-col-xs3, .layui-col-xs4, .layui-col-xs5, .layui-col-xs6, .layui-col-xs7, .layui-col-xs8, .layui-col-xs9 {
+ position: relative;
+ display: block;
+ box-sizing: border-box
+}
+
+.layui-col-xs1, .layui-col-xs10, .layui-col-xs11, .layui-col-xs12, .layui-col-xs2, .layui-col-xs3, .layui-col-xs4, .layui-col-xs5, .layui-col-xs6, .layui-col-xs7, .layui-col-xs8, .layui-col-xs9 {
+ float: left
+}
+
+.layui-col-xs1 {
+ width: 8.33333333%
+}
+
+.layui-col-xs2 {
+ width: 16.66666667%
+}
+
+.layui-col-xs3 {
+ width: 25%
+}
+
+.layui-col-xs4 {
+ width: 33.33333333%
+}
+
+.layui-col-xs5 {
+ width: 41.66666667%
+}
+
+.layui-col-xs6 {
+ width: 50%
+}
+
+.layui-col-xs7 {
+ width: 58.33333333%
+}
+
+.layui-col-xs8 {
+ width: 66.66666667%
+}
+
+.layui-col-xs9 {
+ width: 75%
+}
+
+.layui-col-xs10 {
+ width: 83.33333333%
+}
+
+.layui-col-xs11 {
+ width: 91.66666667%
+}
+
+.layui-col-xs12 {
+ width: 100%
+}
+
+.layui-col-xs-offset1 {
+ margin-left: 8.33333333%
+}
+
+.layui-col-xs-offset2 {
+ margin-left: 16.66666667%
+}
+
+.layui-col-xs-offset3 {
+ margin-left: 25%
+}
+
+.layui-col-xs-offset4 {
+ margin-left: 33.33333333%
+}
+
+.layui-col-xs-offset5 {
+ margin-left: 41.66666667%
+}
+
+.layui-col-xs-offset6 {
+ margin-left: 50%
+}
+
+.layui-col-xs-offset7 {
+ margin-left: 58.33333333%
+}
+
+.layui-col-xs-offset8 {
+ margin-left: 66.66666667%
+}
+
+.layui-col-xs-offset9 {
+ margin-left: 75%
+}
+
+.layui-col-xs-offset10 {
+ margin-left: 83.33333333%
+}
+
+.layui-col-xs-offset11 {
+ margin-left: 91.66666667%
+}
+
+.layui-col-xs-offset12 {
+ margin-left: 100%
+}
+
+@media screen and (max-width: 768px) {
+ .layui-hide-xs {
+ display: none !important
+ }
+
+ .layui-show-xs-block {
+ display: block !important
+ }
+
+ .layui-show-xs-inline {
+ display: inline !important
+ }
+
+ .layui-show-xs-inline-block {
+ display: inline-block !important
+ }
+}
+
+@media screen and (min-width: 768px) {
+ .layui-container {
+ width: 750px
+ }
+
+ .layui-hide-sm {
+ display: none !important
+ }
+
+ .layui-show-sm-block {
+ display: block !important
+ }
+
+ .layui-show-sm-inline {
+ display: inline !important
+ }
+
+ .layui-show-sm-inline-block {
+ display: inline-block !important
+ }
+
+ .layui-col-sm1, .layui-col-sm10, .layui-col-sm11, .layui-col-sm12, .layui-col-sm2, .layui-col-sm3, .layui-col-sm4, .layui-col-sm5, .layui-col-sm6, .layui-col-sm7, .layui-col-sm8, .layui-col-sm9 {
+ float: left
+ }
+
+ .layui-col-sm1 {
+ width: 8.33333333%
+ }
+
+ .layui-col-sm2 {
+ width: 16.66666667%
+ }
+
+ .layui-col-sm3 {
+ width: 25%
+ }
+
+ .layui-col-sm4 {
+ width: 33.33333333%
+ }
+
+ .layui-col-sm5 {
+ width: 41.66666667%
+ }
+
+ .layui-col-sm6 {
+ width: 50%
+ }
+
+ .layui-col-sm7 {
+ width: 58.33333333%
+ }
+
+ .layui-col-sm8 {
+ width: 66.66666667%
+ }
+
+ .layui-col-sm9 {
+ width: 75%
+ }
+
+ .layui-col-sm10 {
+ width: 83.33333333%
+ }
+
+ .layui-col-sm11 {
+ width: 91.66666667%
+ }
+
+ .layui-col-sm12 {
+ width: 100%
+ }
+
+ .layui-col-sm-offset1 {
+ margin-left: 8.33333333%
+ }
+
+ .layui-col-sm-offset2 {
+ margin-left: 16.66666667%
+ }
+
+ .layui-col-sm-offset3 {
+ margin-left: 25%
+ }
+
+ .layui-col-sm-offset4 {
+ margin-left: 33.33333333%
+ }
+
+ .layui-col-sm-offset5 {
+ margin-left: 41.66666667%
+ }
+
+ .layui-col-sm-offset6 {
+ margin-left: 50%
+ }
+
+ .layui-col-sm-offset7 {
+ margin-left: 58.33333333%
+ }
+
+ .layui-col-sm-offset8 {
+ margin-left: 66.66666667%
+ }
+
+ .layui-col-sm-offset9 {
+ margin-left: 75%
+ }
+
+ .layui-col-sm-offset10 {
+ margin-left: 83.33333333%
+ }
+
+ .layui-col-sm-offset11 {
+ margin-left: 91.66666667%
+ }
+
+ .layui-col-sm-offset12 {
+ margin-left: 100%
+ }
+}
+
+@media screen and (min-width: 992px) {
+ .layui-container {
+ width: 970px
+ }
+
+ .layui-hide-md {
+ display: none !important
+ }
+
+ .layui-show-md-block {
+ display: block !important
+ }
+
+ .layui-show-md-inline {
+ display: inline !important
+ }
+
+ .layui-show-md-inline-block {
+ display: inline-block !important
+ }
+
+ .layui-col-md1, .layui-col-md10, .layui-col-md11, .layui-col-md12, .layui-col-md2, .layui-col-md3, .layui-col-md4, .layui-col-md5, .layui-col-md6, .layui-col-md7, .layui-col-md8, .layui-col-md9 {
+ float: left
+ }
+
+ .layui-col-md1 {
+ width: 8.33333333%
+ }
+
+ .layui-col-md2 {
+ width: 16.66666667%
+ }
+
+ .layui-col-md3 {
+ width: 25%
+ }
+
+ .layui-col-md4 {
+ width: 33.33333333%
+ }
+
+ .layui-col-md5 {
+ width: 41.66666667%
+ }
+
+ .layui-col-md6 {
+ width: 50%
+ }
+
+ .layui-col-md7 {
+ width: 58.33333333%
+ }
+
+ .layui-col-md8 {
+ width: 66.66666667%
+ }
+
+ .layui-col-md9 {
+ width: 75%
+ }
+
+ .layui-col-md10 {
+ width: 83.33333333%
+ }
+
+ .layui-col-md11 {
+ width: 91.66666667%
+ }
+
+ .layui-col-md12 {
+ width: 100%
+ }
+
+ .layui-col-md-offset1 {
+ margin-left: 8.33333333%
+ }
+
+ .layui-col-md-offset2 {
+ margin-left: 16.66666667%
+ }
+
+ .layui-col-md-offset3 {
+ margin-left: 25%
+ }
+
+ .layui-col-md-offset4 {
+ margin-left: 33.33333333%
+ }
+
+ .layui-col-md-offset5 {
+ margin-left: 41.66666667%
+ }
+
+ .layui-col-md-offset6 {
+ margin-left: 50%
+ }
+
+ .layui-col-md-offset7 {
+ margin-left: 58.33333333%
+ }
+
+ .layui-col-md-offset8 {
+ margin-left: 66.66666667%
+ }
+
+ .layui-col-md-offset9 {
+ margin-left: 75%
+ }
+
+ .layui-col-md-offset10 {
+ margin-left: 83.33333333%
+ }
+
+ .layui-col-md-offset11 {
+ margin-left: 91.66666667%
+ }
+
+ .layui-col-md-offset12 {
+ margin-left: 100%
+ }
+}
+
+@media screen and (min-width: 1200px) {
+ .layui-container {
+ width: 1170px
+ }
+
+ .layui-hide-lg {
+ display: none !important
+ }
+
+ .layui-show-lg-block {
+ display: block !important
+ }
+
+ .layui-show-lg-inline {
+ display: inline !important
+ }
+
+ .layui-show-lg-inline-block {
+ display: inline-block !important
+ }
+
+ .layui-col-lg1, .layui-col-lg10, .layui-col-lg11, .layui-col-lg12, .layui-col-lg2, .layui-col-lg3, .layui-col-lg4, .layui-col-lg5, .layui-col-lg6, .layui-col-lg7, .layui-col-lg8, .layui-col-lg9 {
+ float: left
+ }
+
+ .layui-col-lg1 {
+ width: 8.33333333%
+ }
+
+ .layui-col-lg2 {
+ width: 16.66666667%
+ }
+
+ .layui-col-lg3 {
+ width: 25%
+ }
+
+ .layui-col-lg4 {
+ width: 33.33333333%
+ }
+
+ .layui-col-lg5 {
+ width: 41.66666667%
+ }
+
+ .layui-col-lg6 {
+ width: 50%
+ }
+
+ .layui-col-lg7 {
+ width: 58.33333333%
+ }
+
+ .layui-col-lg8 {
+ width: 66.66666667%
+ }
+
+ .layui-col-lg9 {
+ width: 75%
+ }
+
+ .layui-col-lg10 {
+ width: 83.33333333%
+ }
+
+ .layui-col-lg11 {
+ width: 91.66666667%
+ }
+
+ .layui-col-lg12 {
+ width: 100%
+ }
+
+ .layui-col-lg-offset1 {
+ margin-left: 8.33333333%
+ }
+
+ .layui-col-lg-offset2 {
+ margin-left: 16.66666667%
+ }
+
+ .layui-col-lg-offset3 {
+ margin-left: 25%
+ }
+
+ .layui-col-lg-offset4 {
+ margin-left: 33.33333333%
+ }
+
+ .layui-col-lg-offset5 {
+ margin-left: 41.66666667%
+ }
+
+ .layui-col-lg-offset6 {
+ margin-left: 50%
+ }
+
+ .layui-col-lg-offset7 {
+ margin-left: 58.33333333%
+ }
+
+ .layui-col-lg-offset8 {
+ margin-left: 66.66666667%
+ }
+
+ .layui-col-lg-offset9 {
+ margin-left: 75%
+ }
+
+ .layui-col-lg-offset10 {
+ margin-left: 83.33333333%
+ }
+
+ .layui-col-lg-offset11 {
+ margin-left: 91.66666667%
+ }
+
+ .layui-col-lg-offset12 {
+ margin-left: 100%
+ }
+}
+
+.layui-col-space1 {
+ margin: -.5px
+}
+
+.layui-col-space1 > * {
+ padding: .5px
+}
+
+.layui-col-space3 {
+ margin: -1.5px
+}
+
+.layui-col-space3 > * {
+ padding: 1.5px
+}
+
+.layui-col-space5 {
+ margin: -2.5px
+}
+
+.layui-col-space5 > * {
+ padding: 2.5px
+}
+
+.layui-col-space8 {
+ margin: -3.5px
+}
+
+.layui-col-space8 > * {
+ padding: 3.5px
+}
+
+.layui-col-space10 {
+ margin: -5px
+}
+
+.layui-col-space10 > * {
+ padding: 5px
+}
+
+.layui-col-space12 {
+ margin: -6px
+}
+
+.layui-col-space12 > * {
+ padding: 6px
+}
+
+.layui-col-space15 {
+ margin: -7.5px
+}
+
+.layui-col-space15 > * {
+ padding: 7.5px
+}
+
+.layui-col-space18 {
+ margin: -9px
+}
+
+.layui-col-space18 > * {
+ padding: 9px
+}
+
+.layui-col-space20 {
+ margin: -10px
+}
+
+.layui-col-space20 > * {
+ padding: 10px
+}
+
+.layui-col-space22 {
+ margin: -11px
+}
+
+.layui-col-space22 > * {
+ padding: 11px
+}
+
+.layui-col-space25 {
+ margin: -12.5px
+}
+
+.layui-col-space25 > * {
+ padding: 12.5px
+}
+
+.layui-col-space30 {
+ margin: -15px
+}
+
+.layui-col-space30 > * {
+ padding: 15px
+}
+
+.layui-btn, .layui-input, .layui-select, .layui-textarea, .layui-upload-button {
+ outline: 0;
+ -webkit-appearance: none;
+ transition: all .3s;
+ -webkit-transition: all .3s;
+ box-sizing: border-box
+}
+
+.layui-elem-quote {
+ margin-bottom: 10px;
+ padding: 8px;
+ line-height: 22px;
+ border-left: 5px solid #f80;
+ border-radius: 0 2px 2px 0;
+ background-color: #f2f2f2
+}
+
+.layui-quote-nm {
+ border-style: solid;
+ border-width: 1px 1px 1px 5px;
+ background: 0 0
+}
+
+.layui-elem-field {
+ margin-bottom: 10px;
+ padding: 0;
+ border-width: 1px;
+ border-style: solid
+}
+
+.layui-elem-field legend {
+ margin-left: 20px;
+ padding: 0 10px;
+ font-size: 20px;
+ font-weight: 300
+}
+
+.layui-field-title {
+ margin: 10px 0 20px;
+ border-width: 1px 0 0
+}
+
+.layui-field-box {
+ padding: 10px 15px
+}
+
+.layui-field-title .layui-field-box {
+ padding: 10px 0
+}
+
+.layui-progress {
+ position: relative;
+ height: 6px;
+ border-radius: 20px;
+ background-color: #e2e2e2
+}
+
+.layui-progress-bar {
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 0;
+ max-width: 100%;
+ height: 6px;
+ border-radius: 20px;
+ text-align: right;
+ background-color: #5FB878;
+ transition: all .3s;
+ -webkit-transition: all .3s
+}
+
+.layui-progress-big, .layui-progress-big .layui-progress-bar {
+ height: 18px;
+ line-height: 18px
+}
+
+.layui-progress-text {
+ position: relative;
+ top: -20px;
+ line-height: 18px;
+ font-size: 12px;
+ color: #666
+}
+
+.layui-progress-big .layui-progress-text {
+ position: static;
+ padding: 0 10px;
+ color: #fff
+}
+
+.layui-collapse {
+ border-width: 1px;
+ border-style: solid;
+ border-radius: 2px
+}
+
+.layui-colla-content, .layui-colla-item {
+ border-top-width: 1px;
+}
+
+.layui-colla-item:first-child {
+ border-top: none
+}
+
+.layui-colla-title {
+ position: relative;
+ height: 42px;
+ line-height: 42px;
+ padding: 0 15px 0 35px;
+ color: #333;
+ background-color: #f2f2f2;
+ cursor: pointer;
+ font-size: 14px;
+ overflow: hidden
+}
+
+.layui-colla-content {
+ display: none;
+ padding: 10px 15px;
+ line-height: 22px;
+ color: #666
+}
+
+.layui-colla-icon {
+ position: absolute;
+ left: 15px;
+ top: 0;
+ font-size: 14px
+}
+
+.layui-card {
+ margin-bottom: 15px;
+ border-radius: 2px;
+ background-color: #fff;
+ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05)
+}
+
+.layui-card:last-child {
+ margin-bottom: 0
+}
+
+.layui-card-header {
+ position: relative;
+ height: 42px;
+ line-height: 42px;
+ padding: 0 15px;
+ border-bottom: 1px solid #f6f6f6;
+ color: #333;
+ border-radius: 2px 2px 0 0;
+ font-size: 14px
+}
+
+.layui-bg-black, .layui-bg-blue, .layui-bg-cyan, .layui-bg-green, .layui-bg-orange, .layui-bg-red {
+ color: #fff !important
+}
+
+.layui-card-body {
+ position: relative;
+ padding: 10px 15px;
+ line-height: 24px
+}
+
+.layui-card-body[pad15] {
+ padding: 15px
+}
+
+.layui-card-body[pad20] {
+ padding: 20px
+}
+
+.layui-card-body .layui-table {
+ margin: 5px 0
+}
+
+.layui-card .layui-tab {
+ margin: 0
+}
+
+.layui-panel-window {
+ position: relative;
+ padding: 15px;
+ border-radius: 0;
+ border-top: 5px solid #E6E6E6;
+ background-color: #fff
+}
+
+.layui-auxiliar-moving {
+ position: fixed;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ width: 100%;
+ height: 100%;
+ background: 0 0;
+ z-index: 9999999999
+}
+
+.layui-form-label, .layui-form-mid, .layui-form-select, .layui-input-block, .layui-input-inline, .layui-textarea {
+ position: relative
+}
+
+.layui-bg-red {
+ background-color: #FF5722 !important
+}
+
+.layui-bg-orange {
+ background-color: #FFB800 !important
+}
+
+.layui-bg-green {
+ background-color: #009688 !important
+}
+
+.layui-bg-cyan {
+ background-color: #f80 !important
+}
+
+.layui-bg-blue {
+ background-color: #1E9FFF !important
+}
+
+.layui-bg-black {
+ background-color: #393D49 !important
+}
+
+.layui-bg-gray {
+ background-color: #eee !important;
+ color: #666 !important
+}
+
+.layui-badge-rim, .layui-colla-content, .layui-colla-item, .layui-collapse, .layui-elem-field, .layui-form-pane .layui-form-item[pane], .layui-form-pane .layui-form-label, .layui-input, .layui-layedit, .layui-layedit-tool, .layui-quote-nm, .layui-select, .layui-tab-bar, .layui-tab-card, .layui-tab-title, .layui-tab-title .layui-this:after, .layui-textarea {
+ border-color: #e6e6e6
+}
+
+.layui-timeline-item:before, hr {
+ background-color: #e6e6e6
+}
+
+.layui-text {
+ line-height: 22px;
+ font-size: 14px;
+ color: #666
+}
+
+.layui-text h1, .layui-text h2, .layui-text h3 {
+ font-weight: 500;
+ color: #333
+}
+
+.layui-text h1 {
+ font-size: 30px
+}
+
+.layui-text h2 {
+ font-size: 24px
+}
+
+.layui-text h3 {
+ font-size: 18px
+}
+
+.layui-text a:not(.layui-btn) {
+ color: #01AAED
+}
+
+.layui-text a:not(.layui-btn):hover {
+ text-decoration: underline
+}
+
+.layui-text ul {
+ padding: 5px 0 5px 15px
+}
+
+.layui-text ul li {
+ margin-top: 5px;
+ list-style-type: disc
+}
+
+.layui-text em, .layui-word-aux {
+ color: #999 !important;
+ padding: 0 5px !important
+}
+
+.layui-btn {
+ display: inline-block;
+ height: 38px;
+ line-height: 38px;
+ padding: 0 18px;
+ background-color: #f80;
+ color: #fff;
+ white-space: nowrap;
+ text-align: center;
+ font-size: 14px;
+ border: none;
+ border-radius: 2px;
+ cursor: pointer
+}
+
+.layui-btn:hover {
+ opacity: .8;
+ filter: alpha(opacity=80);
+ color: #fff
+}
+
+.layui-btn:active {
+ opacity: 1;
+ filter: alpha(opacity=100)
+}
+
+.layui-btn + .layui-btn {
+ margin-left: 10px
+}
+
+.layui-btn-container {
+ font-size: 0
+}
+
+.layui-btn-container .layui-btn {
+ margin-right: 10px;
+ margin-bottom: 10px
+}
+
+.layui-btn-container .layui-btn + .layui-btn {
+ margin-left: 0
+}
+
+.layui-table .layui-btn-container .layui-btn {
+ margin-bottom: 9px
+}
+
+.layui-btn-radius {
+ border-radius: 100px
+}
+
+.layui-btn .layui-icon {
+ margin-right: 3px;
+ font-size: 18px;
+ vertical-align: bottom;
+ vertical-align: middle \9
+}
+
+.layui-btn-primary {
+ border: 1px solid #C9C9C9;
+ background-color: #fff;
+ color: #555
+}
+
+.layui-btn-primary:hover {
+ border-color: #009688;
+ color: #333
+}
+
+.layui-btn-normal {
+ background-color: #1E9FFF
+}
+
+.layui-btn-warm {
+ background-color: #FFB800
+}
+
+.layui-btn-danger {
+ background-color: #FF5722
+}
+
+.layui-btn-disabled, .layui-btn-disabled:active, .layui-btn-disabled:hover {
+ border: 1px solid #e6e6e6;
+ background-color: #FBFBFB;
+ color: #C9C9C9;
+ cursor: not-allowed;
+ opacity: 1
+}
+
+.layui-btn-lg {
+ height: 44px;
+ line-height: 44px;
+ padding: 0 25px;
+ font-size: 16px
+}
+
+.layui-btn-sm {
+ height: 30px;
+ line-height: 30px;
+ padding: 0 10px;
+ font-size: 12px
+}
+
+.layui-btn-sm i {
+ font-size: 16px !important
+}
+
+.layui-btn-xs {
+ height: 22px;
+ line-height: 22px;
+ padding: 0 5px;
+ font-size: 12px
+}
+
+.layui-btn-xs i {
+ font-size: 14px !important
+}
+
+.layui-btn-group {
+ display: inline-block;
+ vertical-align: middle;
+ font-size: 0
+}
+
+.layui-btn-group .layui-btn {
+ margin-left: 0 !important;
+ margin-right: 0 !important;
+ border-left: 1px solid rgba(255, 255, 255, .5);
+ border-radius: 0
+}
+
+.layui-btn-group .layui-btn-primary {
+ border-left: none
+}
+
+.layui-btn-group .layui-btn-primary:hover {
+ border-color: #C9C9C9;
+ color: #009688
+}
+
+.layui-btn-group .layui-btn:first-child {
+ border-left: none;
+ border-radius: 2px 0 0 2px
+}
+
+.layui-btn-group .layui-btn-primary:first-child {
+ border-left: 1px solid #c9c9c9
+}
+
+.layui-btn-group .layui-btn:last-child {
+ border-radius: 0 2px 2px 0
+}
+
+.layui-btn-group .layui-btn + .layui-btn {
+ margin-left: 0
+}
+
+.layui-btn-group + .layui-btn-group {
+ margin-left: 10px
+}
+
+.layui-btn-fluid {
+ width: 100%
+}
+
+.layui-input, .layui-select, .layui-textarea {
+ height: 38px;
+ line-height: 1.3;
+ line-height: 38px \9;
+ border-width: 1px;
+ border-style: solid;
+ background-color: #fff;
+ border-radius: 2px
+}
+
+.layui-input::-webkit-input-placeholder, .layui-select::-webkit-input-placeholder, .layui-textarea::-webkit-input-placeholder {
+ line-height: 1.3
+}
+
+.layui-input, .layui-textarea {
+ display: block;
+ width: 100%;
+ padding-left: 10px
+}
+
+.layui-input:hover, .layui-textarea:hover {
+ border-color: #D2D2D2 !important
+}
+
+.layui-input:focus, .layui-textarea:focus {
+ border-color: #C9C9C9 !important
+}
+
+.layui-textarea {
+ min-height: 100px;
+ height: auto;
+ line-height: 20px;
+ padding: 6px 10px;
+ resize: vertical
+}
+
+.layui-select {
+ padding: 0 10px
+}
+
+.layui-form input[type=checkbox], .layui-form input[type=radio], .layui-form select {
+ display: none
+}
+
+.layui-form [lay-ignore] {
+ display: initial
+}
+
+.layui-form-item {
+ margin-bottom: 15px;
+ clear: both;
+ *zoom: 1
+}
+
+.layui-form-item:after {
+ content: '\20';
+ clear: both;
+ *zoom: 1;
+ display: block;
+ height: 0
+}
+
+.layui-form-label {
+ float: left;
+ display: block;
+ padding: 9px 15px;
+ width: 80px;
+ font-weight: 400;
+ line-height: 20px;
+ text-align: right
+}
+
+.layui-form-label-col {
+ display: block;
+ float: none;
+ padding: 9px 0;
+ line-height: 20px;
+ text-align: left
+}
+
+.layui-form-item .layui-inline {
+ margin-bottom: 5px;
+ margin-right: 10px
+}
+
+.layui-input-block {
+ margin-left: 110px;
+ min-height: 36px
+}
+
+.layui-input-inline {
+ display: inline-block;
+ vertical-align: middle
+}
+
+.layui-form-item .layui-input-inline {
+ float: left;
+ width: 190px;
+ margin-right: 10px
+}
+
+.layui-form-text .layui-input-inline {
+ width: auto
+}
+
+.layui-form-mid {
+ float: left;
+ display: block;
+ padding: 9px 0 !important;
+ line-height: 20px;
+ margin-right: 10px
+}
+
+.layui-form-danger + .layui-form-select .layui-input, .layui-form-danger:focus {
+ border-color: #FF5722 !important
+}
+
+.layui-form-select .layui-input {
+ padding-right: 30px;
+ cursor: pointer
+}
+
+.layui-form-select .layui-edge {
+ position: absolute;
+ right: 10px;
+ top: 50%;
+ margin-top: -3px;
+ cursor: pointer;
+ border-width: 6px;
+ border-top-color: #c2c2c2;
+ border-top-style: solid;
+ transition: all .3s;
+ -webkit-transition: all .3s
+}
+
+.layui-form-select dl {
+ display: none;
+ position: absolute;
+ left: 0;
+ top: 42px;
+ padding: 5px 0;
+ z-index: 899;
+ min-width: 100%;
+ border: 1px solid #d2d2d2;
+ max-height: 300px;
+ overflow-y: auto;
+ background-color: #fff;
+ border-radius: 2px;
+ box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
+ box-sizing: border-box
+}
+
+.layui-form-select dl dd, .layui-form-select dl dt {
+ padding: 0 10px;
+ line-height: 36px;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis
+}
+
+.layui-form-select dl dt {
+ font-size: 12px;
+ color: #999
+}
+
+.layui-form-select dl dd {
+ cursor: pointer
+}
+
+.layui-form-select dl dd:hover {
+ background-color: #f2f2f2;
+ -webkit-transition: .5s all;
+ transition: .5s all
+}
+
+.layui-form-select .layui-select-group dd {
+ padding-left: 20px
+}
+
+.layui-form-select dl dd.layui-select-tips {
+ padding-left: 10px !important;
+ color: #999
+}
+
+.layui-form-select dl dd.layui-this {
+ background-color: #5FB878;
+ color: #fff
+}
+
+.layui-form-checkbox, .layui-form-select dl dd.layui-disabled {
+ background-color: #fff
+}
+
+.layui-form-selected dl {
+ display: block
+}
+
+.layui-form-checkbox, .layui-form-checkbox *, .layui-form-switch {
+ display: inline-block;
+ vertical-align: middle
+}
+
+.layui-form-selected .layui-edge {
+ margin-top: -9px;
+ -webkit-transform: rotate(180deg);
+ transform: rotate(180deg);
+ margin-top: -3px \9
+}
+
+:root .layui-form-selected .layui-edge {
+ margin-top: -9px \0/ IE9
+}
+
+.layui-form-selectup dl {
+ top: auto;
+ bottom: 42px
+}
+
+.layui-select-none {
+ margin: 5px 0;
+ text-align: center;
+ color: #999
+}
+
+.layui-select-disabled .layui-disabled {
+ border-color: #eee !important
+}
+
+.layui-select-disabled .layui-edge {
+ border-top-color: #d2d2d2
+}
+
+.layui-form-checkbox {
+ position: relative;
+ height: 30px;
+ line-height: 30px;
+ margin-right: 10px;
+ padding-right: 30px;
+ cursor: pointer;
+ font-size: 0;
+ -webkit-transition: .1s linear;
+ transition: .1s linear;
+ box-sizing: border-box
+}
+
+.layui-form-checkbox span {
+ padding: 0 10px;
+ height: 100%;
+ font-size: 14px;
+ border-radius: 2px 0 0 2px;
+ background-color: #d2d2d2;
+ color: #fff;
+ overflow: hidden
+}
+
+.layui-form-checkbox:hover span {
+ background-color: #c2c2c2
+}
+
+.layui-form-checkbox i {
+ position: absolute;
+ right: 0;
+ top: 0;
+ width: 30px;
+ height: 28px;
+ border: 1px solid #d2d2d2;
+ border-left: none;
+ border-radius: 0 2px 2px 0;
+ color: #fff;
+ font-size: 20px;
+ text-align: center
+}
+
+.layui-form-checkbox:hover i {
+ border-color: #c2c2c2;
+ color: #c2c2c2
+}
+
+.layui-form-checked, .layui-form-checked:hover {
+ border-color: #5FB878
+}
+
+.layui-form-checked span, .layui-form-checked:hover span {
+ background-color: #5FB878
+}
+
+.layui-form-checked i, .layui-form-checked:hover i {
+ color: #5FB878
+}
+
+.layui-form-item .layui-form-checkbox {
+ margin-top: 4px
+}
+
+.layui-form-checkbox[lay-skin=primary] {
+ height: auto !important;
+ line-height: normal !important;
+ min-width: 18px;
+ min-height: 18px;
+ border: none !important;
+ margin-right: 0;
+ padding-left: 28px;
+ padding-right: 0;
+ background: 0 0
+}
+
+.layui-form-checkbox[lay-skin=primary] span {
+ padding-left: 0;
+ padding-right: 15px;
+ line-height: 18px;
+ background: 0 0;
+ color: #666
+}
+
+.layui-form-checkbox[lay-skin=primary] i {
+ right: auto;
+ left: 0;
+ width: 16px;
+ height: 16px;
+ line-height: 16px;
+ border: 1px solid #d2d2d2;
+ font-size: 12px;
+ border-radius: 2px;
+ background-color: #fff;
+ -webkit-transition: .1s linear;
+ transition: .1s linear
+}
+
+.layui-form-checkbox[lay-skin=primary]:hover i {
+ border-color: #5FB878;
+ color: #fff
+}
+
+.layui-form-checked[lay-skin=primary] i {
+ border-color: #5FB878;
+ background-color: #5FB878;
+ color: #fff
+}
+
+.layui-checkbox-disbaled[lay-skin=primary] span {
+ background: 0 0 !important;
+ color: #c2c2c2
+}
+
+.layui-checkbox-disbaled[lay-skin=primary]:hover i {
+ border-color: #d2d2d2
+}
+
+.layui-form-item .layui-form-checkbox[lay-skin=primary] {
+ margin-top: 10px
+}
+
+.layui-form-switch {
+ position: relative;
+ height: 22px;
+ line-height: 22px;
+ min-width: 35px;
+ padding: 0 5px;
+ margin-top: 8px;
+ border: 1px solid #d2d2d2;
+ border-radius: 20px;
+ cursor: pointer;
+ background-color: #fff;
+ -webkit-transition: .1s linear;
+ transition: .1s linear
+}
+
+.layui-form-switch i {
+ position: absolute;
+ left: 5px;
+ top: 3px;
+ width: 16px;
+ height: 16px;
+ border-radius: 20px;
+ background-color: #d2d2d2;
+ -webkit-transition: .1s linear;
+ transition: .1s linear
+}
+
+.layui-form-switch em {
+ position: relative;
+ top: 0;
+ width: 25px;
+ margin-left: 21px;
+ padding: 0 !important;
+ text-align: center !important;
+ color: #999 !important;
+ font-style: normal !important;
+ font-size: 12px
+}
+
+.layui-form-onswitch {
+ border-color: #5FB878;
+ background-color: #5FB878
+}
+
+.layui-checkbox-disbaled, .layui-checkbox-disbaled i {
+ border-color: #e2e2e2 !important
+}
+
+.layui-form-onswitch i {
+ left: 100%;
+ margin-left: -21px;
+ background-color: #fff
+}
+
+.layui-form-onswitch em {
+ margin-left: 5px;
+ margin-right: 21px;
+ color: #fff !important
+}
+
+.layui-checkbox-disbaled span {
+ background-color: #e2e2e2 !important
+}
+
+.layui-checkbox-disbaled:hover i {
+ color: #fff !important
+}
+
+[lay-radio] {
+ display: none
+}
+
+.layui-form-radio, .layui-form-radio * {
+ display: inline-block;
+ vertical-align: middle
+}
+
+.layui-form-radio {
+ line-height: 28px;
+ margin: 6px 10px 0 0;
+ padding-right: 10px;
+ cursor: pointer;
+ font-size: 0
+}
+
+.layui-form-radio * {
+ font-size: 14px
+}
+
+.layui-form-radio > i {
+ margin-right: 8px;
+ font-size: 22px;
+ color: #c2c2c2
+}
+
+.layui-form-radio > i:hover, .layui-form-radioed > i {
+ color: #5FB878
+}
+
+.layui-radio-disbaled > i {
+ color: #e2e2e2 !important
+}
+
+.layui-form-pane .layui-form-label {
+ width: 110px;
+ padding: 8px 15px;
+ height: 38px;
+ line-height: 20px;
+ border-width: 1px;
+ border-style: solid;
+ border-radius: 2px 0 0 2px;
+ text-align: center;
+ background-color: #FBFBFB;
+ overflow: hidden;
+ box-sizing: border-box
+}
+
+.layui-form-pane .layui-input-inline {
+ margin-left: -1px
+}
+
+.layui-form-pane .layui-input-block {
+ margin-left: 110px;
+ left: -1px
+}
+
+.layui-form-pane .layui-input {
+ border-radius: 0 2px 2px 0
+}
+
+.layui-form-pane .layui-form-text .layui-form-label {
+ float: none;
+ width: 100%;
+ border-radius: 2px;
+ box-sizing: border-box;
+ text-align: left
+}
+
+.layui-form-pane .layui-form-text .layui-input-inline {
+ display: block;
+ margin: 0;
+ top: -1px;
+ clear: both
+}
+
+.layui-form-pane .layui-form-text .layui-input-block {
+ margin: 0;
+ left: 0;
+ top: -1px
+}
+
+.layui-form-pane .layui-form-text .layui-textarea {
+ min-height: 100px;
+ border-radius: 0 0 2px 2px
+}
+
+.layui-form-pane .layui-form-checkbox {
+ margin: 4px 0 4px 10px
+}
+
+.layui-form-pane .layui-form-radio, .layui-form-pane .layui-form-switch {
+ margin-top: 6px;
+ margin-left: 10px
+}
+
+.layui-form-pane .layui-form-item[pane] {
+ position: relative;
+ border-width: 1px;
+ border-style: solid
+}
+
+.layui-form-pane .layui-form-item[pane] .layui-form-label {
+ position: absolute;
+ left: 0;
+ top: 0;
+ height: 100%;
+ border-width: 0 1px 0 0
+}
+
+.layui-form-pane .layui-form-item[pane] .layui-input-inline {
+ margin-left: 110px
+}
+
+@media screen and (max-width: 450px) {
+ .layui-form-item .layui-form-label {
+ text-overflow: ellipsis;
+ overflow: hidden;
+ white-space: nowrap
+ }
+
+ .layui-form-item .layui-inline {
+ display: block;
+ margin-right: 0;
+ margin-bottom: 20px;
+ clear: both
+ }
+
+ .layui-form-item .layui-inline:after {
+ content: '\20';
+ clear: both;
+ display: block;
+ height: 0
+ }
+
+ .layui-form-item .layui-input-inline {
+ display: block;
+ float: none;
+ left: -3px;
+ width: auto;
+ margin: 0 0 10px 112px
+ }
+
+ .layui-form-item .layui-input-inline + .layui-form-mid {
+ margin-left: 110px;
+ top: -5px;
+ padding: 0
+ }
+
+ .layui-form-item .layui-form-checkbox {
+ margin-right: 5px;
+ margin-bottom: 5px
+ }
+}
+
+.layui-layedit {
+ border-width: 1px;
+ border-style: solid;
+ border-radius: 2px
+}
+
+.layui-layedit-tool {
+ padding: 3px 5px;
+ border-bottom-width: 1px;
+ border-bottom-style: solid;
+ font-size: 0
+}
+
+.layedit-tool-fixed {
+ position: fixed;
+ top: 0;
+ border-top: 1px solid #e2e2e2
+}
+
+.layui-layedit-tool .layedit-tool-mid, .layui-layedit-tool .layui-icon {
+ display: inline-block;
+ vertical-align: middle;
+ text-align: center;
+ font-size: 14px
+}
+
+.layui-layedit-tool .layui-icon {
+ position: relative;
+ width: 32px;
+ height: 30px;
+ line-height: 30px;
+ margin: 3px 5px;
+ color: #777;
+ cursor: pointer;
+ border-radius: 2px
+}
+
+.layui-layedit-tool .layui-icon:hover {
+ color: #393D49
+}
+
+.layui-layedit-tool .layui-icon:active {
+ color: #000
+}
+
+.layui-layedit-tool .layedit-tool-active {
+ background-color: #e2e2e2;
+ color: #000
+}
+
+.layui-layedit-tool .layui-disabled, .layui-layedit-tool .layui-disabled:hover {
+ color: #d2d2d2;
+ cursor: not-allowed
+}
+
+.layui-layedit-tool .layedit-tool-mid {
+ width: 1px;
+ height: 18px;
+ margin: 0 10px;
+ background-color: #d2d2d2
+}
+
+.layedit-tool-html {
+ width: 50px !important;
+ font-size: 30px !important
+}
+
+.layedit-tool-b, .layedit-tool-code, .layedit-tool-help {
+ font-size: 16px !important
+}
+
+.layedit-tool-d, .layedit-tool-face, .layedit-tool-image, .layedit-tool-unlink {
+ font-size: 18px !important
+}
+
+.layedit-tool-image input {
+ position: absolute;
+ font-size: 0;
+ left: 0;
+ top: 0;
+ width: 100%;
+ height: 100%;
+ opacity: .01;
+ filter: Alpha(opacity=1);
+ cursor: pointer
+}
+
+.layui-layedit-iframe iframe {
+ display: block;
+ width: 100%
+}
+
+#LAY_layedit_code {
+ overflow: hidden
+}
+
+.layui-laypage {
+ display: inline-block;
+ *display: inline;
+ *zoom: 1;
+ vertical-align: middle;
+ margin: 10px 0;
+ font-size: 0
+}
+
+.layui-laypage > a:first-child, .layui-laypage > a:first-child em {
+ border-radius: 2px 0 0 2px
+}
+
+.layui-laypage > a:last-child, .layui-laypage > a:last-child em {
+ border-radius: 0 2px 2px 0
+}
+
+.layui-laypage > :first-child {
+ margin-left: 0 !important
+}
+
+.layui-laypage > :last-child {
+ margin-right: 0 !important
+}
+
+.layui-laypage a, .layui-laypage button, .layui-laypage input, .layui-laypage select, .layui-laypage span {
+ border: 1px solid #e2e2e2
+}
+
+.layui-laypage a, .layui-laypage span {
+ display: inline-block;
+ *display: inline;
+ *zoom: 1;
+ vertical-align: middle;
+ padding: 0 15px;
+ height: 28px;
+ line-height: 28px;
+ margin: 0 -1px 5px 0;
+ background-color: #fff;
+ color: #333;
+ font-size: 12px
+}
+
+.layui-flow-more a *, .layui-laypage input, .layui-table-view select[lay-ignore] {
+ display: inline-block
+}
+
+.layui-laypage a:hover {
+ color: #009688
+}
+
+.layui-laypage em {
+ font-style: normal
+}
+
+.layui-laypage .layui-laypage-spr {
+ color: #999;
+ font-weight: 700
+}
+
+.layui-laypage a {
+ text-decoration: none
+}
+
+.layui-laypage .layui-laypage-curr {
+ position: relative
+}
+
+.layui-laypage .layui-laypage-curr em {
+ position: relative;
+ color: #fff
+}
+
+.layui-laypage .layui-laypage-curr .layui-laypage-em {
+ position: absolute;
+ left: -1px;
+ top: -1px;
+ padding: 1px;
+ width: 100%;
+ height: 100%;
+ background-color: #f80
+}
+
+.layui-laypage-em {
+ border-radius: 2px
+}
+
+.layui-laypage-next em, .layui-laypage-prev em {
+ font-family: Sim sun;
+ font-size: 16px
+}
+
+.layui-laypage .layui-laypage-count, .layui-laypage .layui-laypage-limits, .layui-laypage .layui-laypage-refresh, .layui-laypage .layui-laypage-skip {
+ margin-left: 10px;
+ margin-right: 10px;
+ padding: 0;
+ border: none
+}
+
+.layui-laypage .layui-laypage-limits, .layui-laypage .layui-laypage-refresh {
+ vertical-align: top
+}
+
+.layui-laypage .layui-laypage-refresh i {
+ font-size: 18px;
+ cursor: pointer
+}
+
+.layui-laypage select {
+ height: 22px;
+ padding: 3px;
+ border-radius: 2px;
+ cursor: pointer
+}
+
+.layui-laypage .layui-laypage-skip {
+ height: 30px;
+ line-height: 30px;
+ color: #999
+}
+
+.layui-laypage button, .layui-laypage input {
+ height: 30px;
+ line-height: 30px;
+ border-radius: 2px;
+ vertical-align: top;
+ background-color: #fff;
+ box-sizing: border-box
+}
+
+.layui-laypage input {
+ width: 40px;
+ margin: 0 10px;
+ padding: 0 3px;
+ text-align: center
+}
+
+.layui-laypage input:focus, .layui-laypage select:focus {
+ border-color: #009688 !important
+}
+
+.layui-laypage button {
+ margin-left: 10px;
+ padding: 0 10px;
+ cursor: pointer
+}
+
+.layui-table, .layui-table-view {
+ margin: 10px 0
+}
+
+.layui-flow-more {
+ margin: 10px 0;
+ text-align: center;
+ color: #999;
+ font-size: 14px
+}
+
+.layui-flow-more a {
+ height: 32px;
+ line-height: 32px
+}
+
+.layui-flow-more a * {
+ vertical-align: top
+}
+
+.layui-flow-more a cite {
+ padding: 0 20px;
+ border-radius: 3px;
+ background-color: #eee;
+ color: #333;
+ font-style: normal
+}
+
+.layui-flow-more a cite:hover {
+ opacity: .8
+}
+
+.layui-flow-more a i {
+ font-size: 30px;
+ color: #737383
+}
+
+.layui-table {
+ width: 100%;
+ background-color: #fff;
+ color: #666
+}
+
+.layui-table tr {
+ transition: all .3s;
+ -webkit-transition: all .3s
+}
+
+.layui-table th {
+ text-align: left;
+ font-weight: 400
+}
+
+.layui-table tbody tr:hover, .layui-table thead tr, .layui-table-click, .layui-table-header, .layui-table-hover, .layui-table-mend, .layui-table-patch, .layui-table-tool, .layui-table-total, .layui-table-total tr, .layui-table[lay-even] tr:nth-child(even) {
+ background-color: #f2f2f2
+}
+
+.layui-table td, .layui-table th, .layui-table-col-set, .layui-table-fixed-r, .layui-table-grid-down, .layui-table-header, .layui-table-page, .layui-table-tips-main, .layui-table-tool, .layui-table-total, .layui-table-view, .layui-table[lay-skin=line], .layui-table[lay-skin=row] {
+ border-width: 1px;
+ border-style: solid;
+ border-color: #e6e6e6
+}
+
+.layui-table td, .layui-table th {
+ position: relative;
+ padding: 9px 15px;
+ min-height: 20px;
+ line-height: 20px;
+ font-size: 14px
+}
+
+.layui-table[lay-skin=line] td, .layui-table[lay-skin=line] th {
+ border-width: 0 0 1px
+}
+
+.layui-table[lay-skin=row] td, .layui-table[lay-skin=row] th {
+ border-width: 0 1px 0 0
+}
+
+.layui-table[lay-skin=nob] td, .layui-table[lay-skin=nob] th {
+ border: none
+}
+
+.layui-table img {
+ max-width: 100px
+}
+
+.layui-table[lay-size=lg] td, .layui-table[lay-size=lg] th {
+ padding: 15px 30px
+}
+
+.layui-table-view .layui-table[lay-size=lg] .layui-table-cell {
+ height: 40px;
+ line-height: 40px
+}
+
+.layui-table[lay-size=sm] td, .layui-table[lay-size=sm] th {
+ font-size: 12px;
+ padding: 5px 10px
+}
+
+.layui-table-view .layui-table[lay-size=sm] .layui-table-cell {
+ height: 20px;
+ line-height: 20px
+}
+
+.layui-table[lay-data] {
+ display: none
+}
+
+.layui-table-box {
+ position: relative;
+ overflow: hidden
+}
+
+.layui-table-view .layui-table {
+ position: relative;
+ width: auto;
+ margin: 0
+}
+
+.layui-table-view .layui-table[lay-skin=line] {
+ border-width: 0 1px 0 0
+}
+
+.layui-table-view .layui-table[lay-skin=row] {
+ border-width: 0 0 1px
+}
+
+.layui-table-view .layui-table td, .layui-table-view .layui-table th {
+ padding: 5px 0;
+ border-top: none;
+ border-left: none
+}
+
+.layui-table-view .layui-table th.layui-unselect .layui-table-cell span {
+ cursor: pointer
+}
+
+.layui-table-view .layui-table td {
+ cursor: default
+}
+
+.layui-table-view .layui-form-checkbox[lay-skin=primary] i {
+ width: 18px;
+ height: 18px
+}
+
+.layui-table-view .layui-form-radio {
+ line-height: 0;
+ padding: 0
+}
+
+.layui-table-view .layui-form-radio > i {
+ margin: 0;
+ font-size: 20px
+}
+
+.layui-table-init {
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 100%;
+ height: 100%;
+ text-align: center;
+ z-index: 110
+}
+
+.layui-table-init .layui-icon {
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ margin: -15px 0 0 -15px;
+ font-size: 30px;
+ color: #c2c2c2
+}
+
+.layui-table-header {
+ border-width: 0 0 1px;
+ overflow: hidden
+}
+
+.layui-table-header .layui-table {
+ margin-bottom: -1px
+}
+
+.layui-table-tool .layui-inline[lay-event] {
+ position: relative;
+ width: 26px;
+ height: 26px;
+ padding: 5px;
+ line-height: 16px;
+ margin-right: 10px;
+ text-align: center;
+ color: #333;
+ border: 1px solid #ccc;
+ cursor: pointer;
+ -webkit-transition: .5s all;
+ transition: .5s all
+}
+
+.layui-table-tool .layui-inline[lay-event]:hover {
+ border: 1px solid #999
+}
+
+.layui-table-tool-temp {
+ padding-right: 120px
+}
+
+.layui-table-tool-self {
+ position: absolute;
+ right: 17px;
+ top: 10px
+}
+
+.layui-table-tool .layui-table-tool-self .layui-inline[lay-event] {
+ margin: 0 0 0 10px
+}
+
+.layui-table-tool-panel {
+ position: absolute;
+ top: 29px;
+ left: -1px;
+ padding: 5px 0;
+ min-width: 150px;
+ min-height: 40px;
+ border: 1px solid #d2d2d2;
+ text-align: left;
+ overflow-y: auto;
+ background-color: #fff;
+ box-shadow: 0 2px 4px rgba(0, 0, 0, .12)
+}
+
+.layui-table-cell, .layui-table-tool-panel li {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap
+}
+
+.layui-table-tool-panel li {
+ padding: 0 10px;
+ line-height: 30px;
+ -webkit-transition: .5s all;
+ transition: .5s all
+}
+
+.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary] {
+ width: 100%;
+ padding-left: 28px
+}
+
+.layui-table-tool-panel li:hover {
+ background-color: #f2f2f2
+}
+
+.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary] i {
+ position: absolute;
+ left: 0;
+ top: 0
+}
+
+.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary] span {
+ padding: 0
+}
+
+.layui-table-tool .layui-table-tool-self .layui-table-tool-panel {
+ left: auto;
+ right: -1px
+}
+
+.layui-table-col-set {
+ position: absolute;
+ right: 0;
+ top: 0;
+ width: 20px;
+ height: 100%;
+ border-width: 0 0 0 1px;
+ background-color: #fff
+}
+
+.layui-table-sort {
+ width: 10px;
+ height: 20px;
+ margin-left: 5px;
+ cursor: pointer !important
+}
+
+.layui-table-sort .layui-edge {
+ position: absolute;
+ left: 5px;
+ border-width: 5px
+}
+
+.layui-table-sort .layui-table-sort-asc {
+ top: 3px;
+ border-top: none;
+ border-bottom-style: solid;
+ border-bottom-color: #b2b2b2
+}
+
+.layui-table-sort .layui-table-sort-asc:hover {
+ border-bottom-color: #666
+}
+
+.layui-table-sort .layui-table-sort-desc {
+ bottom: 5px;
+ border-bottom: none;
+ border-top-style: solid;
+ border-top-color: #b2b2b2
+}
+
+.layui-table-sort .layui-table-sort-desc:hover {
+ border-top-color: #666
+}
+
+.layui-table-sort[lay-sort=asc] .layui-table-sort-asc {
+ border-bottom-color: #000
+}
+
+.layui-table-sort[lay-sort=desc] .layui-table-sort-desc {
+ border-top-color: #000
+}
+
+.layui-table-cell {
+ height: 28px;
+ line-height: 28px;
+ padding: 0 15px;
+ position: relative;
+ box-sizing: border-box
+}
+
+.layui-table-cell .layui-form-checkbox[lay-skin=primary] {
+ top: -1px;
+ padding: 0
+}
+
+.layui-table-cell .layui-table-link {
+ color: #01AAED
+}
+
+.laytable-cell-checkbox, .laytable-cell-numbers, .laytable-cell-radio, .laytable-cell-space {
+ padding: 0;
+ text-align: center
+}
+
+.layui-table-body {
+ position: relative;
+ overflow: auto;
+ margin-right: -1px;
+ margin-bottom: -1px
+}
+
+.layui-table-body .layui-none {
+ line-height: 26px;
+ padding: 15px;
+ text-align: center;
+ color: #999
+}
+
+.layui-table-fixed {
+ position: absolute;
+ left: 0;
+ top: 0;
+ z-index: 101
+}
+
+.layui-table-fixed .layui-table-body {
+ overflow: hidden
+}
+
+.layui-table-fixed-l {
+ box-shadow: 0 -1px 8px rgba(0, 0, 0, .08)
+}
+
+.layui-table-fixed-r {
+ left: auto;
+ right: -1px;
+ border-width: 0 0 0 1px;
+ box-shadow: -1px 0 8px rgba(0, 0, 0, .08)
+}
+
+.layui-table-fixed-r .layui-table-header {
+ position: relative;
+ overflow: visible
+}
+
+.layui-table-mend {
+ position: absolute;
+ right: -49px;
+ top: 0;
+ height: 100%;
+ width: 50px
+}
+
+.layui-table-tool {
+ position: relative;
+ z-index: 890;
+ width: 100%;
+ min-height: 50px;
+ line-height: 30px;
+ padding: 10px 15px;
+ border-width: 0 0 1px
+}
+
+.layui-table-tool .layui-btn-container {
+ margin-bottom: -10px
+}
+
+.layui-table-page, .layui-table-total {
+ border-width: 1px 0 0;
+ margin-bottom: -1px;
+ overflow: hidden
+}
+
+.layui-table-page {
+ position: relative;
+ width: 100%;
+ padding: 7px 7px 0;
+ height: 41px;
+ font-size: 12px;
+ white-space: nowrap
+}
+
+.layui-table-page > div {
+ height: 26px
+}
+
+.layui-table-page .layui-laypage {
+ margin: 0
+}
+
+.layui-table-page .layui-laypage a, .layui-table-page .layui-laypage span {
+ height: 26px;
+ line-height: 26px;
+ margin-bottom: 10px;
+ border: none;
+ background: 0 0
+}
+
+.layui-table-page .layui-laypage a, .layui-table-page .layui-laypage span.layui-laypage-curr {
+ padding: 0 12px
+}
+
+.layui-table-page .layui-laypage span {
+ margin-left: 0;
+ padding: 0
+}
+
+.layui-table-page .layui-laypage .layui-laypage-prev {
+ margin-left: -7px !important
+}
+
+.layui-table-page .layui-laypage .layui-laypage-curr .layui-laypage-em {
+ left: 0;
+ top: 0;
+ padding: 0
+}
+
+.layui-table-page .layui-laypage button, .layui-table-page .layui-laypage input {
+ height: 26px;
+ line-height: 26px
+}
+
+.layui-table-page .layui-laypage input {
+ width: 40px
+}
+
+.layui-table-page .layui-laypage button {
+ padding: 0 10px
+}
+
+.layui-table-page select {
+ height: 18px
+}
+
+.layui-table-patch .layui-table-cell {
+ padding: 0;
+ width: 30px
+}
+
+.layui-table-edit {
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 100%;
+ height: 100%;
+ padding: 0 14px 1px;
+ border-radius: 0;
+ box-shadow: 1px 1px 20px rgba(0, 0, 0, .15)
+}
+
+.layui-table-edit:focus {
+ border-color: #5FB878 !important
+}
+
+select.layui-table-edit {
+ padding: 0 0 0 10px;
+ border-color: #C9C9C9
+}
+
+.layui-table-view .layui-form-checkbox, .layui-table-view .layui-form-radio, .layui-table-view .layui-form-switch {
+ top: 0;
+ margin: 0;
+ box-sizing: content-box
+}
+
+.layui-table-view .layui-form-checkbox {
+ top: -1px;
+ height: 26px;
+ line-height: 26px
+}
+
+.layui-table-view .layui-form-checkbox i {
+ height: 26px
+}
+
+.layui-table-grid .layui-table-cell {
+ overflow: visible
+}
+
+.layui-table-grid-down {
+ position: absolute;
+ top: 0;
+ right: 0;
+ width: 26px;
+ height: 100%;
+ padding: 5px 0;
+ border-width: 0 0 0 1px;
+ text-align: center;
+ background-color: #fff;
+ color: #999;
+ cursor: pointer
+}
+
+.layui-table-grid-down .layui-icon {
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ margin: -8px 0 0 -8px
+}
+
+.layui-table-grid-down:hover {
+ background-color: #fbfbfb
+}
+
+body .layui-table-tips .layui-layer-content {
+ background: 0 0;
+ padding: 0;
+ box-shadow: 0 1px 6px rgba(0, 0, 0, .12)
+}
+
+.layui-table-tips-main {
+ margin: -44px 0 0 -1px;
+ max-height: 150px;
+ padding: 8px 15px;
+ font-size: 14px;
+ overflow-y: scroll;
+ background-color: #fff;
+ color: #666
+}
+
+.layui-table-tips-c {
+ position: absolute;
+ right: -3px;
+ top: -13px;
+ width: 20px;
+ height: 20px;
+ padding: 3px;
+ cursor: pointer;
+ background-color: #666;
+ border-radius: 50%;
+ color: #fff
+}
+
+.layui-table-tips-c:hover {
+ background-color: #777
+}
+
+.layui-table-tips-c:before {
+ position: relative;
+ right: -2px
+}
+
+.layui-upload-file {
+ display: none !important;
+ opacity: .01;
+ filter: Alpha(opacity=1)
+}
+
+.layui-upload-drag, .layui-upload-form, .layui-upload-wrap {
+ display: inline-block
+}
+
+.layui-upload-list {
+ margin: 10px 0
+}
+
+.layui-upload-choose {
+ padding: 0 10px;
+ color: #999
+}
+
+.layui-upload-drag {
+ position: relative;
+ padding: 30px;
+ border: 1px dashed #e2e2e2;
+ background-color: #fff;
+ text-align: center;
+ cursor: pointer;
+ color: #999
+}
+
+.layui-upload-drag .layui-icon {
+ font-size: 50px;
+ color: #009688
+}
+
+.layui-upload-drag[lay-over] {
+ border-color: #009688
+}
+
+.layui-upload-iframe {
+ position: absolute;
+ width: 0;
+ height: 0;
+ border: 0;
+ visibility: hidden
+}
+
+.layui-upload-wrap {
+ position: relative;
+ vertical-align: middle
+}
+
+.layui-upload-wrap .layui-upload-file {
+ display: block !important;
+ position: absolute;
+ left: 0;
+ top: 0;
+ z-index: 10;
+ font-size: 100px;
+ width: 100%;
+ height: 100%;
+ opacity: .01;
+ filter: Alpha(opacity=1);
+ cursor: pointer
+}
+
+.layui-tree {
+ line-height: 26px
+}
+
+.layui-tree li {
+ text-overflow: ellipsis;
+ overflow: hidden;
+ white-space: nowrap
+}
+
+.layui-tree li .layui-tree-spread, .layui-tree li a {
+ display: inline-block;
+ vertical-align: top;
+ height: 26px;
+ *display: inline;
+ *zoom: 1;
+ cursor: pointer
+}
+
+.layui-tree li a {
+ font-size: 0
+}
+
+.layui-tree li a i {
+ font-size: 16px
+}
+
+.layui-tree li a cite {
+ padding: 0 6px;
+ font-size: 14px;
+ font-style: normal
+}
+
+.layui-tree li i {
+ padding-left: 6px;
+ color: #333;
+ -moz-user-select: none
+}
+
+.layui-tree li .layui-tree-check {
+ font-size: 13px
+}
+
+.layui-tree li .layui-tree-check:hover {
+ color: #009E94
+}
+
+.layui-tree li ul {
+ display: none;
+ margin-left: 20px
+}
+
+.layui-tree li .layui-tree-enter {
+ line-height: 24px;
+ border: 1px dotted #000
+}
+
+.layui-tree-drag {
+ display: none;
+ position: absolute;
+ left: -666px;
+ top: -666px;
+ background-color: #f2f2f2;
+ padding: 5px 10px;
+ border: 1px dotted #000;
+ white-space: nowrap
+}
+
+.layui-tree-drag i {
+ padding-right: 5px
+}
+
+.layui-nav {
+ position: relative;
+ padding: 0 20px;
+ background-color: #f80;
+ color: #fff;
+ border-radius: 2px;
+ font-size: 0;
+ box-sizing: border-box
+}
+
+.layui-nav * {
+ font-size: 14px
+}
+
+.layui-nav .layui-nav-item {
+ position: relative;
+ display: inline-block;
+ *display: inline;
+ *zoom: 1;
+ vertical-align: middle;
+ line-height: 60px
+}
+
+.layui-nav .layui-nav-item a {
+ display: block;
+ padding: 0 20px;
+ color: #fff;
+ transition: all .3s;
+ -webkit-transition: all .3s
+}
+
+.layui-nav .layui-this:after, .layui-nav-bar, .layui-nav-tree .layui-nav-itemed:after {
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 0;
+ height: 5px;
+ background-color: rgba(255, 255, 255, 0.8);;
+ transition: all .2s;
+ -webkit-transition: all .2s
+}
+
+.layui-nav-bar {
+ z-index: 1000
+}
+
+.layui-nav .layui-nav-item a:hover, .layui-nav .layui-this a {
+ color: #fff
+}
+
+.layui-nav .layui-this:after {
+ content: '';
+ top: auto;
+ bottom: 0;
+ width: 100%
+}
+
+.layui-nav-img {
+ width: 30px;
+ height: 30px;
+ margin-right: 10px;
+ border-radius: 50%
+}
+
+.layui-nav .layui-nav-more {
+ content: '';
+ width: 0;
+ height: 0;
+ border-style: solid dashed dashed;
+ border-color: #fff transparent transparent;
+ overflow: hidden;
+ cursor: pointer;
+ transition: all .2s;
+ -webkit-transition: all .2s;
+ position: absolute;
+ top: 50%;
+ right: 3px;
+ margin-top: -3px;
+ border-width: 6px;
+ border-top-color: rgba(255, 255, 255, .7)
+}
+
+.layui-nav .layui-nav-mored, .layui-nav-itemed > a .layui-nav-more {
+ margin-top: -9px;
+ border-style: dashed dashed solid;
+ border-color: transparent transparent #fff
+}
+
+.layui-nav-child {
+ display: none;
+ position: absolute;
+ left: 0;
+ top: 65px;
+ min-width: 100%;
+ line-height: 36px;
+ padding: 5px 0;
+ box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
+ border: 1px solid #d2d2d2;
+ background-color: #fff;
+ z-index: 100;
+ border-radius: 2px;
+ white-space: nowrap
+}
+
+.layui-nav .layui-nav-child a {
+ color: #333
+}
+
+.layui-nav .layui-nav-child a:hover {
+ background-color: #f2f2f2;
+ color: #000
+}
+
+.layui-nav-child dd {
+ position: relative
+}
+
+.layui-nav .layui-nav-child dd.layui-this a, .layui-nav-child dd.layui-this {
+ background-color: #f80;
+}
+
+.layui-nav-child dd.layui-this:after {
+ display: none
+}
+
+.layui-nav-tree {
+ width: 200px;
+ padding: 0
+}
+
+.layui-nav-tree .layui-nav-item {
+ display: block;
+ width: 100%;
+ line-height: 45px
+}
+
+.layui-nav-tree .layui-nav-item a {
+ position: relative;
+ height: 45px;
+ line-height: 45px;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ white-space: nowrap
+}
+
+.layui-nav-tree .layui-nav-item a:hover {
+ background-color: #4E5465
+}
+
+.layui-nav-tree .layui-nav-bar {
+ width: 5px;
+ height: 0;
+ background-color: #009688
+}
+
+.layui-nav-tree .layui-nav-child dd.layui-this, .layui-nav-tree .layui-nav-child dd.layui-this a, .layui-nav-tree .layui-this, .layui-nav-tree .layui-this > a, .layui-nav-tree .layui-this > a:hover {
+ background-color: #009688;
+ color: #fff
+}
+
+.layui-nav-tree .layui-this:after {
+ display: none
+}
+
+.layui-nav-itemed > a, .layui-nav-tree .layui-nav-title a, .layui-nav-tree .layui-nav-title a:hover {
+ color: #fff !important
+}
+
+.layui-nav-tree .layui-nav-child {
+ position: relative;
+ z-index: 0;
+ top: 0;
+ border: none;
+ box-shadow: none
+}
+
+.layui-nav-tree .layui-nav-child a {
+ height: 40px;
+ line-height: 40px;
+ color: #fff;
+ color: rgba(255, 255, 255, .7)
+}
+
+.layui-nav-tree .layui-nav-child, .layui-nav-tree .layui-nav-child a:hover {
+ background: 0 0;
+ color: #fff
+}
+
+.layui-nav-tree .layui-nav-more {
+ right: 10px
+}
+
+.layui-nav-itemed > .layui-nav-child {
+ display: block;
+ padding: 0;
+ background-color: rgba(0, 0, 0, .3) !important
+}
+
+.layui-nav-itemed > .layui-nav-child > .layui-this > .layui-nav-child {
+ display: block
+}
+
+.layui-nav-side {
+ position: fixed;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ overflow-x: hidden;
+ z-index: 999
+}
+
+.layui-bg-blue .layui-nav-bar, .layui-bg-blue .layui-nav-itemed:after, .layui-bg-blue .layui-this:after {
+ background-color: #93D1FF
+}
+
+.layui-bg-blue .layui-nav-child dd.layui-this {
+ background-color: #1E9FFF
+}
+
+.layui-bg-blue .layui-nav-itemed > a, .layui-nav-tree.layui-bg-blue .layui-nav-title a, .layui-nav-tree.layui-bg-blue .layui-nav-title a:hover {
+ background-color: #007DDB !important
+}
+
+.layui-breadcrumb {
+ visibility: hidden;
+ font-size: 0
+}
+
+.layui-breadcrumb > * {
+ font-size: 14px
+}
+
+.layui-breadcrumb a {
+ color: #999 !important
+}
+
+.layui-breadcrumb a:hover {
+ color: #5FB878 !important
+}
+
+.layui-breadcrumb a cite {
+ color: #666;
+ font-style: normal
+}
+
+.layui-breadcrumb span[lay-separator] {
+ margin: 0 10px;
+ color: #999
+}
+
+.layui-tab {
+ margin: 10px 0;
+ text-align: left !important
+}
+
+.layui-tab[overflow] > .layui-tab-title {
+ overflow: hidden
+}
+
+.layui-tab-title {
+ position: relative;
+ left: 0;
+ height: 40px;
+ white-space: nowrap;
+ font-size: 0;
+ border-bottom-width: 1px;
+ border-bottom-style: solid;
+ transition: all .2s;
+ -webkit-transition: all .2s
+}
+
+.layui-tab-title li {
+ display: inline-block;
+ *display: inline;
+ *zoom: 1;
+ vertical-align: middle;
+ font-size: 14px;
+ transition: all .2s;
+ -webkit-transition: all .2s;
+ position: relative;
+ line-height: 40px;
+ min-width: 65px;
+ padding: 0 15px;
+ text-align: center;
+ cursor: pointer
+}
+
+.layui-tab-title li a {
+ display: block
+}
+
+.layui-tab-title .layui-this {
+ color: #000
+}
+
+.layui-tab-title .layui-this:after {
+ position: absolute;
+ left: 0;
+ top: 0;
+ content: '';
+ width: 100%;
+ height: 41px;
+ border-width: 1px;
+ border-style: solid;
+ border-bottom-color: #fff;
+ border-radius: 2px 2px 0 0;
+ box-sizing: border-box;
+ pointer-events: none
+}
+
+.layui-tab-bar {
+ position: absolute;
+ right: 0;
+ top: 0;
+ z-index: 10;
+ width: 30px;
+ height: 39px;
+ line-height: 39px;
+ border-width: 1px;
+ border-style: solid;
+ border-radius: 2px;
+ text-align: center;
+ background-color: #fff;
+ cursor: pointer
+}
+
+.layui-tab-bar .layui-icon {
+ position: relative;
+ display: inline-block;
+ top: 3px;
+ transition: all .3s;
+ -webkit-transition: all .3s
+}
+
+.layui-tab-item {
+ display: none
+}
+
+.layui-tab-more {
+ padding-right: 30px;
+ height: auto !important;
+ white-space: normal !important
+}
+
+.layui-tab-more li.layui-this:after {
+ border-bottom-color: #e2e2e2;
+ border-radius: 2px
+}
+
+.layui-tab-more .layui-tab-bar .layui-icon {
+ top: -2px;
+ top: 3px \9;
+ -webkit-transform: rotate(180deg);
+ transform: rotate(180deg)
+}
+
+:root .layui-tab-more .layui-tab-bar .layui-icon {
+ top: -2px \0/ IE9
+}
+
+.layui-tab-content {
+ padding: 10px
+}
+
+.layui-tab-title li .layui-tab-close {
+ position: relative;
+ display: inline-block;
+ width: 18px;
+ height: 18px;
+ line-height: 20px;
+ margin-left: 8px;
+ top: 1px;
+ text-align: center;
+ font-size: 14px;
+ color: #c2c2c2;
+ transition: all .2s;
+ -webkit-transition: all .2s
+}
+
+.layui-tab-title li .layui-tab-close:hover {
+ border-radius: 2px;
+ background-color: #FF5722;
+ color: #fff
+}
+
+.layui-tab-brief > .layui-tab-title .layui-this {
+ color: #009688
+}
+
+.layui-tab-brief > .layui-tab-more li.layui-this:after, .layui-tab-brief > .layui-tab-title .layui-this:after {
+ border: none;
+ border-radius: 0;
+ border-bottom: 2px solid #5FB878
+}
+
+.layui-tab-brief[overflow] > .layui-tab-title .layui-this:after {
+ top: -1px
+}
+
+.layui-tab-card {
+ border-width: 1px;
+ border-style: solid;
+ border-radius: 2px;
+ box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .1)
+}
+
+.layui-tab-card > .layui-tab-title {
+ background-color: #f2f2f2
+}
+
+.layui-tab-card > .layui-tab-title li {
+ margin-right: -1px;
+ margin-left: -1px
+}
+
+.layui-tab-card > .layui-tab-title .layui-this {
+ background-color: #fff
+}
+
+.layui-tab-card > .layui-tab-title .layui-this:after {
+ border-top: none;
+ border-width: 1px;
+ border-bottom-color: #fff
+}
+
+.layui-tab-card > .layui-tab-title .layui-tab-bar {
+ height: 40px;
+ line-height: 40px;
+ border-radius: 0;
+ border-top: none;
+ border-right: none
+}
+
+.layui-tab-card > .layui-tab-more .layui-this {
+ background: 0 0;
+ color: #5FB878
+}
+
+.layui-tab-card > .layui-tab-more .layui-this:after {
+ border: none
+}
+
+.layui-timeline {
+ padding-left: 5px
+}
+
+.layui-timeline-item {
+ position: relative;
+ padding-bottom: 20px
+}
+
+.layui-timeline-axis {
+ position: absolute;
+ left: -5px;
+ top: 0;
+ z-index: 10;
+ width: 20px;
+ height: 20px;
+ line-height: 20px;
+ background-color: #fff;
+ color: #5FB878;
+ border-radius: 50%;
+ text-align: center;
+ cursor: pointer
+}
+
+.layui-timeline-axis:hover {
+ color: #FF5722
+}
+
+.layui-timeline-item:before {
+ content: '';
+ position: absolute;
+ left: 5px;
+ top: 0;
+ z-index: 0;
+ width: 1px;
+ height: 100%
+}
+
+.layui-timeline-item:last-child:before {
+ display: none
+}
+
+.layui-timeline-item:first-child:before {
+ display: block
+}
+
+.layui-timeline-content {
+ padding-left: 25px
+}
+
+.layui-timeline-title {
+ position: relative;
+ margin-bottom: 10px
+}
+
+.layui-badge, .layui-badge-dot, .layui-badge-rim {
+ position: relative;
+ display: inline-block;
+ padding: 0 6px;
+ font-size: 12px;
+ text-align: center;
+ background-color: #FF5722;
+ color: #fff;
+ border-radius: 2px
+}
+
+.layui-badge {
+ height: 18px;
+ line-height: 18px
+}
+
+.layui-badge-dot {
+ width: 8px;
+ height: 8px;
+ padding: 0;
+ border-radius: 50%
+}
+
+.layui-badge-rim {
+ height: 18px;
+ line-height: 18px;
+ border-width: 1px;
+ border-style: solid;
+ background-color: #fff;
+ color: #666
+}
+
+.layui-btn .layui-badge, .layui-btn .layui-badge-dot {
+ margin-left: 5px
+}
+
+.layui-nav .layui-badge, .layui-nav .layui-badge-dot {
+ position: absolute;
+ top: 50%;
+ margin: -8px 6px 0
+}
+
+.layui-tab-title .layui-badge, .layui-tab-title .layui-badge-dot {
+ left: 5px;
+ top: -2px
+}
+
+.layui-carousel {
+ position: relative;
+ left: 0;
+ top: 0;
+ background-color: #f8f8f8
+}
+
+.layui-carousel > [carousel-item] {
+ position: relative;
+ width: 100%;
+ height: 100%;
+ overflow: hidden
+}
+
+.layui-carousel > [carousel-item]:before {
+ position: absolute;
+ content: '\e63d';
+ left: 50%;
+ top: 50%;
+ width: 100px;
+ line-height: 20px;
+ margin: -10px 0 0 -50px;
+ text-align: center;
+ color: #c2c2c2;
+ font-family: layui-icon !important;
+ font-size: 30px;
+ font-style: normal;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale
+}
+
+.layui-carousel > [carousel-item] > * {
+ display: none;
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 100%;
+ height: 100%;
+ background-color: #f8f8f8;
+ transition-duration: .3s;
+ -webkit-transition-duration: .3s
+}
+
+.layui-carousel-updown > * {
+ -webkit-transition: .3s ease-in-out up;
+ transition: .3s ease-in-out up
+}
+
+.layui-carousel-arrow {
+ display: none \9;
+ opacity: 0;
+ position: absolute;
+ left: 10px;
+ top: 50%;
+ margin-top: -18px;
+ width: 36px;
+ height: 36px;
+ line-height: 36px;
+ text-align: center;
+ font-size: 20px;
+ border: 0;
+ border-radius: 50%;
+ background-color: rgba(0, 0, 0, .2);
+ color: #fff;
+ -webkit-transition-duration: .3s;
+ transition-duration: .3s;
+ cursor: pointer
+}
+
+.layui-carousel-arrow[lay-type=add] {
+ left: auto !important;
+ right: 10px
+}
+
+.layui-carousel:hover .layui-carousel-arrow[lay-type=add], .layui-carousel[lay-arrow=always] .layui-carousel-arrow[lay-type=add] {
+ right: 20px
+}
+
+.layui-carousel[lay-arrow=always] .layui-carousel-arrow {
+ opacity: 1;
+ left: 20px
+}
+
+.layui-carousel[lay-arrow=none] .layui-carousel-arrow {
+ display: none
+}
+
+.layui-carousel-arrow:hover, .layui-carousel-ind ul:hover {
+ background-color: rgba(0, 0, 0, .35)
+}
+
+.layui-carousel:hover .layui-carousel-arrow {
+ display: block \9;
+ opacity: 1;
+ left: 20px
+}
+
+.layui-carousel-ind {
+ position: relative;
+ top: -35px;
+ width: 100%;
+ line-height: 0 !important;
+ text-align: center;
+ font-size: 0
+}
+
+.layui-carousel[lay-indicator=outside] {
+ margin-bottom: 30px
+}
+
+.layui-carousel[lay-indicator=outside] .layui-carousel-ind {
+ top: 10px
+}
+
+.layui-carousel[lay-indicator=outside] .layui-carousel-ind ul {
+ background-color: rgba(0, 0, 0, .5)
+}
+
+.layui-carousel[lay-indicator=none] .layui-carousel-ind {
+ display: none
+}
+
+.layui-carousel-ind ul {
+ display: inline-block;
+ padding: 5px;
+ background-color: rgba(0, 0, 0, .2);
+ border-radius: 10px;
+ -webkit-transition-duration: .3s;
+ transition-duration: .3s
+}
+
+.layui-carousel-ind li {
+ display: inline-block;
+ width: 10px;
+ height: 10px;
+ margin: 0 3px;
+ font-size: 14px;
+ background-color: #e2e2e2;
+ background-color: rgba(255, 255, 255, .5);
+ border-radius: 50%;
+ cursor: pointer;
+ -webkit-transition-duration: .3s;
+ transition-duration: .3s
+}
+
+.layui-carousel-ind li:hover {
+ background-color: rgba(255, 255, 255, .7)
+}
+
+.layui-carousel-ind li.layui-this {
+ background-color: #fff
+}
+
+.layui-carousel > [carousel-item] > .layui-carousel-next, .layui-carousel > [carousel-item] > .layui-carousel-prev, .layui-carousel > [carousel-item] > .layui-this {
+ display: block
+}
+
+.layui-carousel > [carousel-item] > .layui-this {
+ left: 0
+}
+
+.layui-carousel > [carousel-item] > .layui-carousel-prev {
+ left: -100%
+}
+
+.layui-carousel > [carousel-item] > .layui-carousel-next {
+ left: 100%
+}
+
+.layui-carousel > [carousel-item] > .layui-carousel-next.layui-carousel-left, .layui-carousel > [carousel-item] > .layui-carousel-prev.layui-carousel-right {
+ left: 0
+}
+
+.layui-carousel > [carousel-item] > .layui-this.layui-carousel-left {
+ left: -100%
+}
+
+.layui-carousel > [carousel-item] > .layui-this.layui-carousel-right {
+ left: 100%
+}
+
+.layui-carousel[lay-anim=updown] .layui-carousel-arrow {
+ left: 50% !important;
+ top: 20px;
+ margin: 0 0 0 -18px
+}
+
+.layui-carousel[lay-anim=updown] > [carousel-item] > *, .layui-carousel[lay-anim=fade] > [carousel-item] > * {
+ left: 0 !important
+}
+
+.layui-carousel[lay-anim=updown] .layui-carousel-arrow[lay-type=add] {
+ top: auto !important;
+ bottom: 20px
+}
+
+.layui-carousel[lay-anim=updown] .layui-carousel-ind {
+ position: absolute;
+ top: 50%;
+ right: 20px;
+ width: auto;
+ height: auto
+}
+
+.layui-carousel[lay-anim=updown] .layui-carousel-ind ul {
+ padding: 3px 5px
+}
+
+.layui-carousel[lay-anim=updown] .layui-carousel-ind li {
+ display: block;
+ margin: 6px 0
+}
+
+.layui-carousel[lay-anim=updown] > [carousel-item] > .layui-this {
+ top: 0
+}
+
+.layui-carousel[lay-anim=updown] > [carousel-item] > .layui-carousel-prev {
+ top: -100%
+}
+
+.layui-carousel[lay-anim=updown] > [carousel-item] > .layui-carousel-next {
+ top: 100%
+}
+
+.layui-carousel[lay-anim=updown] > [carousel-item] > .layui-carousel-next.layui-carousel-left, .layui-carousel[lay-anim=updown] > [carousel-item] > .layui-carousel-prev.layui-carousel-right {
+ top: 0
+}
+
+.layui-carousel[lay-anim=updown] > [carousel-item] > .layui-this.layui-carousel-left {
+ top: -100%
+}
+
+.layui-carousel[lay-anim=updown] > [carousel-item] > .layui-this.layui-carousel-right {
+ top: 100%
+}
+
+.layui-carousel[lay-anim=fade] > [carousel-item] > .layui-carousel-next, .layui-carousel[lay-anim=fade] > [carousel-item] > .layui-carousel-prev {
+ opacity: 0
+}
+
+.layui-carousel[lay-anim=fade] > [carousel-item] > .layui-carousel-next.layui-carousel-left, .layui-carousel[lay-anim=fade] > [carousel-item] > .layui-carousel-prev.layui-carousel-right {
+ opacity: 1
+}
+
+.layui-carousel[lay-anim=fade] > [carousel-item] > .layui-this.layui-carousel-left, .layui-carousel[lay-anim=fade] > [carousel-item] > .layui-this.layui-carousel-right {
+ opacity: 0
+}
+
+.layui-fixbar {
+ position: fixed;
+ right: 15px;
+ bottom: 15px;
+ z-index: 999999
+}
+
+.layui-fixbar li {
+ width: 50px;
+ height: 50px;
+ line-height: 50px;
+ margin-bottom: 1px;
+ text-align: center;
+ cursor: pointer;
+ font-size: 30px;
+ background-color: #9F9F9F;
+ color: #fff;
+ border-radius: 2px;
+ opacity: .95
+}
+
+.layui-fixbar li:hover {
+ opacity: .85
+}
+
+.layui-fixbar li:active {
+ opacity: 1
+}
+
+.layui-fixbar .layui-fixbar-top {
+ display: none;
+ font-size: 40px
+}
+
+body .layui-util-face {
+ border: none;
+ background: 0 0
+}
+
+body .layui-util-face .layui-layer-content {
+ padding: 0;
+ background-color: #fff;
+ color: #666;
+ box-shadow: none
+}
+
+.layui-util-face .layui-layer-TipsG {
+ display: none
+}
+
+.layui-util-face ul {
+ position: relative;
+ width: 372px;
+ padding: 10px;
+ border: 1px solid #D9D9D9;
+ background-color: #fff;
+ box-shadow: 0 0 20px rgba(0, 0, 0, .2)
+}
+
+.layui-util-face ul li {
+ cursor: pointer;
+ float: left;
+ border: 1px solid #e8e8e8;
+ height: 22px;
+ width: 26px;
+ overflow: hidden;
+ margin: -1px 0 0 -1px;
+ padding: 4px 2px;
+ text-align: center
+}
+
+.layui-util-face ul li:hover {
+ position: relative;
+ z-index: 2;
+ border: 1px solid #eb7350;
+ background: #fff9ec
+}
+
+.layui-code {
+ position: relative;
+ margin: 10px 0;
+ padding: 15px;
+ line-height: 20px;
+ border: 1px solid #ddd;
+ border-left-width: 6px;
+ background-color: #F2F2F2;
+ color: #333;
+ font-family: Courier New;
+ font-size: 12px
+}
+
+.layui-rate, .layui-rate * {
+ display: inline-block;
+ vertical-align: middle
+}
+
+.layui-rate {
+ padding: 10px 5px 10px 0;
+ font-size: 0
+}
+
+.layui-rate li i.layui-icon {
+ font-size: 20px;
+ color: #FFB800;
+ margin-right: 5px;
+ transition: all .3s;
+ -webkit-transition: all .3s
+}
+
+.layui-rate li i:hover {
+ cursor: pointer;
+ transform: scale(1.12);
+ -webkit-transform: scale(1.12)
+}
+
+.layui-rate[readonly] li i:hover {
+ cursor: default;
+ transform: scale(1)
+}
+
+.layui-colorpicker {
+ width: 26px;
+ height: 26px;
+ border: 1px solid #e6e6e6;
+ padding: 5px;
+ border-radius: 2px;
+ line-height: 24px;
+ display: inline-block;
+ cursor: pointer;
+ transition: all .3s;
+ -webkit-transition: all .3s
+}
+
+.layui-colorpicker:hover {
+ border-color: #d2d2d2
+}
+
+.layui-colorpicker.layui-colorpicker-lg {
+ width: 34px;
+ height: 34px;
+ line-height: 32px
+}
+
+.layui-colorpicker.layui-colorpicker-sm {
+ width: 24px;
+ height: 24px;
+ line-height: 22px
+}
+
+.layui-colorpicker.layui-colorpicker-xs {
+ width: 22px;
+ height: 22px;
+ line-height: 20px
+}
+
+.layui-colorpicker-trigger-bgcolor {
+ display: block;
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);
+ border-radius: 2px
+}
+
+.layui-colorpicker-trigger-span {
+ display: block;
+ height: 100%;
+ box-sizing: border-box;
+ border: 1px solid rgba(0, 0, 0, .15);
+ border-radius: 2px;
+ text-align: center
+}
+
+.layui-colorpicker-trigger-i {
+ display: inline-block;
+ color: #FFF;
+ font-size: 12px
+}
+
+.layui-colorpicker-trigger-i.layui-icon-close {
+ color: #999
+}
+
+.layui-colorpicker-main {
+ position: absolute;
+ z-index: 66666666;
+ width: 280px;
+ padding: 7px;
+ background: #FFF;
+ border: 1px solid #d2d2d2;
+ border-radius: 2px;
+ box-shadow: 0 2px 4px rgba(0, 0, 0, .12)
+}
+
+.layui-colorpicker-main-wrapper {
+ height: 180px;
+ position: relative
+}
+
+.layui-colorpicker-basis {
+ width: 260px;
+ height: 100%;
+ position: relative
+}
+
+.layui-colorpicker-basis-white {
+ width: 100%;
+ height: 100%;
+ position: absolute;
+ top: 0;
+ left: 0;
+ background: linear-gradient(90deg, #FFF, hsla(0, 0%, 100%, 0))
+}
+
+.layui-colorpicker-basis-black {
+ width: 100%;
+ height: 100%;
+ position: absolute;
+ top: 0;
+ left: 0;
+ background: linear-gradient(0deg, #000, transparent)
+}
+
+.layui-colorpicker-basis-cursor {
+ width: 10px;
+ height: 10px;
+ border: 1px solid #FFF;
+ border-radius: 50%;
+ position: absolute;
+ top: -3px;
+ right: -3px;
+ cursor: pointer
+}
+
+.layui-colorpicker-side {
+ position: absolute;
+ top: 0;
+ right: 0;
+ width: 12px;
+ height: 100%;
+ background: linear-gradient(red, #FF0, #0F0, #0FF, #00F, #F0F, red)
+}
+
+.layui-colorpicker-side-slider {
+ width: 100%;
+ height: 5px;
+ box-shadow: 0 0 1px #888;
+ box-sizing: border-box;
+ background: #FFF;
+ border-radius: 1px;
+ border: 1px solid #f0f0f0;
+ cursor: pointer;
+ position: absolute;
+ left: 0
+}
+
+.layui-colorpicker-main-alpha {
+ display: none;
+ height: 12px;
+ margin-top: 7px;
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)
+}
+
+.layui-colorpicker-alpha-bgcolor {
+ height: 100%;
+ position: relative
+}
+
+.layui-colorpicker-alpha-slider {
+ width: 5px;
+ height: 100%;
+ box-shadow: 0 0 1px #888;
+ box-sizing: border-box;
+ background: #FFF;
+ border-radius: 1px;
+ border: 1px solid #f0f0f0;
+ cursor: pointer;
+ position: absolute;
+ top: 0
+}
+
+.layui-colorpicker-main-pre {
+ padding-top: 7px;
+ font-size: 0
+}
+
+.layui-colorpicker-pre {
+ width: 20px;
+ height: 20px;
+ border-radius: 2px;
+ display: inline-block;
+ margin-left: 6px;
+ margin-bottom: 7px;
+ cursor: pointer
+}
+
+.layui-colorpicker-pre:nth-child(11n+1) {
+ margin-left: 0
+}
+
+.layui-colorpicker-pre-isalpha {
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)
+}
+
+.layui-colorpicker-pre.layui-this {
+ box-shadow: 0 0 3px 2px rgba(0, 0, 0, .15)
+}
+
+.layui-colorpicker-pre > div {
+ height: 100%;
+ border-radius: 2px
+}
+
+.layui-colorpicker-main-input {
+ text-align: right;
+ padding-top: 7px
+}
+
+.layui-colorpicker-main-input .layui-btn-container .layui-btn {
+ margin: 0 0 0 10px
+}
+
+.layui-colorpicker-main-input div.layui-inline {
+ float: left;
+ margin-right: 10px;
+ font-size: 14px
+}
+
+.layui-colorpicker-main-input input.layui-input {
+ width: 150px;
+ height: 30px;
+ color: #666
+}
+
+.layui-slider {
+ height: 4px;
+ background: #e2e2e2;
+ border-radius: 3px;
+ position: relative;
+ cursor: pointer
+}
+
+.layui-slider-bar {
+ border-radius: 3px;
+ position: absolute;
+ height: 100%
+}
+
+.layui-slider-step {
+ position: absolute;
+ top: 0;
+ width: 4px;
+ height: 4px;
+ border-radius: 50%;
+ background: #FFF;
+ -webkit-transform: translateX(-50%);
+ transform: translateX(-50%)
+}
+
+.layui-slider-wrap {
+ width: 36px;
+ height: 36px;
+ position: absolute;
+ top: -16px;
+ -webkit-transform: translateX(-50%);
+ transform: translateX(-50%);
+ z-index: 10;
+ text-align: center
+}
+
+.layui-slider-wrap-btn {
+ width: 12px;
+ height: 12px;
+ border-radius: 50%;
+ background: #FFF;
+ display: inline-block;
+ vertical-align: middle;
+ cursor: pointer;
+ transition: .3s
+}
+
+.layui-slider-wrap:after {
+ content: "";
+ height: 100%;
+ display: inline-block;
+ vertical-align: middle
+}
+
+.layui-slider-wrap-btn.layui-slider-hover, .layui-slider-wrap-btn:hover {
+ transform: scale(1.2)
+}
+
+.layui-slider-wrap-btn.layui-disabled:hover {
+ transform: scale(1) !important
+}
+
+.layui-slider-tips {
+ position: absolute;
+ top: -42px;
+ z-index: 66666666;
+ white-space: nowrap;
+ display: none;
+ -webkit-transform: translateX(-50%);
+ transform: translateX(-50%);
+ color: #FFF;
+ background: #000;
+ border-radius: 3px;
+ height: 25px;
+ line-height: 25px;
+ padding: 0 10px
+}
+
+.layui-slider-tips:after {
+ content: '';
+ position: absolute;
+ bottom: -12px;
+ left: 50%;
+ margin-left: -6px;
+ width: 0;
+ height: 0;
+ border-width: 6px;
+ border-style: solid;
+ border-color: #000 transparent transparent
+}
+
+.layui-slider-input {
+ width: 70px;
+ height: 32px;
+ border: 1px solid #e6e6e6;
+ border-radius: 3px;
+ font-size: 16px;
+ line-height: 32px;
+ position: absolute;
+ right: 0;
+ top: -15px
+}
+
+.layui-slider-input-btn {
+ display: none;
+ position: absolute;
+ top: 0;
+ right: 0;
+ width: 20px;
+ height: 100%;
+ border-left: 1px solid #d2d2d2
+}
+
+.layui-slider-input-btn i {
+ cursor: pointer;
+ position: absolute;
+ right: 0;
+ bottom: 0;
+ width: 20px;
+ height: 50%;
+ font-size: 12px;
+ line-height: 16px;
+ text-align: center;
+ color: #999
+}
+
+.layui-slider-input-btn i:first-child {
+ top: 0;
+ border-bottom: 1px solid #d2d2d2
+}
+
+.layui-slider-input-txt {
+ height: 100%;
+ font-size: 14px
+}
+
+.layui-slider-input-txt input {
+ height: 100%;
+ border: none
+}
+
+.layui-slider-input-btn i:hover {
+ color: #009688
+}
+
+.layui-slider-vertical {
+ width: 4px;
+ margin-left: 34px
+}
+
+.layui-slider-vertical .layui-slider-bar {
+ width: 4px
+}
+
+.layui-slider-vertical .layui-slider-step {
+ top: auto;
+ left: 0;
+ -webkit-transform: translateY(50%);
+ transform: translateY(50%)
+}
+
+.layui-slider-vertical .layui-slider-wrap {
+ top: auto;
+ left: -16px;
+ -webkit-transform: translateY(50%);
+ transform: translateY(50%)
+}
+
+.layui-slider-vertical .layui-slider-tips {
+ top: auto;
+ left: 2px
+}
+
+@media \0screen {
+ .layui-slider-wrap-btn {
+ margin-left: -20px
+ }
+
+ .layui-slider-vertical .layui-slider-wrap-btn {
+ margin-left: 0;
+ margin-bottom: -20px
+ }
+
+ .layui-slider-vertical .layui-slider-tips {
+ margin-left: -8px
+ }
+
+ .layui-slider > span {
+ margin-left: 8px
+ }
+}
+
+.layui-anim {
+ -webkit-animation-duration: .3s;
+ animation-duration: .3s;
+ -webkit-animation-fill-mode: both;
+ animation-fill-mode: both
+}
+
+.layui-anim.layui-icon {
+ display: inline-block
+}
+
+.layui-anim-loop {
+ -webkit-animation-iteration-count: infinite;
+ animation-iteration-count: infinite
+}
+
+.layui-trans, .layui-trans a {
+ transition: all .3s;
+ -webkit-transition: all .3s
+}
+
+@-webkit-keyframes layui-rotate {
+ from {
+ -webkit-transform: rotate(0)
+ }
+ to {
+ -webkit-transform: rotate(360deg)
+ }
+}
+
+@keyframes layui-rotate {
+ from {
+ transform: rotate(0)
+ }
+ to {
+ transform: rotate(360deg)
+ }
+}
+
+.layui-anim-rotate {
+ -webkit-animation-name: layui-rotate;
+ animation-name: layui-rotate;
+ -webkit-animation-duration: 1s;
+ animation-duration: 1s;
+ -webkit-animation-timing-function: linear;
+ animation-timing-function: linear
+}
+
+@-webkit-keyframes layui-up {
+ from {
+ -webkit-transform: translate3d(0, 100%, 0);
+ opacity: .3
+ }
+ to {
+ -webkit-transform: translate3d(0, 0, 0);
+ opacity: 1
+ }
+}
+
+@keyframes layui-up {
+ from {
+ transform: translate3d(0, 100%, 0);
+ opacity: .3
+ }
+ to {
+ transform: translate3d(0, 0, 0);
+ opacity: 1
+ }
+}
+
+.layui-anim-up {
+ -webkit-animation-name: layui-up;
+ animation-name: layui-up
+}
+
+@-webkit-keyframes layui-upbit {
+ from {
+ -webkit-transform: translate3d(0, 30px, 0);
+ opacity: .3
+ }
+ to {
+ -webkit-transform: translate3d(0, 0, 0);
+ opacity: 1
+ }
+}
+
+@keyframes layui-upbit {
+ from {
+ transform: translate3d(0, 30px, 0);
+ opacity: .3
+ }
+ to {
+ transform: translate3d(0, 0, 0);
+ opacity: 1
+ }
+}
+
+.layui-anim-upbit {
+ -webkit-animation-name: layui-upbit;
+ animation-name: layui-upbit
+}
+
+@-webkit-keyframes layui-scale {
+ 0% {
+ opacity: .3;
+ -webkit-transform: scale(.5)
+ }
+ 100% {
+ opacity: 1;
+ -webkit-transform: scale(1)
+ }
+}
+
+@keyframes layui-scale {
+ 0% {
+ opacity: .3;
+ -ms-transform: scale(.5);
+ transform: scale(.5)
+ }
+ 100% {
+ opacity: 1;
+ -ms-transform: scale(1);
+ transform: scale(1)
+ }
+}
+
+.layui-anim-scale {
+ -webkit-animation-name: layui-scale;
+ animation-name: layui-scale
+}
+
+@-webkit-keyframes layui-scale-spring {
+ 0% {
+ opacity: .5;
+ -webkit-transform: scale(.5)
+ }
+ 80% {
+ opacity: .8;
+ -webkit-transform: scale(1.1)
+ }
+ 100% {
+ opacity: 1;
+ -webkit-transform: scale(1)
+ }
+}
+
+@keyframes layui-scale-spring {
+ 0% {
+ opacity: .5;
+ transform: scale(.5)
+ }
+ 80% {
+ opacity: .8;
+ transform: scale(1.1)
+ }
+ 100% {
+ opacity: 1;
+ transform: scale(1)
+ }
+}
+
+.layui-anim-scaleSpring {
+ -webkit-animation-name: layui-scale-spring;
+ animation-name: layui-scale-spring
+}
+
+@-webkit-keyframes layui-fadein {
+ 0% {
+ opacity: 0
+ }
+ 100% {
+ opacity: 1
+ }
+}
+
+@keyframes layui-fadein {
+ 0% {
+ opacity: 0
+ }
+ 100% {
+ opacity: 1
+ }
+}
+
+.layui-anim-fadein {
+ -webkit-animation-name: layui-fadein;
+ animation-name: layui-fadein
+}
+
+@-webkit-keyframes layui-fadeout {
+ 0% {
+ opacity: 1
+ }
+ 100% {
+ opacity: 0
+ }
+}
+
+@keyframes layui-fadeout {
+ 0% {
+ opacity: 1
+ }
+ 100% {
+ opacity: 0
+ }
+}
+
+.layui-anim-fadeout {
+ -webkit-animation-name: layui-fadeout;
+ animation-name: layui-fadeout
+}
\ No newline at end of file
diff --git a/templates/orange/static/mobile/layui/css/layui.mobile.css b/templates/orange/static/mobile/layui/css/layui.mobile.css
new file mode 100644
index 0000000..6f7f0a1
--- /dev/null
+++ b/templates/orange/static/mobile/layui/css/layui.mobile.css
@@ -0,0 +1,2 @@
+/** layui-v2.4.5 MIT License By https://www.layui.com */
+ blockquote,body,button,dd,div,dl,dt,form,h1,h2,h3,h4,h5,h6,input,legend,li,ol,p,td,textarea,th,ul{margin:0;padding:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}html{font:12px 'Helvetica Neue','PingFang SC',STHeitiSC-Light,Helvetica,Arial,sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}a,button,input{-webkit-tap-highlight-color:rgba(255,0,0,0)}a{text-decoration:none;background:0 0}a:active,a:hover{outline:0}table{border-collapse:collapse;border-spacing:0}li{list-style:none}b,strong{font-weight:700}h1,h2,h3,h4,h5,h6{font-weight:500}address,cite,dfn,em,var{font-style:normal}dfn{font-style:italic}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}img{border:0;vertical-align:bottom}.layui-inline,input,label{vertical-align:middle}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0;outline:0}button,select{text-transform:none}select{-webkit-appearance:none;border:none}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}@font-face{font-family:layui-icon;src:url(../font/iconfont.eot?v=1.0.7);src:url(../font/iconfont.eot?v=1.0.7#iefix) format('embedded-opentype'),url(../font/iconfont.woff?v=1.0.7) format('woff'),url(../font/iconfont.ttf?v=1.0.7) format('truetype'),url(../font/iconfont.svg?v=1.0.7#iconfont) format('svg')}.layui-icon{font-family:layui-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.layui-box,.layui-box *{-webkit-box-sizing:content-box!important;-moz-box-sizing:content-box!important;box-sizing:content-box!important}.layui-border-box,.layui-border-box *{-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important;box-sizing:border-box!important}.layui-inline{position:relative;display:inline-block;*display:inline;*zoom:1}.layui-edge,.layui-upload-iframe{position:absolute;width:0;height:0}.layui-edge{border-style:dashed;border-color:transparent;overflow:hidden}.layui-elip{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-unselect{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.layui-disabled,.layui-disabled:active{background-color:#d2d2d2!important;color:#fff!important;cursor:not-allowed!important}.layui-circle{border-radius:100%}.layui-show{display:block!important}.layui-hide{display:none!important}.layui-upload-iframe{border:0;visibility:hidden}.layui-upload-enter{border:1px solid #009E94;background-color:#009E94;color:#fff;-webkit-transform:scale(1.1);transform:scale(1.1)}@-webkit-keyframes layui-m-anim-scale{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes layui-m-anim-scale{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.layui-m-anim-scale{animation-name:layui-m-anim-scale;-webkit-animation-name:layui-m-anim-scale}@-webkit-keyframes layui-m-anim-up{0%{opacity:0;-webkit-transform:translateY(800px);transform:translateY(800px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes layui-m-anim-up{0%{opacity:0;-webkit-transform:translateY(800px);transform:translateY(800px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}.layui-m-anim-up{-webkit-animation-name:layui-m-anim-up;animation-name:layui-m-anim-up}@-webkit-keyframes layui-m-anim-left{0%{-webkit-transform:translateX(100%);transform:translateX(100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes layui-m-anim-left{0%{-webkit-transform:translateX(100%);transform:translateX(100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}.layui-m-anim-left{-webkit-animation-name:layui-m-anim-left;animation-name:layui-m-anim-left}@-webkit-keyframes layui-m-anim-right{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes layui-m-anim-right{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}.layui-m-anim-right{-webkit-animation-name:layui-m-anim-right;animation-name:layui-m-anim-right}@-webkit-keyframes layui-m-anim-lout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}@keyframes layui-m-anim-lout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}.layui-m-anim-lout{-webkit-animation-name:layui-m-anim-lout;animation-name:layui-m-anim-lout}@-webkit-keyframes layui-m-anim-rout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(100%);transform:translateX(100%)}}@keyframes layui-m-anim-rout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(100%);transform:translateX(100%)}}.layui-m-anim-rout{-webkit-animation-name:layui-m-anim-rout;animation-name:layui-m-anim-rout}.layui-m-layer{position:relative;z-index:19891014}.layui-m-layer *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.layui-m-layermain,.layui-m-layershade{position:fixed;left:0;top:0;width:100%;height:100%}.layui-m-layershade{background-color:rgba(0,0,0,.7);pointer-events:auto}.layui-m-layermain{display:table;font-family:Helvetica,arial,sans-serif;pointer-events:none}.layui-m-layermain .layui-m-layersection{display:table-cell;vertical-align:middle;text-align:center}.layui-m-layerchild{position:relative;display:inline-block;text-align:left;background-color:#fff;font-size:14px;border-radius:5px;box-shadow:0 0 8px rgba(0,0,0,.1);pointer-events:auto;-webkit-overflow-scrolling:touch;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.2s;animation-duration:.2s}.layui-m-layer0 .layui-m-layerchild{width:90%;max-width:640px}.layui-m-layer1 .layui-m-layerchild{border:none;border-radius:0}.layui-m-layer2 .layui-m-layerchild{width:auto;max-width:260px;min-width:40px;border:none;background:0 0;box-shadow:none;color:#fff}.layui-m-layerchild h3{padding:0 10px;height:60px;line-height:60px;font-size:16px;font-weight:400;border-radius:5px 5px 0 0;text-align:center}.layui-m-layerbtn span,.layui-m-layerchild h3{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-m-layercont{padding:50px 30px;line-height:22px;text-align:center}.layui-m-layer1 .layui-m-layercont{padding:0;text-align:left}.layui-m-layer2 .layui-m-layercont{text-align:center;padding:0;line-height:0}.layui-m-layer2 .layui-m-layercont i{width:25px;height:25px;margin-left:8px;display:inline-block;background-color:#fff;border-radius:100%;-webkit-animation:layui-m-anim-loading 1.4s infinite ease-in-out;animation:layui-m-anim-loading 1.4s infinite ease-in-out;-webkit-animation-fill-mode:both;animation-fill-mode:both}.layui-m-layerbtn,.layui-m-layerbtn span{position:relative;text-align:center;border-radius:0 0 5px 5px}.layui-m-layer2 .layui-m-layercont p{margin-top:20px}@-webkit-keyframes layui-m-anim-loading{0%,100%,80%{transform:scale(0);-webkit-transform:scale(0)}40%{transform:scale(1);-webkit-transform:scale(1)}}@keyframes layui-m-anim-loading{0%,100%,80%{transform:scale(0);-webkit-transform:scale(0)}40%{transform:scale(1);-webkit-transform:scale(1)}}.layui-m-layer2 .layui-m-layercont i:first-child{margin-left:0;-webkit-animation-delay:-.32s;animation-delay:-.32s}.layui-m-layer2 .layui-m-layercont i.layui-m-layerload{-webkit-animation-delay:-.16s;animation-delay:-.16s}.layui-m-layer2 .layui-m-layercont>div{line-height:22px;padding-top:7px;margin-bottom:20px;font-size:14px}.layui-m-layerbtn{display:box;display:-moz-box;display:-webkit-box;width:100%;height:50px;line-height:50px;font-size:0;border-top:1px solid #D0D0D0;background-color:#F2F2F2}.layui-m-layerbtn span{display:block;-moz-box-flex:1;box-flex:1;-webkit-box-flex:1;font-size:14px;cursor:pointer}.layui-m-layerbtn span[yes]{color:#40AFFE}.layui-m-layerbtn span[no]{border-right:1px solid #D0D0D0;border-radius:0 0 0 5px}.layui-m-layerbtn span:active{background-color:#F6F6F6}.layui-m-layerend{position:absolute;right:7px;top:10px;width:30px;height:30px;border:0;font-weight:400;background:0 0;cursor:pointer;-webkit-appearance:none;font-size:30px}.layui-m-layerend::after,.layui-m-layerend::before{position:absolute;left:5px;top:15px;content:'';width:18px;height:1px;background-color:#999;transform:rotate(45deg);-webkit-transform:rotate(45deg);border-radius:3px}.layui-m-layerend::after{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}body .layui-m-layer .layui-m-layer-footer{position:fixed;width:95%;max-width:100%;margin:0 auto;left:0;right:0;bottom:10px;background:0 0}.layui-m-layer-footer .layui-m-layercont{padding:20px;border-radius:5px 5px 0 0;background-color:rgba(255,255,255,.8)}.layui-m-layer-footer .layui-m-layerbtn{display:block;height:auto;background:0 0;border-top:none}.layui-m-layer-footer .layui-m-layerbtn span{background-color:rgba(255,255,255,.8)}.layui-m-layer-footer .layui-m-layerbtn span[no]{color:#FD482C;border-top:1px solid #c2c2c2;border-radius:0 0 5px 5px}.layui-m-layer-footer .layui-m-layerbtn span[yes]{margin-top:10px;border-radius:5px}body .layui-m-layer .layui-m-layer-msg{width:auto;max-width:90%;margin:0 auto;bottom:-150px;background-color:rgba(0,0,0,.7);color:#fff}.layui-m-layer-msg .layui-m-layercont{padding:10px 20px}
\ No newline at end of file
diff --git a/templates/orange/static/mobile/layui/css/modules/code.css b/templates/orange/static/mobile/layui/css/modules/code.css
new file mode 100644
index 0000000..d0d3822
--- /dev/null
+++ b/templates/orange/static/mobile/layui/css/modules/code.css
@@ -0,0 +1,2 @@
+/** layui-v2.4.5 MIT License By https://www.layui.com */
+ html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none}
\ No newline at end of file
diff --git a/templates/orange/static/mobile/layui/css/modules/laydate/default/laydate.css b/templates/orange/static/mobile/layui/css/modules/laydate/default/laydate.css
new file mode 100644
index 0000000..f7e690e
--- /dev/null
+++ b/templates/orange/static/mobile/layui/css/modules/laydate/default/laydate.css
@@ -0,0 +1,2 @@
+/** layui-v2.4.5 MIT License By https://www.layui.com */
+ .laydate-set-ym,.layui-laydate,.layui-laydate *,.layui-laydate-list{box-sizing:border-box}html #layuicss-laydate{display:none;position:absolute;width:1989px}.layui-laydate *{margin:0;padding:0}.layui-laydate{position:absolute;z-index:66666666;margin:5px 0;border-radius:2px;font-size:14px;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:laydate-upbit;animation-name:laydate-upbit}.layui-laydate-main{width:272px}.layui-laydate-content td,.layui-laydate-header *,.layui-laydate-list li{transition-duration:.3s;-webkit-transition-duration:.3s}@-webkit-keyframes laydate-upbit{from{-webkit-transform:translate3d(0,20px,0);opacity:.3}to{-webkit-transform:translate3d(0,0,0);opacity:1}}@keyframes laydate-upbit{from{transform:translate3d(0,20px,0);opacity:.3}to{transform:translate3d(0,0,0);opacity:1}}.layui-laydate-static{position:relative;z-index:0;display:inline-block;margin:0;-webkit-animation:none;animation:none}.laydate-ym-show .laydate-next-m,.laydate-ym-show .laydate-prev-m{display:none!important}.laydate-ym-show .laydate-next-y,.laydate-ym-show .laydate-prev-y{display:inline-block!important}.laydate-time-show .laydate-set-ym span[lay-type=month],.laydate-time-show .laydate-set-ym span[lay-type=year],.laydate-time-show .layui-laydate-header .layui-icon,.laydate-ym-show .laydate-set-ym span[lay-type=month]{display:none!important}.layui-laydate-header{position:relative;line-height:30px;padding:10px 70px 5px}.laydate-set-ym span,.layui-laydate-header i{padding:0 5px;cursor:pointer}.layui-laydate-header *{display:inline-block;vertical-align:bottom}.layui-laydate-header i{position:absolute;top:10px;color:#999;font-size:18px}.layui-laydate-header i.laydate-prev-y{left:15px}.layui-laydate-header i.laydate-prev-m{left:45px}.layui-laydate-header i.laydate-next-y{right:15px}.layui-laydate-header i.laydate-next-m{right:45px}.laydate-set-ym{width:100%;text-align:center;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.laydate-time-text{cursor:default!important}.layui-laydate-content{position:relative;padding:10px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.layui-laydate-content table{border-collapse:collapse;border-spacing:0}.layui-laydate-content td,.layui-laydate-content th{width:36px;height:30px;padding:5px;text-align:center}.layui-laydate-content td{position:relative;cursor:pointer}.laydate-day-mark{position:absolute;left:0;top:0;width:100%;height:100%;line-height:30px;font-size:12px;overflow:hidden}.laydate-day-mark::after{position:absolute;content:'';right:2px;top:2px;width:5px;height:5px;border-radius:50%}.layui-laydate-footer{position:relative;height:46px;line-height:26px;padding:10px 20px}.layui-laydate-footer span{margin-right:15px;display:inline-block;cursor:pointer;font-size:12px}.layui-laydate-footer span:hover{color:#5FB878}.laydate-footer-btns{position:absolute;right:10px;top:10px}.laydate-footer-btns span{height:26px;line-height:26px;margin:0 0 0 -1px;padding:0 10px;border:1px solid #C9C9C9;background-color:#fff;white-space:nowrap;vertical-align:top;border-radius:2px}.layui-laydate-list>li,.layui-laydate-range .layui-laydate-main{display:inline-block;vertical-align:middle}.layui-laydate-list{position:absolute;left:0;top:0;width:100%;height:100%;padding:10px;background-color:#fff}.layui-laydate-list>li{position:relative;width:33.3%;height:36px;line-height:36px;margin:3px 0;text-align:center;cursor:pointer}.laydate-month-list>li{width:25%;margin:17px 0}.laydate-time-list>li{height:100%;margin:0;line-height:normal;cursor:default}.laydate-time-list p{position:relative;top:-4px;line-height:29px}.laydate-time-list ol{height:181px;overflow:hidden}.laydate-time-list>li:hover ol{overflow-y:auto}.laydate-time-list ol li{width:130%;padding-left:33px;line-height:30px;text-align:left;cursor:pointer}.layui-laydate-hint{position:absolute;top:115px;left:50%;width:250px;margin-left:-125px;line-height:20px;padding:15px;text-align:center;font-size:12px}.layui-laydate-range{width:546px}.layui-laydate-range .laydate-main-list-0 .laydate-next-m,.layui-laydate-range .laydate-main-list-0 .laydate-next-y,.layui-laydate-range .laydate-main-list-1 .laydate-prev-m,.layui-laydate-range .laydate-main-list-1 .laydate-prev-y{display:none}.layui-laydate-range .laydate-main-list-1 .layui-laydate-content{border-left:1px solid #e2e2e2}.layui-laydate,.layui-laydate-hint{border:1px solid #d2d2d2;box-shadow:0 2px 4px rgba(0,0,0,.12);background-color:#fff;color:#666}.layui-laydate-header{border-bottom:1px solid #e2e2e2}.layui-laydate-header i:hover,.layui-laydate-header span:hover{color:#5FB878}.layui-laydate-content{border-top:none 0;border-bottom:none 0}.layui-laydate-content th{font-weight:400;color:#333}.layui-laydate-content td{color:#666}.layui-laydate-content td.laydate-selected{background-color:#00F7DE}.laydate-selected:hover{background-color:#00F7DE!important}.layui-laydate-content td:hover,.layui-laydate-list li:hover{background-color:#eaeaea;color:#333}.laydate-time-list li ol{margin:0;padding:0;border:1px solid #e2e2e2;border-left-width:0}.laydate-time-list li:first-child ol{border-left-width:1px}.laydate-time-list>li:hover{background:0 0}.layui-laydate-content .laydate-day-next,.layui-laydate-content .laydate-day-prev{color:#d2d2d2}.laydate-selected.laydate-day-next,.laydate-selected.laydate-day-prev{background-color:#f8f8f8!important}.layui-laydate-footer{border-top:1px solid #e2e2e2}.layui-laydate-hint{color:#FF5722}.laydate-day-mark::after{background-color:#5FB878}.layui-laydate-content td.layui-this .laydate-day-mark::after{display:none}.layui-laydate-footer span[lay-type=date]{color:#5FB878}.layui-laydate .layui-this{background-color:#009688!important;color:#fff!important}.layui-laydate .laydate-disabled,.layui-laydate .laydate-disabled:hover{background:0 0!important;color:#d2d2d2!important;cursor:not-allowed!important;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.laydate-theme-molv{border:none}.laydate-theme-molv.layui-laydate-range{width:548px}.laydate-theme-molv .layui-laydate-main{width:274px}.laydate-theme-molv .layui-laydate-header{border:none;background-color:#009688}.laydate-theme-molv .layui-laydate-header i,.laydate-theme-molv .layui-laydate-header span{color:#f6f6f6}.laydate-theme-molv .layui-laydate-header i:hover,.laydate-theme-molv .layui-laydate-header span:hover{color:#fff}.laydate-theme-molv .layui-laydate-content{border:1px solid #e2e2e2;border-top:none;border-bottom:none}.laydate-theme-molv .laydate-main-list-1 .layui-laydate-content{border-left:none}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li,.laydate-theme-grid .layui-laydate-content td,.laydate-theme-grid .layui-laydate-content thead,.laydate-theme-molv .layui-laydate-footer{border:1px solid #e2e2e2}.laydate-theme-grid .laydate-selected,.laydate-theme-grid .laydate-selected:hover{background-color:#f2f2f2!important;color:#009688!important}.laydate-theme-grid .laydate-selected.laydate-day-next,.laydate-theme-grid .laydate-selected.laydate-day-prev{color:#d2d2d2!important}.laydate-theme-grid .laydate-month-list,.laydate-theme-grid .laydate-year-list{margin:1px 0 0 1px}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li{margin:0 -1px -1px 0}.laydate-theme-grid .laydate-year-list>li{height:43px;line-height:43px}.laydate-theme-grid .laydate-month-list>li{height:71px;line-height:71px}
\ No newline at end of file
diff --git a/templates/orange/static/mobile/layui/css/modules/layer/default/icon-ext.png b/templates/orange/static/mobile/layui/css/modules/layer/default/icon-ext.png
new file mode 100644
index 0000000..bbbb669
Binary files /dev/null and b/templates/orange/static/mobile/layui/css/modules/layer/default/icon-ext.png differ
diff --git a/templates/orange/static/mobile/layui/css/modules/layer/default/icon.png b/templates/orange/static/mobile/layui/css/modules/layer/default/icon.png
new file mode 100644
index 0000000..3e17da8
Binary files /dev/null and b/templates/orange/static/mobile/layui/css/modules/layer/default/icon.png differ
diff --git a/templates/orange/static/mobile/layui/css/modules/layer/default/layer.css b/templates/orange/static/mobile/layui/css/modules/layer/default/layer.css
new file mode 100644
index 0000000..6f1001d
--- /dev/null
+++ b/templates/orange/static/mobile/layui/css/modules/layer/default/layer.css
@@ -0,0 +1,2 @@
+/** layui-v2.4.5 MIT License By https://www.layui.com */
+ .layui-layer-imgbar,.layui-layer-imgtit a,.layui-layer-tab .layui-layer-title span,.layui-layer-title{text-overflow:ellipsis;white-space:nowrap}html #layuicss-layer{display:none;position:absolute;width:1989px}.layui-layer,.layui-layer-shade{position:fixed;_position:absolute;pointer-events:auto}.layui-layer-shade{top:0;left:0;width:100%;height:100%;_height:expression(document.body.offsetHeight+"px")}.layui-layer{-webkit-overflow-scrolling:touch;top:150px;left:0;margin:0;padding:0;background-color:#fff;-webkit-background-clip:content;border-radius:2px;box-shadow:1px 1px 50px rgba(0,0,0,.3)}.layui-layer-close{position:absolute}.layui-layer-content{position:relative}.layui-layer-border{border:1px solid #B2B2B2;border:1px solid rgba(0,0,0,.1);box-shadow:1px 1px 5px rgba(0,0,0,.2)}.layui-layer-load{background:url(loading-1.gif) center center no-repeat #eee}.layui-layer-ico{background:url(icon.png) no-repeat}.layui-layer-btn a,.layui-layer-dialog .layui-layer-ico,.layui-layer-setwin a{display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-move{display:none;position:fixed;*position:absolute;left:0;top:0;width:100%;height:100%;cursor:move;opacity:0;filter:alpha(opacity=0);background-color:#fff;z-index:2147483647}.layui-layer-resize{position:absolute;width:15px;height:15px;right:0;bottom:0;cursor:se-resize}.layer-anim{-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.3s;animation-duration:.3s}@-webkit-keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-00{-webkit-animation-name:layer-bounceIn;animation-name:layer-bounceIn}@-webkit-keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);-ms-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);-ms-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-01{-webkit-animation-name:layer-zoomInDown;animation-name:layer-zoomInDown}@-webkit-keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);-ms-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}}.layer-anim-02{-webkit-animation-name:layer-fadeInUpBig;animation-name:layer-fadeInUpBig}@-webkit-keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);-ms-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);-ms-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-03{-webkit-animation-name:layer-zoomInLeft;animation-name:layer-zoomInLeft}@-webkit-keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}@keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);-ms-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);-ms-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}.layer-anim-04{-webkit-animation-name:layer-rollIn;animation-name:layer-rollIn}@keyframes layer-fadeIn{0%{opacity:0}100%{opacity:1}}.layer-anim-05{-webkit-animation-name:layer-fadeIn;animation-name:layer-fadeIn}@-webkit-keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);transform:translateX(10px)}}@keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);-ms-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);-ms-transform:translateX(10px);transform:translateX(10px)}}.layer-anim-06{-webkit-animation-name:layer-shake;animation-name:layer-shake}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}.layui-layer-title{padding:0 80px 0 20px;height:42px;line-height:42px;border-bottom:1px solid #eee;font-size:14px;color:#333;overflow:hidden;background-color:#F8F8F8;border-radius:2px 2px 0 0}.layui-layer-setwin{position:absolute;right:15px;*right:0;top:15px;font-size:0;line-height:initial}.layui-layer-setwin a{position:relative;width:16px;height:16px;margin-left:10px;font-size:12px;_overflow:hidden}.layui-layer-setwin .layui-layer-min cite{position:absolute;width:14px;height:2px;left:0;top:50%;margin-top:-1px;background-color:#2E2D3C;cursor:pointer;_overflow:hidden}.layui-layer-setwin .layui-layer-min:hover cite{background-color:#2D93CA}.layui-layer-setwin .layui-layer-max{background-position:-32px -40px}.layui-layer-setwin .layui-layer-max:hover{background-position:-16px -40px}.layui-layer-setwin .layui-layer-maxmin{background-position:-65px -40px}.layui-layer-setwin .layui-layer-maxmin:hover{background-position:-49px -40px}.layui-layer-setwin .layui-layer-close1{background-position:1px -40px;cursor:pointer}.layui-layer-setwin .layui-layer-close1:hover{opacity:.7}.layui-layer-setwin .layui-layer-close2{position:absolute;right:-28px;top:-28px;width:30px;height:30px;margin-left:0;background-position:-149px -31px;*right:-18px;_display:none}.layui-layer-setwin .layui-layer-close2:hover{background-position:-180px -31px}.layui-layer-btn{text-align:right;padding:0 15px 12px;pointer-events:auto;user-select:none;-webkit-user-select:none}.layui-layer-btn a{height:28px;line-height:28px;margin:5px 5px 0;padding:0 15px;border:1px solid #dedede;background-color:#fff;color:#333;border-radius:2px;font-weight:400;cursor:pointer;text-decoration:none}.layui-layer-btn a:hover{opacity:.9;text-decoration:none}.layui-layer-btn a:active{opacity:.8}.layui-layer-btn .layui-layer-btn0{border-color:#f80;background-color:#f80;color:#fff}.layui-layer-btn-l{text-align:left}.layui-layer-btn-c{text-align:center}.layui-layer-dialog{min-width:260px}.layui-layer-dialog .layui-layer-content{position:relative;padding:20px;line-height:24px;word-break:break-all;overflow:hidden;font-size:14px;overflow-x:hidden;overflow-y:auto}.layui-layer-dialog .layui-layer-content .layui-layer-ico{position:absolute;top:16px;left:15px;_left:-40px;width:30px;height:30px}.layui-layer-ico1{background-position:-30px 0}.layui-layer-ico2{background-position:-60px 0}.layui-layer-ico3{background-position:-90px 0}.layui-layer-ico4{background-position:-120px 0}.layui-layer-ico5{background-position:-150px 0}.layui-layer-ico6{background-position:-180px 0}.layui-layer-rim{border:6px solid #8D8D8D;border:6px solid rgba(0,0,0,.3);border-radius:5px;box-shadow:none}.layui-layer-msg{min-width:180px;border:1px solid #D3D4D3;box-shadow:none}.layui-layer-hui{min-width:100px;background-color:#000;filter:alpha(opacity=60);background-color:rgba(0,0,0,.6);color:#fff;border:none}.layui-layer-hui .layui-layer-content{padding:12px 25px;text-align:center}.layui-layer-dialog .layui-layer-padding{padding:20px 20px 20px 55px;text-align:left}.layui-layer-page .layui-layer-content{position:relative;overflow:auto}.layui-layer-iframe .layui-layer-btn,.layui-layer-page .layui-layer-btn{padding-top:10px}.layui-layer-nobg{background:0 0}.layui-layer-iframe iframe{display:block;width:100%}.layui-layer-loading{border-radius:100%;background:0 0;box-shadow:none;border:none}.layui-layer-loading .layui-layer-content{width:60px;height:24px;background:url(loading-0.gif) no-repeat}.layui-layer-loading .layui-layer-loading1{width:37px;height:37px;background:url(loading-1.gif) no-repeat}.layui-layer-ico16,.layui-layer-loading .layui-layer-loading2{width:32px;height:32px;background:url(loading-2.gif) no-repeat}.layui-layer-tips{background:0 0;box-shadow:none;border:none}.layui-layer-tips .layui-layer-content{position:relative;line-height:22px;min-width:12px;padding:8px 15px;font-size:12px;_float:left;border-radius:2px;box-shadow:1px 1px 3px rgba(0,0,0,.2);background-color:#000;color:#fff}.layui-layer-tips .layui-layer-close{right:-2px;top:-1px}.layui-layer-tips i.layui-layer-TipsG{position:absolute;width:0;height:0;border-width:8px;border-color:transparent;border-style:dashed;*overflow:hidden}.layui-layer-tips i.layui-layer-TipsB,.layui-layer-tips i.layui-layer-TipsT{left:5px;border-right-style:solid;border-right-color:#000}.layui-layer-tips i.layui-layer-TipsT{bottom:-8px}.layui-layer-tips i.layui-layer-TipsB{top:-8px}.layui-layer-tips i.layui-layer-TipsL,.layui-layer-tips i.layui-layer-TipsR{top:5px;border-bottom-style:solid;border-bottom-color:#000}.layui-layer-tips i.layui-layer-TipsR{left:-8px}.layui-layer-tips i.layui-layer-TipsL{right:-8px}.layui-layer-lan[type=dialog]{min-width:280px}.layui-layer-lan .layui-layer-title{background:#4476A7;color:#fff;border:none}.layui-layer-lan .layui-layer-btn{padding:5px 10px 10px;text-align:right;border-top:1px solid #E9E7E7}.layui-layer-lan .layui-layer-btn a{background:#fff;border-color:#E9E7E7;color:#333}.layui-layer-lan .layui-layer-btn .layui-layer-btn1{background:#C9C5C5}.layui-layer-molv .layui-layer-title{background:#009f95;color:#fff;border:none}.layui-layer-molv .layui-layer-btn a{background:#009f95;border-color:#009f95}.layui-layer-molv .layui-layer-btn .layui-layer-btn1{background:#92B8B1}.layui-layer-iconext{background:url(icon-ext.png) no-repeat}.layui-layer-prompt .layui-layer-input{display:block;width:230px;height:36px;margin:0 auto;line-height:30px;padding-left:10px;border:1px solid #e6e6e6;color:#333}.layui-layer-prompt textarea.layui-layer-input{width:300px;height:100px;line-height:20px;padding:6px 10px}.layui-layer-prompt .layui-layer-content{padding:20px}.layui-layer-prompt .layui-layer-btn{padding-top:0}.layui-layer-tab{box-shadow:1px 1px 50px rgba(0,0,0,.4)}.layui-layer-tab .layui-layer-title{padding-left:0;overflow:visible}.layui-layer-tab .layui-layer-title span{position:relative;float:left;min-width:80px;max-width:260px;padding:0 20px;text-align:center;overflow:hidden;cursor:pointer}.layui-layer-tab .layui-layer-title span.layui-this{height:43px;border-left:1px solid #eee;border-right:1px solid #eee;background-color:#fff;z-index:10}.layui-layer-tab .layui-layer-title span:first-child{border-left:none}.layui-layer-tabmain{line-height:24px;clear:both}.layui-layer-tabmain .layui-layer-tabli{display:none}.layui-layer-tabmain .layui-layer-tabli.layui-this{display:block}.layui-layer-photos{-webkit-animation-duration:.8s;animation-duration:.8s}.layui-layer-photos .layui-layer-content{overflow:hidden;text-align:center}.layui-layer-photos .layui-layer-phimg img{position:relative;width:100%;display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-imgbar,.layui-layer-imguide{display:none}.layui-layer-imgnext,.layui-layer-imgprev{position:absolute;top:50%;width:27px;_width:44px;height:44px;margin-top:-22px;outline:0;blr:expression(this.onFocus=this.blur())}.layui-layer-imgprev{left:10px;background-position:-5px -5px;_background-position:-70px -5px}.layui-layer-imgprev:hover{background-position:-33px -5px;_background-position:-120px -5px}.layui-layer-imgnext{right:10px;_right:8px;background-position:-5px -50px;_background-position:-70px -50px}.layui-layer-imgnext:hover{background-position:-33px -50px;_background-position:-120px -50px}.layui-layer-imgbar{position:absolute;left:0;bottom:0;width:100%;height:32px;line-height:32px;background-color:rgba(0,0,0,.8);background-color:#000\9;filter:Alpha(opacity=80);color:#fff;overflow:hidden;font-size:0}.layui-layer-imgtit *{display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:12px}.layui-layer-imgtit a{max-width:65%;overflow:hidden;color:#fff}.layui-layer-imgtit a:hover{color:#fff;text-decoration:underline}.layui-layer-imgtit em{padding-left:10px;font-style:normal}@-webkit-keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);-ms-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);-ms-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-close{-webkit-animation-name:layer-bounceOut;animation-name:layer-bounceOut;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.2s;animation-duration:.2s}@media screen and (max-width:1100px){.layui-layer-iframe{overflow-y:auto;-webkit-overflow-scrolling:touch}}
\ No newline at end of file
diff --git a/templates/orange/static/mobile/layui/css/modules/layer/default/loading-0.gif b/templates/orange/static/mobile/layui/css/modules/layer/default/loading-0.gif
new file mode 100644
index 0000000..6f3c953
Binary files /dev/null and b/templates/orange/static/mobile/layui/css/modules/layer/default/loading-0.gif differ
diff --git a/templates/orange/static/mobile/layui/css/modules/layer/default/loading-1.gif b/templates/orange/static/mobile/layui/css/modules/layer/default/loading-1.gif
new file mode 100644
index 0000000..db3a483
Binary files /dev/null and b/templates/orange/static/mobile/layui/css/modules/layer/default/loading-1.gif differ
diff --git a/templates/orange/static/mobile/layui/css/modules/layer/default/loading-2.gif b/templates/orange/static/mobile/layui/css/modules/layer/default/loading-2.gif
new file mode 100644
index 0000000..5bb90fd
Binary files /dev/null and b/templates/orange/static/mobile/layui/css/modules/layer/default/loading-2.gif differ
diff --git a/templates/orange/static/mobile/layui/css/modules/layim/html/chatlog.html b/templates/orange/static/mobile/layui/css/modules/layim/html/chatlog.html
new file mode 100644
index 0000000..9cbc571
--- /dev/null
+++ b/templates/orange/static/mobile/layui/css/modules/layim/html/chatlog.html
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
+聊天记录
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/templates/orange/static/mobile/layui/css/modules/layim/html/find.html b/templates/orange/static/mobile/layui/css/modules/layim/html/find.html
new file mode 100644
index 0000000..ff5cab1
--- /dev/null
+++ b/templates/orange/static/mobile/layui/css/modules/layim/html/find.html
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+发现
+
+
+
+
+
+
+
+
此为自定义的【查找】页面,因需求不一,所以官方暂不提供该模版结构与样式,实际使用时,可移至该文件到你的项目中,对页面自行把控。
+ 文件所在目录(相对于layui.js):/css/modules/layim/html/find.html
+
+
+
+
+
+
+
+
diff --git a/templates/orange/static/mobile/layui/css/modules/layim/html/getmsg.json b/templates/orange/static/mobile/layui/css/modules/layim/html/getmsg.json
new file mode 100644
index 0000000..3d9b9d4
--- /dev/null
+++ b/templates/orange/static/mobile/layui/css/modules/layim/html/getmsg.json
@@ -0,0 +1,87 @@
+{
+ "code": 0,
+ "pages": 1,
+ "data": [
+ {
+ "id": 76,
+ "content": "申请添加你为好友",
+ "uid": 168,
+ "from": 166488,
+ "from_group": 0,
+ "type": 1,
+ "remark": "有问题要问",
+ "href": null,
+ "read": 1,
+ "time": "刚刚",
+ "user": {
+ "id": 166488,
+ "avatar": "http://q.qlogo.cn/qqapp/101235792/B704597964F9BD0DB648292D1B09F7E8/100",
+ "username": "李彦宏",
+ "sign": null
+ }
+ },
+ {
+ "id": 75,
+ "content": "申请添加你为好友",
+ "uid": 168,
+ "from": 347592,
+ "from_group": 0,
+ "type": 1,
+ "remark": "你好啊!",
+ "href": null,
+ "read": 1,
+ "time": "刚刚",
+ "user": {
+ "id": 347592,
+ "avatar": "http://q.qlogo.cn/qqapp/101235792/B78751375E0531675B1272AD994BA875/100",
+ "username": "麻花疼",
+ "sign": null
+ }
+ },
+ {
+ "id": 62,
+ "content": "雷军 拒绝了你的好友申请",
+ "uid": 168,
+ "from": null,
+ "from_group": null,
+ "type": 1,
+ "remark": null,
+ "href": null,
+ "read": 1,
+ "time": "10天前",
+ "user": {
+ "id": null
+ }
+ },
+ {
+ "id": 60,
+ "content": "马小云 已经同意你的好友申请",
+ "uid": 168,
+ "from": null,
+ "from_group": null,
+ "type": 1,
+ "remark": null,
+ "href": null,
+ "read": 1,
+ "time": "10天前",
+ "user": {
+ "id": null
+ }
+ },
+ {
+ "id": 61,
+ "content": "贤心 已经同意你的好友申请",
+ "uid": 168,
+ "from": null,
+ "from_group": null,
+ "type": 1,
+ "remark": null,
+ "href": null,
+ "read": 1,
+ "time": "10天前",
+ "user": {
+ "id": null
+ }
+ }
+ ]
+}
\ No newline at end of file
diff --git a/templates/orange/static/mobile/layui/css/modules/layim/html/msgbox.html b/templates/orange/static/mobile/layui/css/modules/layim/html/msgbox.html
new file mode 100644
index 0000000..0adf002
--- /dev/null
+++ b/templates/orange/static/mobile/layui/css/modules/layim/html/msgbox.html
@@ -0,0 +1,208 @@
+
+
+
+
+
+
+
+消息盒子
+
+
+
+
+
+
+
+
+
+
注意:这些都是模拟数据,实际使用时,需将其中的模拟接口改为你的项目真实接口。
+ 该模版文件所在目录(相对于layui.js):/css/modules/layim/html/msgbox.html
+
+
+
+
+
+
+
+
+
+
+
diff --git a/templates/orange/static/mobile/layui/css/modules/layim/layim.css b/templates/orange/static/mobile/layui/css/modules/layim/layim.css
new file mode 100644
index 0000000..69ad58a
--- /dev/null
+++ b/templates/orange/static/mobile/layui/css/modules/layim/layim.css
@@ -0,0 +1,2 @@
+/** layui-v2.4.5 MIT License By https://www.layui.com */
+ html #layuicss-skinlayimcss{display:none;position:absolute;width:1989px}body .layui-layim,body .layui-layim-chat{border:1px solid #D9D9D9;border-color:rgba(0,0,0,.05);background-repeat:no-repeat;background-color:#F6F6F6;color:#333;font-family:\5FAE\8F6F\96C5\9ED1}body .layui-layim-chat{background-size:cover}body .layui-layim .layui-layer-title{height:110px;border-bottom:none;background:0 0}.layui-layim-main{position:relative;top:-98px;left:0}body .layui-layim .layui-layer-content,body .layui-layim-chat .layui-layer-content{overflow:visible}.layui-layim cite,.layui-layim em,.layui-layim-chat cite,.layui-layim-chat em{font-style:normal}.layui-layim-info{height:50px;font-size:0;padding:0 15px}.layui-layim-info *{font-size:14px}.layim-tab-content li h5 *,.layui-layim-info div,.layui-layim-skin li,.layui-layim-tab li,.layui-layim-tool li{display:inline-block;vertical-align:top;*zoom:1;*display:inline}.layim-tab-content li h5 span,.layui-layim-info .layui-layim-user,.layui-layim-list li p,.layui-layim-list li span,.layui-layim-remark{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layui-layim-info .layui-layim-user{max-width:150px;margin-right:5px;font-size:16px}.layui-layim-status{position:relative;top:2px;line-height:19px;cursor:pointer}.layim-status-online{color:#3FDD86}.layim-status-hide{color:#DD691D}.layim-menu-box{display:none;position:absolute;z-index:100;top:24px;left:-31px;padding:5px 0;width:85px;border:1px solid #E2E2E2;border-radius:2px;background-color:#fff;box-shadow:1px 1px 20px rgba(0,0,0,.1)}.layim-menu-box li{position:relative;line-height:22px;padding-left:30px;font-size:12px}.layim-menu-box li cite{padding-right:5px;font-size:14px}.layim-menu-box li i{display:none;position:absolute;left:8px;top:0;font-weight:700;color:#5FB878}.layim-menu-box .layim-this i{display:block}.layim-menu-box li:hover{background-color:#eee}.layui-layim-remark{position:relative;left:-6px;display:block;width:100%;border:1px solid transparent;margin-top:8px;padding:0 5px;height:26px;line-height:26px;background:0 0;border-radius:2px}.layui-layim-remark:focus,.layui-layim-remark:hover{border:1px solid #d2d2d2;border-color:rgba(0,0,0,.15)}.layui-layim-remark:focus{background-color:#fff}.layui-layim-tab{margin-top:10px;padding:9px 0;font-size:0}.layui-layim-tab li{position:relative;width:33.33%;height:24px;line-height:24px;font-size:22px;text-align:center;color:#666;color:rgba(0,0,0,.6);cursor:pointer}.layim-tab-two li{width:50%}.layui-layim-tab li.layim-this:after{content:'';position:absolute;left:0;bottom:-9px;width:100%;height:3px;background-color:#3FDD86}.layui-layim-tab li.layim-hide{display:none}.layui-layim-tab li:hover{opacity:.8;filter:Alpha(opacity=80)}.layim-tab-content{display:none;padding:10px 0;height:349px;overflow:hidden;background-color:#fff;background-color:rgba(255,255,255,.9)}.layim-tab-content:hover{overflow-y:auto}.layim-tab-content li h5{position:relative;margin-right:15px;padding-left:30px;height:28px;line-height:28px;cursor:pointer;font-size:0;white-space:nowrap;overflow:hidden}.layim-tab-content li h5 *{font-size:14px}.layim-tab-content li h5 span{max-width:125px}.layim-tab-content li h5 i{position:absolute;left:12px;top:0;color:#C9BDBB}.layim-tab-content li h5 em{padding-left:5px;color:#999}.layim-tab-content li h5[lay-type=true] i{top:2px}.layim-tab-content li ul{display:none;margin-bottom:10px}.layui-layim-list li{position:relative;height:42px;padding:5px 15px 5px 60px;font-size:0;cursor:pointer}.layui-layim-list li:hover{background-color:#F2F2F2;background-color:rgba(0,0,0,.05)}.layui-layim-list li.layim-null{height:20px;line-height:20px;padding:0;font-size:14px;color:#999;text-align:center;cursor:default}.layui-layim-list li.layim-null:hover{background:0 0}.layui-layim-list li *{display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:14px}.layui-layim-list li span{margin-top:4px;max-width:155px}.layui-layim-list li img{position:absolute;left:15px;top:8px;width:36px;height:36px;border-radius:100%}.layui-layim-list li p{display:block;padding-right:30px;line-height:18px;font-size:12px;color:#999}.layui-layim-list li .layim-msg-status{display:none;position:absolute;right:10px;bottom:7px;padding:0 5px;height:16px;line-height:16px;border-radius:16px;text-align:center;font-size:10px;background-color:#F74C31;color:#fff}.layim-list-gray{-webkit-filter:grayscale(100%);-ms-filter:grayscale(100%);filter:grayscale(100%);filter:gray}.layui-layim-tool{padding:0 10px;font-size:0;background-color:#F6F6F6;border-radius:0 0 2px 2px}.layui-layim-tool li{position:relative;width:48px;height:37px;line-height:40px;text-align:center;font-size:22px;cursor:pointer}.layui-layim-tool li:active{background-color:#e2e2e2}.layui-layim-tool .layim-tool-msgbox{line-height:37px}.layui-layim-tool .layim-tool-find{line-height:38px}.layui-layim-tool .layim-tool-skin{font-size:26px}.layim-tool-msgbox span{display:none;position:absolute;left:12px;top:-12px;height:20px;line-height:20px;padding:0 10px;border-radius:2px;background-color:#33DF83;color:#fff;font-size:12px;-webkit-animation-duration:1s;animation-duration:1s}.layim-tool-msgbox .layer-anim-05{display:block}.layui-layim-search{display:none;position:absolute;bottom:5px;left:5px;height:28px;line-height:28px}.layui-layim-search input{width:210px;padding:0 30px 0 10px;height:30px;line-height:30px;border:none;border-radius:3px;background-color:#ddd}.layui-layim-search label{position:absolute;right:6px;top:4px;font-size:20px;cursor:pointer;color:#333;font-weight:400}.layui-layim-skin{margin:10px 0 0 10px;font-size:0}.layui-layim-skin li{margin:0 10px 10px 0;line-height:60px;text-align:center;background-color:#f6f6f6}.layui-layim-skin li,.layui-layim-skin li img{width:86px;height:60px;cursor:pointer}.layui-layim-skin li img:hover{opacity:.8;filter:Alpha(opacity=80)}.layui-layim-skin li cite{font-size:14px;font-style:normal}body .layui-layim-chat{background-color:#fff}body .layui-layim-chat-list{width:760px}body .layui-layim-chat .layui-layer-title{height:80px;border-bottom:none;background-color:#F8F8F8;background-color:rgba(245,245,245,.7)}body .layui-layim-chat .layui-layer-content{background:0 0}.layim-chat-list li *,.layui-layim-min .layui-layer-content *{display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:14px}.layim-chat-list{display:none;position:absolute;z-index:1000;top:-80px;width:200px;height:100%;background-color:#D9D9D9;overflow:hidden;font-size:0}.layim-chat-list:hover{overflow-y:auto}.layim-chat-list li,.layui-layim-min .layui-layer-content{position:relative;margin:5px;padding:5px 30px 5px 5px;line-height:40px;cursor:pointer;border-radius:3px}.layim-chat-list li img,.layui-layim-min .layui-layer-content img{width:40px;height:40px;border-radius:100%}.layui-layim-photos{cursor:crosshair}.layim-chat-list li{white-space:nowrap}.layim-chat-list li span,.layui-layim-min .layui-layer-content span{width:100px;padding-left:10px;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.layim-chat-list li span cite{color:#999;padding-left:10px}.layim-chat-list li:hover{background-color:#E2E2E2}.layim-chat-list li.layim-this{background-color:#F3F3F3}.layim-chat-list li .layui-icon{display:none;position:absolute;right:5px;top:7px;color:#555;font-size:22px}.layim-chat-list li .layui-icon:hover{color:#c00}.layim-chat-list li:hover .layui-icon{display:inline-block}.layim-chat-system{margin:10px 0;text-align:center}.layim-chat-system span{display:inline-block;line-height:30px;padding:0 15px;border-radius:3px;background-color:#e2e2e2;cursor:default;font-size:14px}.layim-chat{display:none;position:relative;background-color:#fff;background-color:rgba(255,255,255,.9)}.layim-chat-title{position:absolute;top:-80px;height:80px}.layim-chat-other{position:relative;top:15px;left:15px;padding-left:60px;cursor:default}.layim-chat-other img{position:absolute;left:0;top:0;width:50px;height:50px;border-radius:100%}.layim-chat-username{position:relative;top:5px;font-size:18px}.layim-chat-status{margin-top:6px;font-size:14px;color:#999}.layim-chat-group .layim-chat-other .layim-chat-username{cursor:pointer}.layim-chat-group .layim-chat-other .layim-chat-username em{padding:0 10px;color:#999}.layim-chat-main{height:262px;padding:15px 15px 5px;overflow-x:hidden;overflow-y:auto}.layim-chat-main ul li{position:relative;font-size:0;margin-bottom:10px;padding-left:60px;min-height:68px}.layim-chat-text,.layim-chat-user{display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:14px}.layim-chat-user{position:absolute;left:3px}.layim-chat-user img{width:40px;height:40px;border-radius:100%}.layim-chat-user cite{position:absolute;left:60px;top:-2px;width:500px;line-height:24px;font-size:12px;white-space:nowrap;color:#999;text-align:left;font-style:normal}.layim-chat-user cite i{padding-left:15px;font-style:normal}.layim-chat-text{position:relative;line-height:22px;margin-top:25px;padding:8px 15px;background-color:#e2e2e2;border-radius:3px;color:#333;word-break:break-all;max-width:462px\9}.layim-chat-text:after{content:'';position:absolute;left:-10px;top:13px;width:0;height:0;border-style:solid dashed dashed;border-color:#e2e2e2 transparent transparent;overflow:hidden;border-width:10px}.layim-chat-text a{color:#33DF83}.layim-chat-text img{max-width:100%;vertical-align:middle}.layim-chat-text .layui-layim-file,.layui-layim-file{display:block;text-align:center}.layim-chat-text .layui-layim-file{color:#333}.layui-layim-file:hover{opacity:.9}.layui-layim-file i{font-size:80px;line-height:80px}.layui-layim-file cite{display:block;line-height:20px;font-size:14px}.layui-layim-audio{text-align:center;cursor:pointer}.layui-layim-audio .layui-icon{position:relative;top:5px;font-size:24px}.layui-layim-audio p{margin-top:3px}.layui-layim-video{width:120px;height:80px;line-height:80px;background-color:#333;text-align:center;border-radius:3px}.layui-layim-video .layui-icon{font-size:36px;cursor:pointer;color:#fff}.layim-chat-main ul .layim-chat-system{min-height:0;padding:0}.layim-chat-main ul .layim-chat-mine{text-align:right;padding-left:0;padding-right:60px}.layim-chat-mine .layim-chat-user{left:auto;right:3px}.layim-chat-mine .layim-chat-user cite{left:auto;right:60px;text-align:right}.layim-chat-mine .layim-chat-user cite i{padding-left:0;padding-right:15px}.layim-chat-mine .layim-chat-text{margin-left:0;text-align:left;background-color:#5FB878;color:#fff}.layim-chat-mine .layim-chat-text:after{left:auto;right:-10px;border-top-color:#5FB878}.layim-chat-mine .layim-chat-text a{color:#fff}.layim-chat-footer{border-top:1px solid #F1F1F1}.layim-chat-tool{position:relative;padding:0 8px;height:38px;line-height:38px;font-size:0}.layim-chat-tool span{position:relative;margin:0 10px;display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:24px;cursor:pointer}.layim-chat-tool .layim-tool-log{position:absolute;right:5px;font-size:14px}.layim-tool-log i{position:relative;top:2px;margin-right:5px;font-size:20px;color:#999}.layim-tool-image input{position:absolute;font-size:0;left:0;top:0;width:100%;height:100%;opacity:.01;filter:Alpha(opacity=1);cursor:pointer}body .layui-layim-face{margin:10px 0 0 -18px;border:none;background:0 0}body .layui-layim-face .layui-layer-content{padding:0;background-color:#fff;color:#666;box-shadow:none}.layui-layim-face .layui-layer-TipsG{display:none}.layui-layim-face ul{position:relative;width:372px;padding:10px;border:1px solid #D9D9D9;background-color:#fff;box-shadow:0 0 20px rgba(0,0,0,.2)}.layui-layim-face ul li{cursor:pointer;float:left;border:1px solid #e8e8e8;height:22px;width:26px;overflow:hidden;margin:-1px 0 0 -1px;padding:4px 2px;text-align:center}.layui-layim-face ul li:hover{position:relative;z-index:2;border:1px solid #eb7350;background:#fff9ec}.layim-chat-textarea{margin-left:10px}.layim-chat-textarea textarea{display:block;width:100%;padding:5px 0 0;height:68px;line-height:20px;border:none;overflow:auto;resize:none;background:0 0}.layim-chat-textarea textarea:focus{outline:0}.layim-chat-bottom{position:relative;height:46px}.layim-chat-send{position:absolute;right:15px;top:3px;height:32px;line-height:32px;font-size:0;cursor:pointer}.layim-chat-send span{display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:14px;line-height:32px;margin-left:5px;padding:0 20px;background-color:#5FB878;color:#fff;border-radius:3px}.layim-chat-send span:hover{background-color:#69BC80}.layim-chat-send span:active{background-color:#59B573}.layim-chat-send .layim-send-btn{border-radius:3px 0 0 3px}.layim-chat-send .layim-send-set{position:relative;width:30px;height:32px;margin-left:0;padding:0;border-left:1px solid #85C998;border-radius:0 3px 3px 0}.layim-send-set .layui-edge{position:absolute;top:14px;left:9px;border-width:6px;border-top-style:solid;border-top-color:#fff}.layim-chat-send .layim-menu-box{left:auto;right:0;top:33px;width:180px;padding:10px 0}.layim-chat-send .layim-menu-box li{padding-right:15px;line-height:28px}body .layui-layim-min{border:1px solid #D9D9D9}.layui-layim-min .layui-layer-content{margin:0 5px;padding:5px 10px;white-space:nowrap}.layui-layim-close .layui-layer-content span{width:auto;max-width:120px}body .layui-layim-members{margin:25px 0 0 -75px;border:none;background:0 0}body .layui-layim-members .layui-layer-content{padding:0;background:0 0;color:#666;box-shadow:none}.layui-layim-members .layui-layer-TipsG{display:none}.layui-layim-members ul{position:relative;width:578px;height:200px;padding:10px 10px 0;border:1px solid #D9D9D9;background-color:#fff;background-color:rgba(255,255,255,.9);box-shadow:none;overflow:hidden;font-size:0}.layui-layim-members ul:hover{overflow:auto}.layim-add-img,.layim-add-remark,.layui-layim-members li{display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:14px}.layui-layim-members li{width:112px;margin:10px 0;text-align:center}.layui-layim-members li a{position:relative;display:inline-block;max-width:100%}.layui-layim-members li a:after{content:'';position:absolute;width:46px;height:46px;left:50%;margin-left:-23px;top:0;border:1px solid #eee;border-color:rgba(0,0,0,.1);border-radius:100%}.layui-layim-members li img{width:48px;height:48px;border-radius:100%}.layui-layim-members li:hover{opacity:.9}.layui-layim-members li a cite{display:block;padding:0 3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body .layui-layim-contextmenu{margin:70px 0 0 30px;width:200px;padding:5px 0;border:1px solid #ccc;background:#fff;border-radius:0;box-shadow:0 0 5px rgba(0,0,0,.2)}body .layui-layim-contextmenu .layui-layer-content{padding:0;background-color:#fff;color:#333;font-size:14px;box-shadow:none}.layui-layim-contextmenu .layui-layer-TipsG{display:none}.layui-layim-contextmenu li{padding:0 15px 0 35px;cursor:pointer;line-height:30px}.layui-layim-contextmenu li:hover{background-color:#F2F2F2}.layim-add-box{margin:15px;font-size:0}.layim-add-img img,.layim-add-remark p{margin-bottom:10px}.layim-add-img{width:100px;margin-right:20px;text-align:center}.layim-add-img img{width:100px;height:100px}.layim-add-remark{width:280px}.layim-add-remark .layui-select{width:100%;margin-bottom:10px}.layim-add-remark .layui-textarea{height:80px;min-height:80px;resize:none}.layim-tab-content,.layui-layim-face ul,.layui-layim-tab{margin-bottom:0}.layim-tab-content li h5{margin-top:0;margin-bottom:0},.layui-layim-face img{vertical-align:bottom}.layim-chat-other span{color:#444}.layim-chat-other span cite{padding:0 15px;color:#999}.layim-chat-other:hover{text-decoration:none}
\ No newline at end of file
diff --git a/templates/orange/static/mobile/layui/css/modules/layim/mobile/layim.css b/templates/orange/static/mobile/layui/css/modules/layim/mobile/layim.css
new file mode 100644
index 0000000..129721b
--- /dev/null
+++ b/templates/orange/static/mobile/layui/css/modules/layim/mobile/layim.css
@@ -0,0 +1,2 @@
+/** layui-v2.4.5 MIT License By https://www.layui.com */
+ .layim-tab-content li h5,.layui-layim-list li{border-bottom:1px solid #f2f2f2;cursor:pointer}html #layuicss-skinlayim-mobilecss{display:none;position:absolute;width:1989px}.layim-tab-content li h5 *,.layui-layim-skin li,.layui-layim-tab li,.layui-layim-tool li{display:inline-block;vertical-align:top;*zoom:1;*display:inline}.layim-tab-content li h5 span,.layui-layim-list li p,.layui-layim-list li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layui-layim-tab{position:absolute;bottom:0;left:0;right:0;height:50px;border-top:1px solid #f2f2f2;background-color:#fff}.layui-layim-tab li{position:relative;width:33.33%;height:50px;text-align:center;color:#666;color:rgba(0,0,0,.6);cursor:pointer}.layui-layim-tab li .layui-icon{position:relative;top:7px;font-size:25px}.layui-layim-tab li span{position:relative;bottom:-3px;display:block;font-size:12px}.layui-layim-tab li[lay-type=more] .layui-icon{top:4px;font-size:22px}.layui-layim-tab li.layim-this{color:#3FDD86}.layim-new{display:none;position:absolute;top:5px;left:50%;margin-left:15px;width:10px;height:10px;border-radius:10px;background-color:#F74C31;color:#fff}.layim-list-top .layim-new{position:relative;vertical-align:top;top:10px;left:initial;margin-left:5px}.layim-list-top i.layui-show{display:inline-block!important}.layim-tab-content,.layim-tab-content li ul{display:none}.layui-layim{position:fixed;left:0;right:0;top:50px;bottom:50px;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch}.layim-tab-content li h5{position:relative;padding-left:35px;height:45px;line-height:45px;font-size:0;white-space:nowrap;overflow:hidden}.layim-tab-content li h5 *{font-size:17px}.layim-tab-content li h5 span{max-width:80%}.layim-tab-content li h5 i{position:absolute;left:12px;top:0;color:#C9BDBB}.layim-tab-content li h5 em{padding-left:5px;color:#999}.layim-list-friend,.layim-list-group{background-color:#fff}.layui-layim-list li{position:relative;height:42px;padding:5px 15px 5px 60px;font-size:0}.layui-layim-list li:active{background-color:#F2F2F2;background-color:rgba(0,0,0,.05)}.layui-layim-list li.layim-null{height:20px;line-height:20px;padding:10px 0;color:#999;text-align:center;cursor:default;font-size:14px}.layim-list-history li.layim-null{padding:30px 0;border-bottom:none;background-color:#eee}.layui-layim-list li *{display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:17px}.layui-layim-list li span{margin-top:2px;max-width:155px;font-size:17px}.layui-layim-list li img{position:absolute;left:12px;top:8px;width:36px;height:36px;border-radius:100%}.layui-layim-list li p{display:block;padding-right:30px;line-height:18px;font-size:13px;color:#999}.layui-layim-list li .layim-msg-status{display:none;position:absolute;right:10px;bottom:7px;padding:0 5px;height:17px;line-height:17px;border-radius:17px;text-align:center;font-size:10px;background-color:#F74C31;color:#fff}.layim-list-gray{-webkit-filter:grayscale(100%);-ms-filter:grayscale(100%);filter:grayscale(100%);filter:gray}.layim-list-top{background-color:#fff;font-size:17px}.layim-list-top li{position:relative;padding:0 15px 0 50px;line-height:45px;border-bottom:1px solid #f2f2f2;cursor:pointer}.layim-list-top li:last-child{margin-bottom:10px;border-bottom:none}.layim-list-top li .layui-icon{position:absolute;left:12px;top:0;margin-right:10px;color:#36373C;font-size:24px}.layim-list-top li[layim-event=newFriend] .layui-icon{left:15px}.layim-panel,.layim-title{position:fixed;left:0;right:0;top:0}.layim-list-top li[layim-event=group] .layui-icon{font-size:20px}.layim-list-top li[layim-event=about] .layui-icon{font-size:25px}.layim-panel{bottom:0;background-color:#eee;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.2s;animation-duration:.2s}.layim-title{height:50px;line-height:50px;padding:0 15px;background-color:#36373C;color:#fff;font-size:18px}.layim-chat-status{padding-left:15px;font-size:14px;opacity:.7}.layim-title .layim-chat-back{display:inline-block;vertical-align:middle;position:relative;padding:0 15px;margin-left:-10px;top:0;font-size:24px;cursor:pointer}.layim-chat-detail{position:absolute;right:0;top:0;padding:0 15px;font-size:18px;cursor:pointer}.layim-chat-main,.layim-content{position:fixed;top:50px;left:0;right:0;overflow-y:auto;overflow-x:hidden}.layim-chat-detail:active,.layim-title .layim-chat-back:active{opacity:.8}.layui-layim .layim-title{text-align:left}.layui-layim .layim-title p{padding:0 15px}.layim-content{bottom:0}.layim-chat-main{width:100%;bottom:85px;padding:15px;-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important;box-sizing:border-box!important}.layim-chat-main ul{overflow-x:hidden}.layim-chat-main ul li{position:relative;font-size:0;margin-bottom:10px;padding-left:60px;min-height:68px}.layim-chat-text,.layim-chat-user{display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:15px}.layim-chat-user{position:absolute;left:3px}.layim-chat-user img{width:40px;height:40px;border-radius:100%}.layim-chat-user cite{position:absolute;left:60px;top:-2px;width:500px;line-height:24px;font-size:12px;white-space:nowrap;color:#999;text-align:left;font-style:normal}.layim-chat-user cite i{padding-left:15px;font-style:normal}.layim-chat-text{position:relative;min-height:22px;line-height:22px;margin-top:25px;padding:8px 15px;background-color:#fff;border-radius:3px;color:#333;word-break:break-all}.layim-chat-text:after{content:'';position:absolute;left:-10px;top:13px;width:0;height:0;border-style:solid dashed dashed;border-color:#fff transparent transparent;overflow:hidden;border-width:10px}.layim-chat-text a{color:#33DF83}.layim-chat-text img{max-width:100%;vertical-align:middle}.layim-chat-text .layui-layim-file,.layui-layim-file{display:block;text-align:center}.layim-chat-text .layui-layim-file{color:#333}.layui-layim-file:active{opacity:.9}.layui-layim-file i{font-size:80px;line-height:80px}.layui-layim-file cite{display:block;line-height:20px;font-size:17px}.layui-layim-audio{text-align:center;cursor:pointer}.layui-layim-audio .layui-icon{position:relative;top:5px;font-size:24px}.layui-layim-audio p{margin-top:3px}.layui-layim-video{width:120px;height:80px;line-height:80px;background-color:#333;text-align:center;border-radius:3px}.layui-layim-video .layui-icon{font-size:36px;cursor:pointer;color:#fff}.layim-chat-main ul .layim-chat-mine{text-align:right;padding-left:0;padding-right:60px}.layim-chat-mine .layim-chat-user{left:auto;right:3px}.layim-chat-mine .layim-chat-user cite{left:auto;right:60px;text-align:right}.layim-chat-mine .layim-chat-user cite i{padding-left:0;padding-right:15px}.layim-chat-mine .layim-chat-text{margin-left:0;text-align:left;background-color:#5FB878;color:#fff}.layim-chat-mine .layim-chat-text:after{left:auto;right:-10px;border-top-color:#5FB878}.layim-chat-mine .layim-chat-text a{color:#fff}.layim-chat-main ul .layim-chat-system{min-height:0;margin:20px 0 5px;padding:0}.layim-chat-system{margin:10px 0;text-align:center}.layim-chat-system span{display:inline-block;line-height:30px;padding:0 15px;border-radius:3px;background-color:#ddd;color:#fff;font-size:14px;cursor:pointer}.layim-chat-footer{position:fixed;bottom:0;left:10px;right:10px;height:80px}.layim-chat-send{display:-webkit-box;display:-webkit-flex;display:flex}.layim-chat-send input{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:40px;padding-left:5px;border:0;background-color:#fff;border-radius:3px}.layim-chat-send button{border-radius:3px;height:40px;padding:0 20px;border:0;margin-left:10px;background-color:#5FB878;color:#fff}.layim-chat-tool{position:relative;width:100%;overflow-x:auto;padding:0;height:38px;line-height:38px;margin-top:3px;font-size:0;white-space:nowrap}.layim-chat-tool span{position:relative;margin:0 15px;display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:28px;cursor:pointer}.layim-chat-tool .layim-tool-log{position:absolute;right:5px;font-size:14px}.layim-tool-log i{position:relative;top:2px;margin-right:5px;font-size:20px;color:#999}.layim-tool-image input{position:absolute;font-size:0;left:0;top:0;width:100%;height:100%;opacity:.01;filter:Alpha(opacity=1);cursor:pointer}.layim-layer{position:fixed;bottom:85px;left:10px;right:10px;margin:0 auto}.layui-layim-face{position:relative;max-height:180px;overflow:auto;padding:10px;font-size:0}.layui-layim-face li{cursor:pointer;display:inline-block;vertical-align:bottom;padding:5px 2px;text-align:center;width:10%;-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important;box-sizing:border-box!important}.layui-layim-face li img{width:22px;height:22px}.layim-about{font-size:17px}.layim-about .layui-m-layercont{text-align:left}.layim-about .layui-m-layercont p{line-height:30px}.layim-about .layui-m-layercont a{color:#01AAED}
\ No newline at end of file
diff --git a/templates/orange/static/mobile/layui/css/modules/layim/skin/1.jpg b/templates/orange/static/mobile/layui/css/modules/layim/skin/1.jpg
new file mode 100644
index 0000000..d9f9926
Binary files /dev/null and b/templates/orange/static/mobile/layui/css/modules/layim/skin/1.jpg differ
diff --git a/templates/orange/static/mobile/layui/css/modules/layim/skin/2.jpg b/templates/orange/static/mobile/layui/css/modules/layim/skin/2.jpg
new file mode 100644
index 0000000..0bffb50
Binary files /dev/null and b/templates/orange/static/mobile/layui/css/modules/layim/skin/2.jpg differ
diff --git a/templates/orange/static/mobile/layui/css/modules/layim/skin/3.jpg b/templates/orange/static/mobile/layui/css/modules/layim/skin/3.jpg
new file mode 100644
index 0000000..53ba921
Binary files /dev/null and b/templates/orange/static/mobile/layui/css/modules/layim/skin/3.jpg differ
diff --git a/templates/orange/static/mobile/layui/css/modules/layim/skin/4.jpg b/templates/orange/static/mobile/layui/css/modules/layim/skin/4.jpg
new file mode 100644
index 0000000..83b4738
Binary files /dev/null and b/templates/orange/static/mobile/layui/css/modules/layim/skin/4.jpg differ
diff --git a/templates/orange/static/mobile/layui/css/modules/layim/skin/5.jpg b/templates/orange/static/mobile/layui/css/modules/layim/skin/5.jpg
new file mode 100644
index 0000000..8ed74b9
Binary files /dev/null and b/templates/orange/static/mobile/layui/css/modules/layim/skin/5.jpg differ
diff --git a/templates/orange/static/mobile/layui/css/modules/layim/skin/logo.jpg b/templates/orange/static/mobile/layui/css/modules/layim/skin/logo.jpg
new file mode 100644
index 0000000..26c7358
Binary files /dev/null and b/templates/orange/static/mobile/layui/css/modules/layim/skin/logo.jpg differ
diff --git a/templates/orange/static/mobile/layui/css/modules/layim/voice/default.mp3 b/templates/orange/static/mobile/layui/css/modules/layim/voice/default.mp3
new file mode 100644
index 0000000..90013c5
Binary files /dev/null and b/templates/orange/static/mobile/layui/css/modules/layim/voice/default.mp3 differ
diff --git a/templates/orange/static/mobile/layui/font/iconfont.eot b/templates/orange/static/mobile/layui/font/iconfont.eot
new file mode 100644
index 0000000..93b3d5a
Binary files /dev/null and b/templates/orange/static/mobile/layui/font/iconfont.eot differ
diff --git a/templates/orange/static/mobile/layui/font/iconfont.svg b/templates/orange/static/mobile/layui/font/iconfont.svg
new file mode 100644
index 0000000..1c7ffe9
--- /dev/null
+++ b/templates/orange/static/mobile/layui/font/iconfont.svg
@@ -0,0 +1,473 @@
+
+
+
+
+
+Created by iconfont
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/templates/orange/static/mobile/layui/font/iconfont.ttf b/templates/orange/static/mobile/layui/font/iconfont.ttf
new file mode 100644
index 0000000..0c8b0a5
Binary files /dev/null and b/templates/orange/static/mobile/layui/font/iconfont.ttf differ
diff --git a/templates/orange/static/mobile/layui/font/iconfont.woff b/templates/orange/static/mobile/layui/font/iconfont.woff
new file mode 100644
index 0000000..786bb2a
Binary files /dev/null and b/templates/orange/static/mobile/layui/font/iconfont.woff differ
diff --git a/templates/orange/static/mobile/layui/images/face/0.gif b/templates/orange/static/mobile/layui/images/face/0.gif
new file mode 100644
index 0000000..a63f0d5
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/0.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/1.gif b/templates/orange/static/mobile/layui/images/face/1.gif
new file mode 100644
index 0000000..b2b78b2
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/1.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/10.gif b/templates/orange/static/mobile/layui/images/face/10.gif
new file mode 100644
index 0000000..556c7e3
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/10.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/11.gif b/templates/orange/static/mobile/layui/images/face/11.gif
new file mode 100644
index 0000000..2bfc58b
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/11.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/12.gif b/templates/orange/static/mobile/layui/images/face/12.gif
new file mode 100644
index 0000000..1c321c7
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/12.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/13.gif b/templates/orange/static/mobile/layui/images/face/13.gif
new file mode 100644
index 0000000..300bbc2
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/13.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/14.gif b/templates/orange/static/mobile/layui/images/face/14.gif
new file mode 100644
index 0000000..43b6d0a
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/14.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/15.gif b/templates/orange/static/mobile/layui/images/face/15.gif
new file mode 100644
index 0000000..c9f25fa
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/15.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/16.gif b/templates/orange/static/mobile/layui/images/face/16.gif
new file mode 100644
index 0000000..34f28e4
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/16.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/17.gif b/templates/orange/static/mobile/layui/images/face/17.gif
new file mode 100644
index 0000000..39cd035
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/17.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/18.gif b/templates/orange/static/mobile/layui/images/face/18.gif
new file mode 100644
index 0000000..7bce299
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/18.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/19.gif b/templates/orange/static/mobile/layui/images/face/19.gif
new file mode 100644
index 0000000..adac542
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/19.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/2.gif b/templates/orange/static/mobile/layui/images/face/2.gif
new file mode 100644
index 0000000..7edbb58
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/2.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/20.gif b/templates/orange/static/mobile/layui/images/face/20.gif
new file mode 100644
index 0000000..50631a6
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/20.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/21.gif b/templates/orange/static/mobile/layui/images/face/21.gif
new file mode 100644
index 0000000..b984212
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/21.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/22.gif b/templates/orange/static/mobile/layui/images/face/22.gif
new file mode 100644
index 0000000..1f0bd8b
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/22.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/23.gif b/templates/orange/static/mobile/layui/images/face/23.gif
new file mode 100644
index 0000000..e05e0f9
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/23.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/24.gif b/templates/orange/static/mobile/layui/images/face/24.gif
new file mode 100644
index 0000000..f35928a
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/24.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/25.gif b/templates/orange/static/mobile/layui/images/face/25.gif
new file mode 100644
index 0000000..0b4a883
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/25.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/26.gif b/templates/orange/static/mobile/layui/images/face/26.gif
new file mode 100644
index 0000000..45c4fb5
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/26.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/27.gif b/templates/orange/static/mobile/layui/images/face/27.gif
new file mode 100644
index 0000000..7a4c013
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/27.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/28.gif b/templates/orange/static/mobile/layui/images/face/28.gif
new file mode 100644
index 0000000..fc5a0cf
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/28.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/29.gif b/templates/orange/static/mobile/layui/images/face/29.gif
new file mode 100644
index 0000000..5dd7442
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/29.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/3.gif b/templates/orange/static/mobile/layui/images/face/3.gif
new file mode 100644
index 0000000..86df67b
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/3.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/30.gif b/templates/orange/static/mobile/layui/images/face/30.gif
new file mode 100644
index 0000000..b751f98
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/30.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/31.gif b/templates/orange/static/mobile/layui/images/face/31.gif
new file mode 100644
index 0000000..c9476d7
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/31.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/32.gif b/templates/orange/static/mobile/layui/images/face/32.gif
new file mode 100644
index 0000000..9931b06
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/32.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/33.gif b/templates/orange/static/mobile/layui/images/face/33.gif
new file mode 100644
index 0000000..59111a3
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/33.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/34.gif b/templates/orange/static/mobile/layui/images/face/34.gif
new file mode 100644
index 0000000..a334548
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/34.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/35.gif b/templates/orange/static/mobile/layui/images/face/35.gif
new file mode 100644
index 0000000..a932264
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/35.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/36.gif b/templates/orange/static/mobile/layui/images/face/36.gif
new file mode 100644
index 0000000..6de432a
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/36.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/37.gif b/templates/orange/static/mobile/layui/images/face/37.gif
new file mode 100644
index 0000000..d05f2da
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/37.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/38.gif b/templates/orange/static/mobile/layui/images/face/38.gif
new file mode 100644
index 0000000..8b1c88a
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/38.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/39.gif b/templates/orange/static/mobile/layui/images/face/39.gif
new file mode 100644
index 0000000..38b84a5
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/39.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/4.gif b/templates/orange/static/mobile/layui/images/face/4.gif
new file mode 100644
index 0000000..d52200c
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/4.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/40.gif b/templates/orange/static/mobile/layui/images/face/40.gif
new file mode 100644
index 0000000..ae42991
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/40.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/41.gif b/templates/orange/static/mobile/layui/images/face/41.gif
new file mode 100644
index 0000000..b9c715c
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/41.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/42.gif b/templates/orange/static/mobile/layui/images/face/42.gif
new file mode 100644
index 0000000..0eb1434
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/42.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/43.gif b/templates/orange/static/mobile/layui/images/face/43.gif
new file mode 100644
index 0000000..ac0b700
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/43.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/44.gif b/templates/orange/static/mobile/layui/images/face/44.gif
new file mode 100644
index 0000000..ad44497
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/44.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/45.gif b/templates/orange/static/mobile/layui/images/face/45.gif
new file mode 100644
index 0000000..6837fca
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/45.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/46.gif b/templates/orange/static/mobile/layui/images/face/46.gif
new file mode 100644
index 0000000..d62916d
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/46.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/47.gif b/templates/orange/static/mobile/layui/images/face/47.gif
new file mode 100644
index 0000000..58a0836
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/47.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/48.gif b/templates/orange/static/mobile/layui/images/face/48.gif
new file mode 100644
index 0000000..7ffd161
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/48.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/49.gif b/templates/orange/static/mobile/layui/images/face/49.gif
new file mode 100644
index 0000000..959b992
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/49.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/5.gif b/templates/orange/static/mobile/layui/images/face/5.gif
new file mode 100644
index 0000000..4e8b09f
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/5.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/50.gif b/templates/orange/static/mobile/layui/images/face/50.gif
new file mode 100644
index 0000000..6e22e7f
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/50.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/51.gif b/templates/orange/static/mobile/layui/images/face/51.gif
new file mode 100644
index 0000000..ad3f4d3
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/51.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/52.gif b/templates/orange/static/mobile/layui/images/face/52.gif
new file mode 100644
index 0000000..39f8a22
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/52.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/53.gif b/templates/orange/static/mobile/layui/images/face/53.gif
new file mode 100644
index 0000000..a181ee7
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/53.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/54.gif b/templates/orange/static/mobile/layui/images/face/54.gif
new file mode 100644
index 0000000..e289d92
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/54.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/55.gif b/templates/orange/static/mobile/layui/images/face/55.gif
new file mode 100644
index 0000000..4351083
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/55.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/56.gif b/templates/orange/static/mobile/layui/images/face/56.gif
new file mode 100644
index 0000000..e0eff22
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/56.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/57.gif b/templates/orange/static/mobile/layui/images/face/57.gif
new file mode 100644
index 0000000..0bf130f
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/57.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/58.gif b/templates/orange/static/mobile/layui/images/face/58.gif
new file mode 100644
index 0000000..0f06508
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/58.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/59.gif b/templates/orange/static/mobile/layui/images/face/59.gif
new file mode 100644
index 0000000..7081e4f
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/59.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/6.gif b/templates/orange/static/mobile/layui/images/face/6.gif
new file mode 100644
index 0000000..f7715bf
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/6.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/60.gif b/templates/orange/static/mobile/layui/images/face/60.gif
new file mode 100644
index 0000000..6e15f89
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/60.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/61.gif b/templates/orange/static/mobile/layui/images/face/61.gif
new file mode 100644
index 0000000..f092d7e
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/61.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/62.gif b/templates/orange/static/mobile/layui/images/face/62.gif
new file mode 100644
index 0000000..7fe4984
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/62.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/63.gif b/templates/orange/static/mobile/layui/images/face/63.gif
new file mode 100644
index 0000000..cf8e23e
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/63.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/64.gif b/templates/orange/static/mobile/layui/images/face/64.gif
new file mode 100644
index 0000000..a779719
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/64.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/65.gif b/templates/orange/static/mobile/layui/images/face/65.gif
new file mode 100644
index 0000000..7bb98f2
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/65.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/66.gif b/templates/orange/static/mobile/layui/images/face/66.gif
new file mode 100644
index 0000000..bb6d077
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/66.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/67.gif b/templates/orange/static/mobile/layui/images/face/67.gif
new file mode 100644
index 0000000..6e33f7c
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/67.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/68.gif b/templates/orange/static/mobile/layui/images/face/68.gif
new file mode 100644
index 0000000..1a6c400
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/68.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/69.gif b/templates/orange/static/mobile/layui/images/face/69.gif
new file mode 100644
index 0000000..a02f0b2
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/69.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/7.gif b/templates/orange/static/mobile/layui/images/face/7.gif
new file mode 100644
index 0000000..e6d4db8
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/7.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/70.gif b/templates/orange/static/mobile/layui/images/face/70.gif
new file mode 100644
index 0000000..416c5c1
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/70.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/71.gif b/templates/orange/static/mobile/layui/images/face/71.gif
new file mode 100644
index 0000000..c17d60c
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/71.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/8.gif b/templates/orange/static/mobile/layui/images/face/8.gif
new file mode 100644
index 0000000..66f967b
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/8.gif differ
diff --git a/templates/orange/static/mobile/layui/images/face/9.gif b/templates/orange/static/mobile/layui/images/face/9.gif
new file mode 100644
index 0000000..6044740
Binary files /dev/null and b/templates/orange/static/mobile/layui/images/face/9.gif differ
diff --git a/templates/orange/static/mobile/layui/lay/modules/carousel.js b/templates/orange/static/mobile/layui/lay/modules/carousel.js
new file mode 100644
index 0000000..2be2c8c
--- /dev/null
+++ b/templates/orange/static/mobile/layui/lay/modules/carousel.js
@@ -0,0 +1,2 @@
+/** layui-v2.4.5 MIT License By https://www.layui.com */
+ ;layui.define("jquery",function(e){"use strict";var i=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var n=this;return n.config=i.extend({},n.config,e),n},on:function(e,i){return layui.onevent.call(this,t,e,i)}}),t="carousel",a="layui-this",l=">*[carousel-item]>*",o="layui-carousel-left",r="layui-carousel-right",d="layui-carousel-prev",s="layui-carousel-next",u="layui-carousel-arrow",c="layui-carousel-ind",m=function(e){var t=this;t.config=i.extend({},t.config,n.config,e),t.render()};m.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},m.prototype.render=function(){var e=this,n=e.config;n.elem=i(n.elem),n.elem[0]&&(e.elemItem=n.elem.find(l),n.index<0&&(n.index=0),n.index>=e.elemItem.length&&(n.index=e.elemItem.length-1),n.interval<800&&(n.interval=800),n.full?n.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):n.elem.css({width:n.width,height:n.height}),n.elem.attr("lay-anim",n.anim),e.elemItem.eq(n.index).addClass(a),e.elemItem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},m.prototype.reload=function(e){var n=this;clearInterval(n.timer),n.config=i.extend({},n.config,e),n.render()},m.prototype.prevIndex=function(){var e=this,i=e.config,n=i.index-1;return n<0&&(n=e.elemItem.length-1),n},m.prototype.nextIndex=function(){var e=this,i=e.config,n=i.index+1;return n>=e.elemItem.length&&(n=0),n},m.prototype.addIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index+e,n.index>=i.elemItem.length&&(n.index=0)},m.prototype.subIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index-e,n.index<0&&(n.index=i.elemItem.length-1)},m.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(e.timer=setInterval(function(){e.slide()},i.interval))},m.prototype.arrow=function(){var e=this,n=e.config,t=i([''+("updown"===n.anim?"":"")+" ",''+("updown"===n.anim?"":"")+" "].join(""));n.elem.attr("lay-arrow",n.arrow),n.elem.find("."+u)[0]&&n.elem.find("."+u).remove(),n.elem.append(t),t.on("click",function(){var n=i(this),t=n.attr("lay-type");e.slide(t)})},m.prototype.indicator=function(){var e=this,n=e.config,t=e.elemInd=i(['',function(){var i=[];return layui.each(e.elemItem,function(e){i.push(" ")}),i.join("")}()," "].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+c)[0]&&n.elem.find("."+c).remove(),n.elem.append(t),"updown"===n.anim&&t.css("margin-top",-(t.height()/2)),t.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){var t=i(this),a=t.index();a>n.index?e.slide("add",a-n.index):a/g,">").replace(/'/g,"'").replace(/"/g,""")),c.html(''+o.replace(/[\r\t\n]+/g," ")+" "),c.find(">.layui-code-h3")[0]||c.prepend(''+(c.attr("lay-title")||e.title||"code")+(e.about?'layui.code ':"")+" ");var d=c.find(">.layui-code-ol");c.addClass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addClass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss");
\ No newline at end of file
diff --git a/templates/orange/static/mobile/layui/lay/modules/colorpicker.js b/templates/orange/static/mobile/layui/lay/modules/colorpicker.js
new file mode 100644
index 0000000..fd99bf8
--- /dev/null
+++ b/templates/orange/static/mobile/layui/lay/modules/colorpicker.js
@@ -0,0 +1,2 @@
+/** layui-v2.4.5 MIT License By https://www.layui.com */
+ ;layui.define("jquery",function(e){"use strict";var i=layui.jquery,o={config:{},index:layui.colorpicker?layui.colorpicker.index+1e4:0,set:function(e){var o=this;return o.config=i.extend({},o.config,e),o},on:function(e,i){return layui.onevent.call(this,"colorpicker",e,i)}},r=function(){var e=this,i=e.config;return{config:i}},t="colorpicker",n="layui-show",l="layui-colorpicker",c=".layui-colorpicker-main",a="layui-icon-down",s="layui-icon-close",f="layui-colorpicker-trigger-span",d="layui-colorpicker-trigger-i",u="layui-colorpicker-side",p="layui-colorpicker-side-slider",g="layui-colorpicker-basis",v="layui-colorpicker-alpha-bgcolor",h="layui-colorpicker-alpha-slider",m="layui-colorpicker-basis-cursor",b="layui-colorpicker-main-input",k=function(e){var i={h:0,s:0,b:0},o=Math.min(e.r,e.g,e.b),r=Math.max(e.r,e.g,e.b),t=r-o;return i.b=r,i.s=0!=r?255*t/r:0,0!=i.s?e.r==r?i.h=(e.g-e.b)/t:e.g==r?i.h=2+(e.b-e.r)/t:i.h=4+(e.r-e.g)/t:i.h=-1,r==o&&(i.h=0),i.h*=60,i.h<0&&(i.h+=360),i.s*=100/255,i.b*=100/255,i},y=function(e){var e=e.indexOf("#")>-1?e.substring(1):e;if(3==e.length){var i=e.split("");e=i[0]+i[0]+i[1]+i[1]+i[2]+i[2]}e=parseInt(e,16);var o={r:e>>16,g:(65280&e)>>8,b:255&e};return k(o)},x=function(e){var i={},o=e.h,r=255*e.s/100,t=255*e.b/100;if(0==r)i.r=i.g=i.b=t;else{var n=t,l=(255-r)*t/255,c=(n-l)*(o%60)/60;360==o&&(o=0),o<60?(i.r=n,i.b=l,i.g=l+c):o<120?(i.g=n,i.b=l,i.r=n-c):o<180?(i.g=n,i.r=l,i.b=l+c):o<240?(i.b=n,i.r=l,i.g=n-c):o<300?(i.b=n,i.g=l,i.r=l+c):o<360?(i.r=n,i.g=l,i.b=n-c):(i.r=0,i.g=0,i.b=0)}return{r:Math.round(i.r),g:Math.round(i.g),b:Math.round(i.b)}},C=function(e){var o=x(e),r=[o.r.toString(16),o.g.toString(16),o.b.toString(16)];return i.each(r,function(e,i){1==i.length&&(r[e]="0"+i)}),r.join("")},P=function(e){var i=/[0-9]{1,3}/g,o=e.match(i)||[];return{r:o[0],g:o[1],b:o[2]}},B=i(window),w=i(document),D=function(e){var r=this;r.index=++o.index,r.config=i.extend({},r.config,o.config,e),r.render()};D.prototype.config={color:"",size:null,alpha:!1,format:"hex",predefine:!1,colors:["#009688","#5FB878","#1E9FFF","#FF5722","#FFB800","#01AAED","#999","#c00","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgb(0, 186, 189)","rgb(255, 120, 0)","rgb(250, 212, 0)","#393D49","rgba(0,0,0,.5)","rgba(255, 69, 0, 0.68)","rgba(144, 240, 144, 0.5)","rgba(31, 147, 255, 0.73)"]},D.prototype.render=function(){var e=this,o=e.config,r=i(['',"",'3&&(o.alpha&&"rgb"==o.format||(e="#"+C(k(P(o.color))))),"background: "+e):e}()+'">',' '," "," ","
"].join("")),t=i(o.elem);o.size&&r.addClass("layui-colorpicker-"+o.size),t.addClass("layui-inline").html(e.elemColorBox=r),e.color=e.elemColorBox.find("."+f)[0].style.background,e.events()},D.prototype.renderPicker=function(){var e=this,o=e.config,r=e.elemColorBox[0],t=e.elemPicker=i(['','
",'
",function(){if(o.predefine){var e=['
'];return layui.each(o.colors,function(i,o){e.push(['
"].join(""))}),e.push("
"),e.join("")}return""}(),'
','
',' ',"
",'
','清空 ','确定 ',"
","
"].join(""));e.elemColorBox.find("."+f)[0];i(c)[0]&&i(c).data("index")==e.index?e.removePicker(D.thisElemInd):(e.removePicker(D.thisElemInd),i("body").append(t)),D.thisElemInd=e.index,D.thisColor=r.style.background,e.position(),e.pickerEvents()},D.prototype.removePicker=function(e){var o=this;o.config;return i("#layui-colorpicker"+(e||o.index)).remove(),o},D.prototype.position=function(){var e=this,i=e.config,o=e.bindElem||e.elemColorBox[0],r=e.elemPicker[0],t=o.getBoundingClientRect(),n=r.offsetWidth,l=r.offsetHeight,c=function(e){return e=e?"scrollLeft":"scrollTop",document.body[e]|document.documentElement[e]},a=function(e){return document.documentElement[e?"clientWidth":"clientHeight"]},s=5,f=t.left,d=t.bottom;f-=(n-o.offsetWidth)/2,d+=s,f+n+s>a("width")?f=a("width")-n-s:f
a()&&(d=t.top>l?t.top-l:a()-l,d-=2*s),i.position&&(r.style.position=i.position),r.style.left=f+("fixed"===i.position?0:c(1))+"px",r.style.top=d+("fixed"===i.position?0:c())+"px"},D.prototype.val=function(){var e=this,i=(e.config,e.elemColorBox.find("."+f)),o=e.elemPicker.find("."+b),r=i[0],t=r.style.backgroundColor;if(t){var n=k(P(t)),l=i.attr("lay-type");if(e.select(n.h,n.s,n.b),"torgb"===l&&o.find("input").val(t),"rgba"===l){var c=P(t);if(3==(t.match(/[0-9]{1,3}/g)||[]).length)o.find("input").val("rgba("+c.r+", "+c.g+", "+c.b+", 1)"),e.elemPicker.find("."+h).css("left",280);else{o.find("input").val(t);var a=280*t.slice(t.lastIndexOf(",")+1,t.length-1);e.elemPicker.find("."+h).css("left",a)}e.elemPicker.find("."+v)[0].style.background="linear-gradient(to right, rgba("+c.r+", "+c.g+", "+c.b+", 0), rgb("+c.r+", "+c.g+", "+c.b+"))"}}else e.select(0,100,100),o.find("input").val(""),e.elemPicker.find("."+v)[0].style.background="",e.elemPicker.find("."+h).css("left",280)},D.prototype.side=function(){var e=this,o=e.config,r=e.elemColorBox.find("."+f),t=r.attr("lay-type"),n=e.elemPicker.find("."+u),l=e.elemPicker.find("."+p),c=e.elemPicker.find("."+g),y=e.elemPicker.find("."+m),C=e.elemPicker.find("."+v),w=e.elemPicker.find("."+h),D=l[0].offsetTop/180*360,E=100-(y[0].offsetTop+3)/180*100,H=(y[0].offsetLeft+3)/260*100,W=Math.round(w[0].offsetLeft/280*100)/100,j=e.elemColorBox.find("."+d),F=e.elemPicker.find(".layui-colorpicker-pre").children("div"),L=function(i,n,l,c){e.select(i,n,l);var f=x({h:i,s:n,b:l});if(j.addClass(a).removeClass(s),r[0].style.background="rgb("+f.r+", "+f.g+", "+f.b+")","torgb"===t&&e.elemPicker.find("."+b).find("input").val("rgb("+f.r+", "+f.g+", "+f.b+")"),"rgba"===t){var d=0;d=280*c,w.css("left",d),e.elemPicker.find("."+b).find("input").val("rgba("+f.r+", "+f.g+", "+f.b+", "+c+")"),r[0].style.background="rgba("+f.r+", "+f.g+", "+f.b+", "+c+")",C[0].style.background="linear-gradient(to right, rgba("+f.r+", "+f.g+", "+f.b+", 0), rgb("+f.r+", "+f.g+", "+f.b+"))"}o.change&&o.change(e.elemPicker.find("."+b).find("input").val())},M=i(['
t&&(r=t);var l=r/180*360;D=l,L(l,H,E,W),e.preventDefault()};Y(r),e.preventDefault()}),n.on("click",function(e){var o=e.clientY-i(this).offset().top;o<0&&(o=0),o>this.offsetHeight&&(o=this.offsetHeight);var r=o/180*360;D=r,L(r,H,E,W),e.preventDefault()}),y.on("mousedown",function(e){var i=this.offsetTop,o=this.offsetLeft,r=e.clientY,t=e.clientX,n=function(e){var n=i+(e.clientY-r),l=o+(e.clientX-t),a=c[0].offsetHeight-3,s=c[0].offsetWidth-3;n<-3&&(n=-3),n>a&&(n=a),l<-3&&(l=-3),l>s&&(l=s);var f=(l+3)/260*100,d=100-(n+3)/180*100;E=d,H=f,L(D,f,d,W),e.preventDefault()};layui.stope(e),Y(n),e.preventDefault()}),c.on("mousedown",function(e){var o=e.clientY-i(this).offset().top-3+B.scrollTop(),r=e.clientX-i(this).offset().left-3+B.scrollLeft();o<-3&&(o=-3),o>this.offsetHeight-3&&(o=this.offsetHeight-3),r<-3&&(r=-3),r>this.offsetWidth-3&&(r=this.offsetWidth-3);var t=(r+3)/260*100,n=100-(o+3)/180*100;E=n,H=t,L(D,t,n,W),e.preventDefault(),y.trigger(e,"mousedown")}),w.on("mousedown",function(e){var i=this.offsetLeft,o=e.clientX,r=function(e){var r=i+(e.clientX-o),t=C[0].offsetWidth;r<0&&(r=0),r>t&&(r=t);var n=Math.round(r/280*100)/100;W=n,L(D,H,E,n),e.preventDefault()};Y(r),e.preventDefault()}),C.on("click",function(e){var o=e.clientX-i(this).offset().left;o<0&&(o=0),o>this.offsetWidth&&(o=this.offsetWidth);var r=Math.round(o/280*100)/100;W=r,L(D,H,E,r),e.preventDefault()}),F.each(function(){i(this).on("click",function(){i(this).parent(".layui-colorpicker-pre").addClass("selected").siblings().removeClass("selected");var e,o=this.style.backgroundColor,r=k(P(o)),t=o.slice(o.lastIndexOf(",")+1,o.length-1);D=r.h,H=r.s,E=r.b,3==(o.match(/[0-9]{1,3}/g)||[]).length&&(t=1),W=t,e=280*t,L(r.h,r.s,r.b,t)})})},D.prototype.select=function(e,i,o,r){var t=this,n=(t.config,C({h:e,s:100,b:100})),l=C({h:e,s:i,b:o}),c=e/360*180,a=180-o/100*180-3,s=i/100*260-3;t.elemPicker.find("."+p).css("top",c),t.elemPicker.find("."+g)[0].style.background="#"+n,t.elemPicker.find("."+m).css({top:a,left:s}),"change"!==r&&t.elemPicker.find("."+b).find("input").val("#"+l)},D.prototype.pickerEvents=function(){var e=this,o=e.config,r=e.elemColorBox.find("."+f),t=e.elemPicker.find("."+b+" input"),n={clear:function(i){r[0].style.background="",e.elemColorBox.find("."+d).removeClass(a).addClass(s),e.color="",o.done&&o.done(""),e.removePicker()},confirm:function(i,n){var l=t.val(),c=l,f={};if(l.indexOf(",")>-1){if(f=k(P(l)),e.select(f.h,f.s,f.b),r[0].style.background=c="#"+C(f),(l.match(/[0-9]{1,3}/g)||[]).length>3&&"rgba"===r.attr("lay-type")){var u=280*l.slice(l.lastIndexOf(",")+1,l.length-1);e.elemPicker.find("."+h).css("left",u),r[0].style.background=l,c=l}}else f=y(l),r[0].style.background=c="#"+C(f),e.elemColorBox.find("."+d).removeClass(s).addClass(a);return"change"===n?(e.select(f.h,f.s,f.b,n),void(o.change&&o.change(c))):(e.color=l,o.done&&o.done(l),void e.removePicker())}};e.elemPicker.on("click","*[colorpicker-events]",function(){var e=i(this),o=e.attr("colorpicker-events");n[o]&&n[o].call(this,e)}),t.on("keyup",function(e){var o=i(this);n.confirm.call(this,o,13===e.keyCode?null:"change")})},D.prototype.events=function(){var e=this,o=e.config,r=e.elemColorBox.find("."+f);e.elemColorBox.on("click",function(){e.renderPicker(),i(c)[0]&&(e.val(),e.side())}),o.elem[0]&&!e.elemColorBox[0].eventHandler&&(w.on("click",function(o){if(!i(o.target).hasClass(l)&&!i(o.target).parents("."+l)[0]&&!i(o.target).hasClass(c.replace(/\./g,""))&&!i(o.target).parents(c)[0]&&e.elemPicker){if(e.color){var t=k(P(e.color));e.select(t.h,t.s,t.b)}else e.elemColorBox.find("."+d).removeClass(a).addClass(s);r[0].style.background=e.color||"",e.removePicker()}}),B.on("resize",function(){return!(!e.elemPicker||!i(c)[0])&&void e.position()}),e.elemColorBox[0].eventHandler=!0)},o.render=function(e){var i=new D(e);return r.call(i)},e(t,o)});
\ No newline at end of file
diff --git a/templates/orange/static/mobile/layui/lay/modules/element.js b/templates/orange/static/mobile/layui/lay/modules/element.js
new file mode 100644
index 0000000..ac628df
--- /dev/null
+++ b/templates/orange/static/mobile/layui/lay/modules/element.js
@@ -0,0 +1,2 @@
+/** layui-v2.4.5 MIT License By https://www.layui.com */
+ ;layui.define("jquery",function(t){"use strict";var a=layui.$,i=(layui.hint(),layui.device()),e="element",l="layui-this",n="layui-show",s=function(){this.config={}};s.prototype.set=function(t){var i=this;return a.extend(!0,i.config,t),i},s.prototype.on=function(t,a){return layui.onevent.call(this,e,t,a)},s.prototype.tabAdd=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.children(".layui-tab-bar"),o=l.children(".layui-tab-content"),r='"+(i.title||"unnaming")+" ";return s[0]?s.before(r):n.append(r),o.append(''+(i.content||"")+"
"),f.hideTabMore(!0),f.tabAuto(),this},s.prototype.tabDelete=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.find('>li[lay-id="'+i+'"]');return f.tabDelete(null,s),this},s.prototype.tabChange=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.find('>li[lay-id="'+i+'"]');return f.tabClick.call(s[0],null,null,s),this},s.prototype.tab=function(t){t=t||{},b.on("click",t.headerElem,function(i){var e=a(this).index();f.tabClick.call(this,i,e,null,t)})},s.prototype.progress=function(t,i){var e="layui-progress",l=a("."+e+"[lay-filter="+t+"]"),n=l.find("."+e+"-bar"),s=n.find("."+e+"-text");return n.css("width",i),s.text(i),this};var o=".layui-nav",r="layui-nav-item",c="layui-nav-bar",u="layui-nav-tree",d="layui-nav-child",y="layui-nav-more",h="layui-anim layui-anim-upbit",f={tabClick:function(t,i,s,o){o=o||{};var r=s||a(this),i=i||r.parent().children("li").index(r),c=o.headerElem?r.parent():r.parents(".layui-tab").eq(0),u=o.bodyElem?a(o.bodyElem):c.children(".layui-tab-content").children(".layui-tab-item"),d=r.find("a"),y=c.attr("lay-filter");"javascript:;"!==d.attr("href")&&"_blank"===d.attr("target")||(r.addClass(l).siblings().removeClass(l),u.eq(i).addClass(n).siblings().removeClass(n)),layui.event.call(this,e,"tab("+y+")",{elem:c,index:i})},tabDelete:function(t,i){var n=i||a(this).parent(),s=n.index(),o=n.parents(".layui-tab").eq(0),r=o.children(".layui-tab-content").children(".layui-tab-item"),c=o.attr("lay-filter");n.hasClass(l)&&(n.next()[0]?f.tabClick.call(n.next()[0],null,s+1):n.prev()[0]&&f.tabClick.call(n.prev()[0],null,s-1)),n.remove(),r.eq(s).remove(),setTimeout(function(){f.tabAuto()},50),layui.event.call(this,e,"tabDelete("+c+")",{elem:o,index:s})},tabAuto:function(){var t="layui-tab-more",e="layui-tab-bar",l="layui-tab-close",n=this;a(".layui-tab").each(function(){var s=a(this),o=s.children(".layui-tab-title"),r=(s.children(".layui-tab-content").children(".layui-tab-item"),'lay-stope="tabmore"'),c=a(' ');if(n===window&&8!=i.ie&&f.hideTabMore(!0),s.attr("lay-allowClose")&&o.find("li").each(function(){var t=a(this);if(!t.find("."+l)[0]){var i=a('ဆ ');i.on("click",f.tabDelete),t.append(i)}}),"string"!=typeof s.attr("lay-unauto"))if(o.prop("scrollWidth")>o.outerWidth()+1){if(o.find("."+e)[0])return;o.append(c),s.attr("overflow",""),c.on("click",function(a){o[this.title?"removeClass":"addClass"](t),this.title=this.title?"":"收缩"})}else o.find("."+e).remove(),s.removeAttr("overflow")})},hideTabMore:function(t){var i=a(".layui-tab-title");t!==!0&&"tabmore"===a(t.target).attr("lay-stope")||(i.removeClass("layui-tab-more"),i.find(".layui-tab-bar").attr("title",""))},clickThis:function(){var t=a(this),i=t.parents(o),n=i.attr("lay-filter"),s=t.parent(),c=t.siblings("."+d),y="string"==typeof s.attr("lay-unselect");"javascript:;"!==t.attr("href")&&"_blank"===t.attr("target")||y||c[0]||(i.find("."+l).removeClass(l),s.addClass(l)),i.hasClass(u)&&(c.removeClass(h),c[0]&&(s["none"===c.css("display")?"addClass":"removeClass"](r+"ed"),"all"===i.attr("lay-shrink")&&s.siblings().removeClass(r+"ed"))),layui.event.call(this,e,"nav("+n+")",t)},collapse:function(){var t=a(this),i=t.find(".layui-colla-icon"),l=t.siblings(".layui-colla-content"),s=t.parents(".layui-collapse").eq(0),o=s.attr("lay-filter"),r="none"===l.css("display");if("string"==typeof s.attr("lay-accordion")){var c=s.children(".layui-colla-item").children("."+n);c.siblings(".layui-colla-title").children(".layui-colla-icon").html(""),c.removeClass(n)}l[r?"addClass":"removeClass"](n),i.html(r?"":""),layui.event.call(this,e,"collapse("+o+")",{title:t,content:l,show:r})}};s.prototype.init=function(t,e){var l=function(){return e?'[lay-filter="'+e+'"]':""}(),s={tab:function(){f.tabAuto.call({})},nav:function(){var t=200,e={},s={},p={},b=function(l,o,r){var c=a(this),f=c.find("."+d);o.hasClass(u)?l.css({top:c.position().top,height:c.children("a").outerHeight(),opacity:1}):(f.addClass(h),l.css({left:c.position().left+parseFloat(c.css("marginLeft")),top:c.position().top+c.height()-l.height()}),e[r]=setTimeout(function(){l.css({width:c.width(),opacity:1})},i.ie&&i.ie<10?0:t),clearTimeout(p[r]),"block"===f.css("display")&&clearTimeout(s[r]),s[r]=setTimeout(function(){f.addClass(n),c.find("."+y).addClass(y+"d")},300))};a(o+l).each(function(i){var l=a(this),o=a(' '),h=l.find("."+r);l.find("."+c)[0]||(l.append(o),h.on("mouseenter",function(){b.call(this,o,l,i)}).on("mouseleave",function(){l.hasClass(u)||(clearTimeout(s[i]),s[i]=setTimeout(function(){l.find("."+d).removeClass(n),l.find("."+y).removeClass(y+"d")},300))}),l.on("mouseleave",function(){clearTimeout(e[i]),p[i]=setTimeout(function(){l.hasClass(u)?o.css({height:0,top:o.position().top+o.height()/2,opacity:0}):o.css({width:0,left:o.position().left+o.width()/2,opacity:0})},t)})),h.find("a").each(function(){var t=a(this),i=(t.parent(),t.siblings("."+d));i[0]&&!t.children("."+y)[0]&&t.append(' '),t.off("click",f.clickThis).on("click",f.clickThis)})})},breadcrumb:function(){var t=".layui-breadcrumb";a(t+l).each(function(){var t=a(this),i="lay-separator",e=t.attr(i)||"/",l=t.find("a");l.next("span["+i+"]")[0]||(l.each(function(t){t!==l.length-1&&a(this).after(""+e+" ")}),t.css("visibility","visible"))})},progress:function(){var t="layui-progress";a("."+t+l).each(function(){var i=a(this),e=i.find(".layui-progress-bar"),l=e.attr("lay-percent");e.css("width",function(){return/^.+\/.+$/.test(l)?100*new Function("return "+l)()+"%":l}()),i.attr("lay-showPercent")&&setTimeout(function(){e.html(''+l+" ")},350)})},collapse:function(){var t="layui-collapse";a("."+t+l).each(function(){var t=a(this).find(".layui-colla-item");t.each(function(){var t=a(this),i=t.find(".layui-colla-title"),e=t.find(".layui-colla-content"),l="none"===e.css("display");i.find(".layui-colla-icon").remove(),i.append(''+(l?"":"")+" "),i.off("click",f.collapse).on("click",f.collapse)})})}};return s[t]?s[t]():layui.each(s,function(t,a){a()})},s.prototype.render=s.prototype.init;var p=new s,b=a(document);p.render();var v=".layui-tab-title li";b.on("click",v,f.tabClick),b.on("click",f.hideTabMore),a(window).on("resize",f.tabAuto),t(e,p)});
\ No newline at end of file
diff --git a/templates/orange/static/mobile/layui/lay/modules/flow.js b/templates/orange/static/mobile/layui/lay/modules/flow.js
new file mode 100644
index 0000000..8a80c05
--- /dev/null
+++ b/templates/orange/static/mobile/layui/lay/modules/flow.js
@@ -0,0 +1,2 @@
+/** layui-v2.4.5 MIT License By https://www.layui.com */
+ ;layui.define("jquery",function(e){"use strict";var l=layui.$,o=function(e){},t=' ';o.prototype.load=function(e){var o,i,n,r,a=this,c=0;e=e||{};var f=l(e.elem);if(f[0]){var m=l(e.scrollElem||document),u=e.mb||50,s=!("isAuto"in e)||e.isAuto,v=e.end||"没有更多了",y=e.scrollElem&&e.scrollElem!==document,d="加载更多 ",h=l('");f.find(".layui-flow-more")[0]||f.append(h);var p=function(e,t){e=l(e),h.before(e),t=0==t||null,t?h.html(v):h.find("a").html(d),i=t,o=null,n&&n()},g=function(){o=!0,h.find("a").html(t),"function"==typeof e.done&&e.done(++c,p)};if(g(),h.find("a").on("click",function(){l(this);i||o||g()}),e.isLazyimg)var n=a.lazyimg({elem:e.elem+" img",scrollElem:e.scrollElem});return s?(m.on("scroll",function(){var e=l(this),t=e.scrollTop();r&&clearTimeout(r),i||(r=setTimeout(function(){var i=y?e.height():l(window).height(),n=y?e.prop("scrollHeight"):document.documentElement.scrollHeight;n-t-i<=u&&(o||g())},100))}),a):a}},o.prototype.lazyimg=function(e){var o,t=this,i=0;e=e||{};var n=l(e.scrollElem||document),r=e.elem||"img",a=e.scrollElem&&e.scrollElem!==document,c=function(e,l){var o=n.scrollTop(),r=o+l,c=a?function(){return e.offset().top-n.offset().top+o}():e.offset().top;if(c>=o&&c<=r&&!e.attr("src")){var m=e.attr("lay-src");layui.img(m,function(){var l=t.lazyimg.elem.eq(i);e.attr("src",m).removeAttr("lay-src"),l[0]&&f(l),i++})}},f=function(e,o){var f=a?(o||n).height():l(window).height(),m=n.scrollTop(),u=m+f;if(t.lazyimg.elem=l(r),e)c(e,f);else for(var s=0;su)break}};if(f(),!o){var m;n.on("scroll",function(){var e=l(this);m&&clearTimeout(m),m=setTimeout(function(){f(null,e)},50)}),o=!0}return f},e("flow",new o)});
\ No newline at end of file
diff --git a/templates/orange/static/mobile/layui/lay/modules/form.js b/templates/orange/static/mobile/layui/lay/modules/form.js
new file mode 100644
index 0000000..daa8ce5
--- /dev/null
+++ b/templates/orange/static/mobile/layui/lay/modules/form.js
@@ -0,0 +1,2 @@
+/** layui-v2.4.5 MIT License By https://www.layui.com */
+ ;layui.define("layer",function(e){"use strict";var t=layui.$,i=layui.layer,a=layui.hint(),n=layui.device(),l="form",r=".layui-form",s="layui-this",o="layui-hide",c="layui-disabled",u=function(){this.config={verify:{required:[/[\S]+/,"必填项不能为空"],phone:[/^1\d{10}$/,"请输入正确的手机号"],email:[/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,"邮箱格式不正确"],url:[/(^#)|(^http(s*):\/\/[^\s]+\.[^\s]+)/,"链接格式不正确"],number:function(e){if(!e||isNaN(e))return"只能填写数字"},date:[/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/,"日期格式不正确"],identity:[/(^\d{15}$)|(^\d{17}(x|X|\d)$)/,"请输入正确的身份证号"]}}};u.prototype.set=function(e){var i=this;return t.extend(!0,i.config,e),i},u.prototype.verify=function(e){var i=this;return t.extend(!0,i.config.verify,e),i},u.prototype.on=function(e,t){return layui.onevent.call(this,l,e,t)},u.prototype.val=function(e,i){var a=t(r+'[lay-filter="'+e+'"]');a.each(function(e,a){var n=t(this);layui.each(i,function(e,t){var i,a=n.find('[name="'+e+'"]');a[0]&&(i=a[0].type,"checkbox"===i?a[0].checked=t:"radio"===i?a.each(function(){this.value===t&&(this.checked=!0)}):a.val(t))})}),f.render(null,e)},u.prototype.render=function(e,i){var n=this,u=t(r+function(){return i?'[lay-filter="'+i+'"]':""}()),d={select:function(){var e,i="请选择",a="layui-form-select",n="layui-select-title",r="layui-select-none",d="",f=u.find("select"),v=function(i,l){t(i.target).parent().hasClass(n)&&!l||(t("."+a).removeClass(a+"ed "+a+"up"),e&&d&&e.val(d)),e=null},y=function(i,u,f){var y,p=t(this),m=i.find("."+n),k=m.find("input"),x=i.find("dl"),g=x.children("dd"),b=this.selectedIndex;if(!u){var C=function(){var e=i.offset().top+i.outerHeight()+5-h.scrollTop(),t=x.outerHeight();b=p[0].selectedIndex,i.addClass(a+"ed"),g.removeClass(o),y=null,g.eq(b).addClass(s).siblings().removeClass(s),e+t>h.height()&&e>=t&&i.addClass(a+"up"),$()},w=function(e){i.removeClass(a+"ed "+a+"up"),k.blur(),y=null,e||T(k.val(),function(e){var i=p[0].selectedIndex;e&&(d=t(p[0].options[i]).html(),0===i&&d===k.attr("placeholder")&&(d=""),k.val(d||""))})},$=function(){var e=x.children("dd."+s);if(e[0]){var t=e.position().top,i=x.height(),a=e.height();t>i&&x.scrollTop(t+x.scrollTop()-i+a-5),t<0&&x.scrollTop(t+x.scrollTop()-5)}};m.on("click",function(e){i.hasClass(a+"ed")?w():(v(e,!0),C()),x.find("."+r).remove()}),m.find(".layui-edge").on("click",function(){k.focus()}),k.on("keyup",function(e){var t=e.keyCode;9===t&&C()}).on("keydown",function(e){var t=e.keyCode;9===t&&w();var i=function(t,a){var n,l;e.preventDefault();var r=function(){var e=x.children("dd."+s);if(x.children("dd."+o)[0]&&"next"===t){var i=x.children("dd:not(."+o+",."+c+")"),n=i.eq(0).index();if(n>=0&&n无匹配项'):x.find("."+r).remove()},"keyup"),""===t&&x.find("."+r).remove(),void $())};f&&k.on("keyup",j).on("blur",function(i){var a=p[0].selectedIndex;e=k,d=t(p[0].options[a]).html(),0===a&&d===k.attr("placeholder")&&(d=""),setTimeout(function(){T(k.val(),function(e){d||k.val("")},"blur")},200)}),g.on("click",function(){var e=t(this),a=e.attr("lay-value"),n=p.attr("lay-filter");return!e.hasClass(c)&&(e.hasClass("layui-select-tips")?k.val(""):(k.val(e.text()),e.addClass(s)),e.siblings().removeClass(s),p.val(a).removeClass("layui-form-danger"),layui.event.call(this,l,"select("+n+")",{elem:p[0],value:a,othis:i}),w(!0),!1)}),i.find("dl>dt").on("click",function(e){return!1}),t(document).off("click",v).on("click",v)}};f.each(function(e,l){var r=t(this),o=r.next("."+a),u=this.disabled,d=l.value,f=t(l.options[l.selectedIndex]),v=l.options[0];if("string"==typeof r.attr("lay-ignore"))return r.show();var h="string"==typeof r.attr("lay-search"),p=v?v.value?i:v.innerHTML||i:i,m=t(['','
',' ','
','
',function(e){var t=[];return layui.each(e,function(e,a){0!==e||a.value?"optgroup"===a.tagName.toLowerCase()?t.push(""+a.label+" "):t.push(''+a.innerHTML+" "):t.push(''+(a.innerHTML||i)+" ")}),0===t.length&&t.push('没有选项 '),t.join("")}(r.find("*"))+" ","
"].join(""));o[0]&&o.remove(),r.after(m),y.call(this,m,u,h)})},checkbox:function(){var e={checkbox:["layui-form-checkbox","layui-form-checked","checkbox"],_switch:["layui-form-switch","layui-form-onswitch","switch"]},i=u.find("input[type=checkbox]"),a=function(e,i){var a=t(this);e.on("click",function(){var t=a.attr("lay-filter"),n=(a.attr("lay-text")||"").split("|");a[0].disabled||(a[0].checked?(a[0].checked=!1,e.removeClass(i[1]).find("em").text(n[1])):(a[0].checked=!0,e.addClass(i[1]).find("em").text(n[0])),layui.event.call(a[0],l,i[2]+"("+t+")",{elem:a[0],value:a[0].value,othis:e}))})};i.each(function(i,n){var l=t(this),r=l.attr("lay-skin"),s=(l.attr("lay-text")||"").split("|"),o=this.disabled;"switch"===r&&(r="_"+r);var u=e[r]||e.checkbox;if("string"==typeof l.attr("lay-ignore"))return l.show();var d=l.next("."+u[0]),f=t(['",function(){var e=n.title.replace(/\s/g,""),t={checkbox:[e?""+n.title+" ":"",' '].join(""),_switch:""+((n.checked?s[0]:s[1])||"")+" "};return t[r]||t.checkbox}(),"
"].join(""));d[0]&&d.remove(),l.after(f),a.call(this,f,u)})},radio:function(){var e="layui-form-radio",i=["",""],a=u.find("input[type=radio]"),n=function(a){var n=t(this),s="layui-anim-scaleSpring";a.on("click",function(){var o=n[0].name,c=n.parents(r),u=n.attr("lay-filter"),d=c.find("input[name="+o.replace(/(\.|#|\[|\])/g,"\\$1")+"]");n[0].disabled||(layui.each(d,function(){var a=t(this).next("."+e);this.checked=!1,a.removeClass(e+"ed"),a.find(".layui-icon").removeClass(s).html(i[1])}),n[0].checked=!0,a.addClass(e+"ed"),a.find(".layui-icon").addClass(s).html(i[0]),layui.event.call(n[0],l,"radio("+u+")",{elem:n[0],value:n[0].value,othis:a}))})};a.each(function(a,l){var r=t(this),s=r.next("."+e),o=this.disabled;if("string"==typeof r.attr("lay-ignore"))return r.show();s[0]&&s.remove();var u=t(['','
'+i[l.checked?0:1]+" ","
"+function(){var e=l.title||"";return"string"==typeof r.next().attr("lay-radio")&&(e=r.next().html(),r.next().remove()),e}()+"
","
"].join(""));r.after(u),n.call(this,u)})}};return e?d[e]?d[e]():a.error("不支持的"+e+"表单渲染"):layui.each(d,function(e,t){t()}),n};var d=function(){var e=t(this),a=f.config.verify,s=null,o="layui-form-danger",c={},u=e.parents(r),d=u.find("*[lay-verify]"),v=e.parents("form")[0],h=u.find("input,select,textarea"),y=e.attr("lay-filter");if(layui.each(d,function(e,l){var r=t(this),c=r.attr("lay-verify").split("|"),u=r.attr("lay-verType"),d=r.val();if(r.removeClass(o),layui.each(c,function(e,t){var c,f="",v="function"==typeof a[t];if(a[t]){var c=v?f=a[t](d,l):!a[t][0].test(d);if(f=f||a[t][1],c)return"tips"===u?i.tips(f,function(){return"string"==typeof r.attr("lay-ignore")||"select"!==l.tagName.toLowerCase()&&!/^checkbox|radio$/.test(l.type)?r:r.next()}(),{tips:1}):"alert"===u?i.alert(f,{title:"提示",shadeClose:!0}):i.msg(f,{icon:5,shift:6}),n.android||n.ios||l.focus(),r.addClass(o),s=!0}}),s)return s}),s)return!1;var p={};return layui.each(h,function(e,t){if(t.name=(t.name||"").replace(/^\s*|\s*&/,""),t.name){if(/^.*\[\]$/.test(t.name)){var i=t.name.match(/^(.*)\[\]$/g)[0];p[i]=0|p[i],t.name=t.name.replace(/^(.*)\[\]$/,"$1["+p[i]++ +"]")}/^checkbox|radio$/.test(t.type)&&!t.checked||(c[t.name]=t.value)}}),layui.event.call(this,l,"submit("+y+")",{elem:this,form:v,field:c})},f=new u,v=t(document),h=t(window);f.render(),v.on("reset",r,function(){var e=t(this).attr("lay-filter");setTimeout(function(){f.render(null,e)},50)}),v.on("submit",r,d).on("click","*[lay-submit]",d),e(l,f)});
\ No newline at end of file
diff --git a/templates/orange/static/mobile/layui/lay/modules/jquery.js b/templates/orange/static/mobile/layui/lay/modules/jquery.js
new file mode 100644
index 0000000..242696a
--- /dev/null
+++ b/templates/orange/static/mobile/layui/lay/modules/jquery.js
@@ -0,0 +1,5 @@
+/** layui-v2.4.5 MIT License By https://www.layui.com */
+ ;!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=!!e&&"length"in e&&e.length,n=pe.type(e);return"function"!==n&&!pe.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e,t,n){if(pe.isFunction(t))return pe.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return pe.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(Ce.test(t))return pe.filter(t,e,n);t=pe.filter(t,e)}return pe.grep(e,function(e){return pe.inArray(e,t)>-1!==n})}function i(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function o(e){var t={};return pe.each(e.match(De)||[],function(e,n){t[n]=!0}),t}function a(){re.addEventListener?(re.removeEventListener("DOMContentLoaded",s),e.removeEventListener("load",s)):(re.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}function s(){(re.addEventListener||"load"===e.event.type||"complete"===re.readyState)&&(a(),pe.ready())}function u(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(_e,"-$1").toLowerCase();if(n=e.getAttribute(r),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:qe.test(n)?pe.parseJSON(n):n)}catch(i){}pe.data(e,t,n)}else n=void 0}return n}function l(e){var t;for(t in e)if(("data"!==t||!pe.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function c(e,t,n,r){if(He(e)){var i,o,a=pe.expando,s=e.nodeType,u=s?pe.cache:e,l=s?e[a]:e[a]&&a;if(l&&u[l]&&(r||u[l].data)||void 0!==n||"string"!=typeof t)return l||(l=s?e[a]=ne.pop()||pe.guid++:a),u[l]||(u[l]=s?{}:{toJSON:pe.noop}),"object"!=typeof t&&"function"!=typeof t||(r?u[l]=pe.extend(u[l],t):u[l].data=pe.extend(u[l].data,t)),o=u[l],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[pe.camelCase(t)]=n),"string"==typeof t?(i=o[t],null==i&&(i=o[pe.camelCase(t)])):i=o,i}}function f(e,t,n){if(He(e)){var r,i,o=e.nodeType,a=o?pe.cache:e,s=o?e[pe.expando]:pe.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){pe.isArray(t)?t=t.concat(pe.map(t,pe.camelCase)):t in r?t=[t]:(t=pe.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;for(;i--;)delete r[t[i]];if(n?!l(r):!pe.isEmptyObject(r))return}(n||(delete a[s].data,l(a[s])))&&(o?pe.cleanData([e],!0):fe.deleteExpando||a!=a.window?delete a[s]:a[s]=void 0)}}}function d(e,t,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return pe.css(e,t,"")},u=s(),l=n&&n[3]||(pe.cssNumber[t]?"":"px"),c=(pe.cssNumber[t]||"px"!==l&&+u)&&Me.exec(pe.css(e,t));if(c&&c[3]!==l){l=l||c[3],n=n||[],c=+u||1;do o=o||".5",c/=o,pe.style(e,t,c+l);while(o!==(o=s()/u)&&1!==o&&--a)}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function p(e){var t=ze.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function h(e,t){var n,r,i=0,o="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||pe.nodeName(r,t)?o.push(r):pe.merge(o,h(r,t));return void 0===t||t&&pe.nodeName(e,t)?pe.merge([e],o):o}function g(e,t){for(var n,r=0;null!=(n=e[r]);r++)pe._data(n,"globalEval",!t||pe._data(t[r],"globalEval"))}function m(e){Be.test(e.type)&&(e.defaultChecked=e.checked)}function y(e,t,n,r,i){for(var o,a,s,u,l,c,f,d=e.length,y=p(t),v=[],x=0;x"!==f[1]||Ve.test(a)?0:u:u.firstChild,o=a&&a.childNodes.length;o--;)pe.nodeName(c=a.childNodes[o],"tbody")&&!c.childNodes.length&&a.removeChild(c);for(pe.merge(v,u.childNodes),u.textContent="";u.firstChild;)u.removeChild(u.firstChild);u=y.lastChild}else v.push(t.createTextNode(a));for(u&&y.removeChild(u),fe.appendChecked||pe.grep(h(v,"input"),m),x=0;a=v[x++];)if(r&&pe.inArray(a,r)>-1)i&&i.push(a);else if(s=pe.contains(a.ownerDocument,a),u=h(y.appendChild(a),"script"),s&&g(u),n)for(o=0;a=u[o++];)Ie.test(a.type||"")&&n.push(a);return u=null,y}function v(){return!0}function x(){return!1}function b(){try{return re.activeElement}catch(e){}}function w(e,t,n,r,i,o){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)w(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=x;else if(!i)return e;return 1===o&&(a=i,i=function(e){return pe().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=pe.guid++)),e.each(function(){pe.event.add(this,t,i,r,n)})}function T(e,t){return pe.nodeName(e,"table")&&pe.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function C(e){return e.type=(null!==pe.find.attr(e,"type"))+"/"+e.type,e}function E(e){var t=it.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function N(e,t){if(1===t.nodeType&&pe.hasData(e)){var n,r,i,o=pe._data(e),a=pe._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;r1&&"string"==typeof p&&!fe.checkClone&&rt.test(p))return e.each(function(i){var o=e.eq(i);g&&(t[0]=p.call(this,i,o.html())),S(o,t,n,r)});if(f&&(l=y(t,e[0].ownerDocument,!1,e,r),i=l.firstChild,1===l.childNodes.length&&(l=i),i||r)){for(s=pe.map(h(l,"script"),C),a=s.length;c ")).appendTo(t.documentElement),t=(ut[0].contentWindow||ut[0].contentDocument).document,t.write(),t.close(),n=D(e,t),ut.detach()),lt[e]=n),n}function L(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function H(e){if(e in Et)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=Ct.length;n--;)if(e=Ct[n]+t,e in Et)return e}function q(e,t){for(var n,r,i,o=[],a=0,s=e.length;a=0&&n=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==pe.type(e)||e.nodeType||pe.isWindow(e))return!1;try{if(e.constructor&&!ce.call(e,"constructor")&&!ce.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(!fe.ownFirst)for(t in e)return ce.call(e,t);for(t in e);return void 0===t||ce.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ue[le.call(e)]||"object":typeof e},globalEval:function(t){t&&pe.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(ge,"ms-").replace(me,ye)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var r,i=0;if(n(e))for(r=e.length;iT.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[P]=!0,e}function i(e){var t=H.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)T.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||V)-(~e.sourceIndex||V);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function c(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function f(){}function d(e){for(var t=0,n=e.length,r="";t1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function g(e,n,r){for(var i=0,o=n.length;i-1&&(r[l]=!(a[l]=f))}}else x=m(x===a?x.splice(h,x.length):x),o?o(null,a,x,u):Q.apply(a,x)})}function v(e){for(var t,n,r,i=e.length,o=T.relative[e[0].type],a=o||T.relative[" "],s=o?1:0,u=p(function(e){return e===t},a,!0),l=p(function(e){return ee(t,e)>-1},a,!0),c=[function(e,n,r){var i=!o&&(r||n!==A)||((t=n).nodeType?u(e,n,r):l(e,n,r));return t=null,i}];s1&&h(c),s>1&&d(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(se,"$1"),n,s0,o=e.length>0,a=function(r,a,s,u,l){var c,f,d,p=0,h="0",g=r&&[],y=[],v=A,x=r||o&&T.find.TAG("*",l),b=W+=null==v?1:Math.random()||.1,w=x.length;for(l&&(A=a===H||a||l);h!==w&&null!=(c=x[h]);h++){if(o&&c){for(f=0,a||c.ownerDocument===H||(L(c),s=!_);d=e[f++];)if(d(c,a||H,s)){u.push(c);break}l&&(W=b)}i&&((c=!d&&c)&&p--,r&&g.push(c))}if(p+=h,i&&h!==p){for(f=0;d=n[f++];)d(g,y,a,s);if(r){if(p>0)for(;h--;)g[h]||y[h]||(y[h]=G.call(u));y=m(y)}Q.apply(u,y),l&&!r&&y.length>0&&p+n.length>1&&t.uniqueSort(u)}return l&&(W=b,A=v),g};return i?r(a):a}var b,w,T,C,E,N,k,S,A,D,j,L,H,q,_,F,M,O,R,P="sizzle"+1*new Date,B=e.document,W=0,I=0,$=n(),z=n(),X=n(),U=function(e,t){return e===t&&(j=!0),0},V=1<<31,Y={}.hasOwnProperty,J=[],G=J.pop,K=J.push,Q=J.push,Z=J.slice,ee=function(e,t){for(var n=0,r=e.length;n+~]|"+ne+")"+ne+"*"),ce=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),fe=new RegExp(oe),de=new RegExp("^"+re+"$"),pe={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re+"|[*])"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+oe),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},he=/^(?:input|select|textarea|button)$/i,ge=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,xe=/'|\\/g,be=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),we=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},Te=function(){L()};try{Q.apply(J=Z.call(B.childNodes),B.childNodes),J[B.childNodes.length].nodeType}catch(Ce){Q={apply:J.length?function(e,t){K.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}w=t.support={},E=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},L=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:B;return r!==H&&9===r.nodeType&&r.documentElement?(H=r,q=H.documentElement,_=!E(H),(n=H.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Te,!1):n.attachEvent&&n.attachEvent("onunload",Te)),w.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=i(function(e){return e.appendChild(H.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=me.test(H.getElementsByClassName),w.getById=i(function(e){return q.appendChild(e).id=P,!H.getElementsByName||!H.getElementsByName(P).length}),w.getById?(T.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&_){var n=t.getElementById(e);return n?[n]:[]}},T.filter.ID=function(e){var t=e.replace(be,we);return function(e){return e.getAttribute("id")===t}}):(delete T.find.ID,T.filter.ID=function(e){var t=e.replace(be,we);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),T.find.TAG=w.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},T.find.CLASS=w.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&_)return t.getElementsByClassName(e)},M=[],F=[],(w.qsa=me.test(H.querySelectorAll))&&(i(function(e){q.appendChild(e).innerHTML=" ",e.querySelectorAll("[msallowcapture^='']").length&&F.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||F.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+P+"-]").length||F.push("~="),e.querySelectorAll(":checked").length||F.push(":checked"),e.querySelectorAll("a#"+P+"+*").length||F.push(".#.+[+~]")}),i(function(e){var t=H.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&F.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||F.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),F.push(",.*:")})),(w.matchesSelector=me.test(O=q.matches||q.webkitMatchesSelector||q.mozMatchesSelector||q.oMatchesSelector||q.msMatchesSelector))&&i(function(e){w.disconnectedMatch=O.call(e,"div"),O.call(e,"[s!='']:x"),M.push("!=",oe)}),F=F.length&&new RegExp(F.join("|")),M=M.length&&new RegExp(M.join("|")),t=me.test(q.compareDocumentPosition),R=t||me.test(q.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},U=t?function(e,t){if(e===t)return j=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!w.sortDetached&&t.compareDocumentPosition(e)===n?e===H||e.ownerDocument===B&&R(B,e)?-1:t===H||t.ownerDocument===B&&R(B,t)?1:D?ee(D,e)-ee(D,t):0:4&n?-1:1)}:function(e,t){if(e===t)return j=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,s=[e],u=[t];if(!i||!o)return e===H?-1:t===H?1:i?-1:o?1:D?ee(D,e)-ee(D,t):0;if(i===o)return a(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?a(s[r],u[r]):s[r]===B?-1:u[r]===B?1:0},H):H},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==H&&L(e),n=n.replace(ce,"='$1']"),w.matchesSelector&&_&&!X[n+" "]&&(!M||!M.test(n))&&(!F||!F.test(n)))try{var r=O.call(e,n);if(r||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return t(n,H,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==H&&L(e),R(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==H&&L(e);var n=T.attrHandle[t.toLowerCase()],r=n&&Y.call(T.attrHandle,t.toLowerCase())?n(e,t,!_):void 0;return void 0!==r?r:w.attributes||!_?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(j=!w.detectDuplicates,D=!w.sortStable&&e.slice(0),e.sort(U),j){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return D=null,e},C=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=C(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=C(t);return n},T=t.selectors={cacheLength:50,createPseudo:r,match:pe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(be,we),e[3]=(e[3]||e[4]||e[5]||"").replace(be,we),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return pe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&fe.test(n)&&(t=N(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(be,we).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=$[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&$(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(ae," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,d,p,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!u&&!s,x=!1;if(m){if(o){for(;g;){for(d=t;d=d[g];)if(s?d.nodeName.toLowerCase()===y:1===d.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){for(d=m,f=d[P]||(d[P]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),
+l=c[e]||[],p=l[0]===W&&l[1],x=p&&l[2],d=p&&m.childNodes[p];d=++p&&d&&d[g]||(x=p=0)||h.pop();)if(1===d.nodeType&&++x&&d===t){c[e]=[W,p,x];break}}else if(v&&(d=t,f=d[P]||(d[P]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),l=c[e]||[],p=l[0]===W&&l[1],x=p),x===!1)for(;(d=++p&&d&&d[g]||(x=p=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==y:1!==d.nodeType)||!++x||(v&&(f=d[P]||(d[P]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),c[e]=[W,x]),d!==t)););return x-=i,x===r||x%r===0&&x/r>=0}}},PSEUDO:function(e,n){var i,o=T.pseudos[e]||T.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[P]?o(n):o.length>1?(i=[e,e,"",n],T.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)r=ee(e,i[a]),e[r]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=k(e.replace(se,"$1"));return i[P]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(be,we),function(t){return(t.textContent||t.innerText||C(t)).indexOf(e)>-1}}),lang:r(function(e){return de.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(be,we).toLowerCase(),function(t){var n;do if(n=_?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===q},focus:function(e){return e===H.activeElement&&(!H.hasFocus||H.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!T.pseudos.empty(e)},header:function(e){return ge.test(e.nodeName)},input:function(e){return he.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[n<0?n+t:n]}),even:l(function(e,t){for(var n=0;n=0;)e.push(r);return e}),gt:l(function(e,t,n){for(var r=n<0?n+t:n;++r2&&"ID"===(a=o[0]).type&&w.getById&&9===t.nodeType&&_&&T.relative[o[1].type]){if(t=(T.find.ID(a.matches[0].replace(be,we),t)||[])[0],!t)return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=pe.needsContext.test(e)?0:o.length;i--&&(a=o[i],!T.relative[s=a.type]);)if((u=T.find[s])&&(r=u(a.matches[0].replace(be,we),ve.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&d(o),!e)return Q.apply(n,r),n;break}}return(l||k(e,f))(r,t,!_,n,!t||ve.test(e)&&c(t.parentNode)||t),n},w.sortStable=P.split("").sort(U).join("")===P,w.detectDuplicates=!!j,L(),w.sortDetached=i(function(e){return 1&e.compareDocumentPosition(H.createElement("div"))}),i(function(e){return e.innerHTML=" ","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&i(function(e){return e.innerHTML=" ",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(te,function(e,t,n){var r;if(!n)return e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);pe.find=ve,pe.expr=ve.selectors,pe.expr[":"]=pe.expr.pseudos,pe.uniqueSort=pe.unique=ve.uniqueSort,pe.text=ve.getText,pe.isXMLDoc=ve.isXML,pe.contains=ve.contains;var xe=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&pe(e).is(n))break;r.push(e)}return r},be=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},we=pe.expr.match.needsContext,Te=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Ce=/^.[^:#\[\.,]*$/;pe.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?pe.find.matchesSelector(r,e)?[r]:[]:pe.find.matches(e,pe.grep(t,function(e){return 1===e.nodeType}))},pe.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(pe(e).filter(function(){for(t=0;t1?pe.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(r(this,e||[],!1))},not:function(e){return this.pushStack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&we.test(e)?pe(e):e||[],!1).length}});var Ee,Ne=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ke=pe.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||Ee,"string"==typeof e){if(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:Ne.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof pe?t[0]:t,pe.merge(this,pe.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:re,!0)),Te.test(r[1])&&pe.isPlainObject(t))for(r in t)pe.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}if(i=re.getElementById(r[2]),i&&i.parentNode){if(i.id!==r[2])return Ee.find(e);this.length=1,this[0]=i}return this.context=re,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):pe.isFunction(e)?"undefined"!=typeof n.ready?n.ready(e):e(pe):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),pe.makeArray(e,this))};ke.prototype=pe.fn,Ee=pe(re);var Se=/^(?:parents|prev(?:Until|All))/,Ae={children:!0,contents:!0,next:!0,prev:!0};pe.fn.extend({has:function(e){var t,n=pe(e,this),r=n.length;return this.filter(function(){for(t=0;t-1:1===n.nodeType&&pe.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?pe.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?pe.inArray(this[0],pe(e)):pe.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(pe.uniqueSort(pe.merge(this.get(),pe(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),pe.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return xe(e,"parentNode")},parentsUntil:function(e,t,n){return xe(e,"parentNode",n)},next:function(e){return i(e,"nextSibling")},prev:function(e){return i(e,"previousSibling")},nextAll:function(e){return xe(e,"nextSibling")},prevAll:function(e){return xe(e,"previousSibling")},nextUntil:function(e,t,n){return xe(e,"nextSibling",n)},prevUntil:function(e,t,n){return xe(e,"previousSibling",n)},siblings:function(e){return be((e.parentNode||{}).firstChild,e)},children:function(e){return be(e.firstChild)},contents:function(e){return pe.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:pe.merge([],e.childNodes)}},function(e,t){pe.fn[e]=function(n,r){var i=pe.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=pe.filter(r,i)),this.length>1&&(Ae[e]||(i=pe.uniqueSort(i)),Se.test(e)&&(i=i.reverse())),this.pushStack(i)}});var De=/\S+/g;pe.Callbacks=function(e){e="string"==typeof e?o(e):pe.extend({},e);var t,n,r,i,a=[],s=[],u=-1,l=function(){for(i=e.once,r=t=!0;s.length;u=-1)for(n=s.shift();++u-1;)a.splice(n,1),n<=u&&u--}),this},has:function(e){return e?pe.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=!0,n||c.disable(),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},pe.extend({Deferred:function(e){var t=[["resolve","done",pe.Callbacks("once memory"),"resolved"],["reject","fail",pe.Callbacks("once memory"),"rejected"],["notify","progress",pe.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return pe.Deferred(function(n){pe.each(t,function(t,o){var a=pe.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&pe.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?pe.extend(e,r):r}},i={};return r.pipe=r.then,pe.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=ie.call(arguments),a=o.length,s=1!==a||e&&pe.isFunction(e.promise)?a:0,u=1===s?e:pe.Deferred(),l=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?ie.call(arguments):i,r===t?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);i0||(je.resolveWith(re,[pe]),pe.fn.triggerHandler&&(pe(re).triggerHandler("ready"),pe(re).off("ready"))))}}),pe.ready.promise=function(t){if(!je)if(je=pe.Deferred(),"complete"===re.readyState||"loading"!==re.readyState&&!re.documentElement.doScroll)e.setTimeout(pe.ready);else if(re.addEventListener)re.addEventListener("DOMContentLoaded",s),e.addEventListener("load",s);else{re.attachEvent("onreadystatechange",s),e.attachEvent("onload",s);var n=!1;try{n=null==e.frameElement&&re.documentElement}catch(r){}n&&n.doScroll&&!function i(){if(!pe.isReady){try{n.doScroll("left")}catch(t){return e.setTimeout(i,50)}a(),pe.ready()}}()}return je.promise(t)},pe.ready.promise();var Le;for(Le in pe(fe))break;fe.ownFirst="0"===Le,fe.inlineBlockNeedsLayout=!1,pe(function(){var e,t,n,r;n=re.getElementsByTagName("body")[0],n&&n.style&&(t=re.createElement("div"),r=re.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",fe.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(r))}),function(){var e=re.createElement("div");fe.deleteExpando=!0;try{delete e.test}catch(t){fe.deleteExpando=!1}e=null}();var He=function(e){var t=pe.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||t!==!0&&e.getAttribute("classid")===t)},qe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,_e=/([A-Z])/g;pe.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?pe.cache[e[pe.expando]]:e[pe.expando],!!e&&!l(e)},data:function(e,t,n){return c(e,t,n)},removeData:function(e,t){return f(e,t)},_data:function(e,t,n){return c(e,t,n,!0)},_removeData:function(e,t){return f(e,t,!0)}}),pe.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=pe.data(o),1===o.nodeType&&!pe._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=pe.camelCase(r.slice(5)),u(o,r,i[r])));pe._data(o,"parsedAttrs",!0)}return i}return"object"==typeof e?this.each(function(){pe.data(this,e)}):arguments.length>1?this.each(function(){pe.data(this,e,t)}):o?u(o,e,pe.data(o,e)):void 0},removeData:function(e){return this.each(function(){pe.removeData(this,e)})}}),pe.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=pe._data(e,t),n&&(!r||pe.isArray(n)?r=pe._data(e,t,pe.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=pe.queue(e,t),r=n.length,i=n.shift(),o=pe._queueHooks(e,t),a=function(){pe.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return pe._data(e,n)||pe._data(e,n,{empty:pe.Callbacks("once memory").add(function(){pe._removeData(e,t+"queue"),pe._removeData(e,n)})})}}),pe.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length a ",fe.leadingWhitespace=3===e.firstChild.nodeType,fe.tbody=!e.getElementsByTagName("tbody").length,fe.htmlSerialize=!!e.getElementsByTagName("link").length,fe.html5Clone="<:nav>"!==re.createElement("nav").cloneNode(!0).outerHTML,n.type="checkbox",n.checked=!0,t.appendChild(n),fe.appendChecked=n.checked,e.innerHTML="",fe.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,t.appendChild(e),n=re.createElement("input"),n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),fe.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,fe.noCloneEvent=!!e.addEventListener,e[pe.expando]=1,fe.attributes=!e.getAttribute(pe.expando)}();var Xe={option:[1,""," "],legend:[1,""," "],area:[1,""," "],param:[1,""," "],thead:[1,""],tr:[2,""],col:[2,""],td:[3,""],_default:fe.htmlSerialize?[0,"",""]:[1,"X","
"]};Xe.optgroup=Xe.option,Xe.tbody=Xe.tfoot=Xe.colgroup=Xe.caption=Xe.thead,Xe.th=Xe.td;var Ue=/<|?\w+;/,Ve=/-1&&(h=p.split("."),p=h.shift(),h.sort()),a=p.indexOf(":")<0&&"on"+p,t=t[pe.expando]?t:new pe.Event(p,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:pe.makeArray(n,[t]),l=pe.event.special[p]||{},i||!l.trigger||l.trigger.apply(r,n)!==!1)){if(!i&&!l.noBubble&&!pe.isWindow(r)){for(u=l.delegateType||p,Ke.test(u+p)||(s=s.parentNode);s;s=s.parentNode)d.push(s),c=s;c===(r.ownerDocument||re)&&d.push(c.defaultView||c.parentWindow||e)}for(f=0;(s=d[f++])&&!t.isPropagationStopped();)t.type=f>1?u:l.bindType||p,o=(pe._data(s,"events")||{})[t.type]&&pe._data(s,"handle"),o&&o.apply(s,n),o=a&&s[a],o&&o.apply&&He(s)&&(t.result=o.apply(s,n),t.result===!1&&t.preventDefault());if(t.type=p,!i&&!t.isDefaultPrevented()&&(!l._default||l._default.apply(d.pop(),n)===!1)&&He(r)&&a&&r[p]&&!pe.isWindow(r)){c=r[a],c&&(r[a]=null),pe.event.triggered=p;try{r[p]()}catch(g){}pe.event.triggered=void 0,c&&(r[a]=c)}return t.result}},dispatch:function(e){e=pe.event.fix(e);var t,n,r,i,o,a=[],s=ie.call(arguments),u=(pe._data(this,"events")||{})[e.type]||[],l=pe.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){for(a=pe.event.handlers.call(this,e,u),t=0;(i=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,r=((pe.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s),void 0!==r&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(r=[],n=0;n-1:pe.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&a.push({elem:u,handlers:r})}return s ]","i"),tt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,nt=/
+
+
+
+```
diff --git a/templates/orange/static/wangEditor/docs/usage/01-getstart/02-use-module.md b/templates/orange/static/wangEditor/docs/usage/01-getstart/02-use-module.md
new file mode 100644
index 0000000..0356a68
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/01-getstart/02-use-module.md
@@ -0,0 +1,49 @@
+# 使用模块定义
+
+wangEditor 除了直接使用`
+
+
+```
+
+## CommonJS
+
+可以使用`npm install wangeditor`安装(注意,这里`wangeditor`全是**小写字母**)
+
+```javascript
+// 引用
+var E = require('wangeditor') // 使用 npm 安装
+var E = require('/wangEditor.min.js') // 使用下载的源码
+
+// 创建编辑器
+var editor = new E('#editor')
+editor.create()
+```
diff --git a/templates/orange/static/wangEditor/docs/usage/01-getstart/03-sperate.md b/templates/orange/static/wangEditor/docs/usage/01-getstart/03-sperate.md
new file mode 100644
index 0000000..0fcd276
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/01-getstart/03-sperate.md
@@ -0,0 +1,48 @@
+# 菜单和编辑区域分离
+
+如果你想要像 知乎专栏、简书、石墨、网易云笔记 这些编辑页面一样,将编辑区域和菜单分离,也可以实现。
+
+这样,菜单和编辑器区域就是使用者可自己控制的元素,可自定义样式。例如:将菜单`fixed`、编辑器区域高度自动增加等
+
+## 代码示例
+
+```html
+
+
+
+
+ wangEditor 菜单和编辑器区域分离
+
+
+
+
+
+ 中间隔离带
+
+
+
+
+
+
+```
+
+## 显示效果
+
+从上面代码可以看出,菜单和编辑区域其实就是两个单独的``,位置、尺寸都可以随便定义。
+
+
+
diff --git a/templates/orange/static/wangEditor/docs/usage/01-getstart/04-multi.md b/templates/orange/static/wangEditor/docs/usage/01-getstart/04-multi.md
new file mode 100644
index 0000000..aee3540
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/01-getstart/04-multi.md
@@ -0,0 +1,50 @@
+# 同一个页面创建多个编辑器
+
+wangEditor 支持一个页面创建多个编辑器
+
+## 代码示例
+
+```html
+
+
+
+
+
wangEditor 一个页面多个编辑器
+
+
+
+
+
+
中间隔离带
+
+
+
+
+
+
+
+
+
+```
+
diff --git a/templates/orange/static/wangEditor/docs/usage/02-content/01-set-content.md b/templates/orange/static/wangEditor/docs/usage/02-content/01-set-content.md
new file mode 100644
index 0000000..7631f6f
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/02-content/01-set-content.md
@@ -0,0 +1,46 @@
+# 设置内容
+
+以下方式中,如果条件允许,尽量使用第一种方式,效率最高。
+
+## html 初始化内容
+
+直接将内容写到要创建编辑器的`
`标签中
+
+```html
+
+
+
+
+```
+
+## js 设置内容
+
+创建编辑器之后,使用`editor.txt.html(...)`设置编辑器内容
+
+```html
+
+
+
+
+
+```
+
+## 追加内容
+
+创建编辑器之后,可使用`editor.txt.append('
追加的内容
')`继续追加内容。
+
+## 清空内容
+
+可使用`editor.txt.clear()`清空编辑器内容
diff --git a/templates/orange/static/wangEditor/docs/usage/02-content/02-get-content.md b/templates/orange/static/wangEditor/docs/usage/02-content/02-get-content.md
new file mode 100644
index 0000000..e21c277
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/02-content/02-get-content.md
@@ -0,0 +1,80 @@
+# 读取内容
+
+可以`html`和`text`的方式读取编辑器的内容。
+
+```html
+
+
获取html
+
获取text
+
+
+
+```
+
+需要注意的是:**从编辑器中获取的 html 代码是不包含任何样式的纯 html**,如果显示的时候需要对其中的`
` `` ``等标签进行自定义样式(这样既可实现多皮肤功能),下面提供了编辑器中使用的样式供参考
+
+```css
+/* table 样式 */
+table {
+ border-top: 1px solid #ccc;
+ border-left: 1px solid #ccc;
+}
+table td,
+table th {
+ border-bottom: 1px solid #ccc;
+ border-right: 1px solid #ccc;
+ padding: 3px 5px;
+}
+table th {
+ border-bottom: 2px solid #ccc;
+ text-align: center;
+}
+
+/* blockquote 样式 */
+blockquote {
+ display: block;
+ border-left: 8px solid #d0e5f2;
+ padding: 5px 10px;
+ margin: 10px 0;
+ line-height: 1.4;
+ font-size: 100%;
+ background-color: #f1f1f1;
+}
+
+/* code 样式 */
+code {
+ display: inline-block;
+ *display: inline;
+ *zoom: 1;
+ background-color: #f1f1f1;
+ border-radius: 3px;
+ padding: 3px 5px;
+ margin: 0 3px;
+}
+pre code {
+ display: block;
+}
+
+/* ul ol 样式 */
+ul, ol {
+ margin: 10px 0 10px 20px;
+}
+```
+
diff --git a/templates/orange/static/wangEditor/docs/usage/02-content/03-use-textarea.md b/templates/orange/static/wangEditor/docs/usage/02-content/03-use-textarea.md
new file mode 100644
index 0000000..1707e13
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/02-content/03-use-textarea.md
@@ -0,0 +1,25 @@
+# 使用 textarea
+
+wangEditor 从`v3`版本开始不支持 textarea ,但是可以通过`onchange`来实现 textarea 中提交富文本内容。
+
+```html
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+
+
+
+
+```
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/docs/usage/02-content/04-get-json.md b/templates/orange/static/wangEditor/docs/usage/02-content/04-get-json.md
new file mode 100644
index 0000000..d623ac4
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/02-content/04-get-json.md
@@ -0,0 +1,82 @@
+# 获取 JSON 格式的内容
+
+可以通过`editor.txt.getJSON`获取 JSON 格式的编辑器的内容,`v3.0.14`开始支持,示例如下
+
+```html
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+getJSON
+
+
+
+```
+
+
+-----
+
+如果编辑器区域的 html 内容是如下:
+
+```html
+欢迎使用 wangEditor 富文本编辑器
+
+```
+
+那么获取的 JSON 格式就如下:
+
+```json
+[
+ {
+ "tag": "p",
+ "attrs": [],
+ "children": [
+ "欢迎使用 ",
+ {
+ "tag": "b",
+ "attrs": [],
+ "children": [
+ "wangEditor"
+ ]
+ },
+ " 富文本编辑器"
+ ]
+ },
+ {
+ "tag": "img",
+ "attrs": [
+ {
+ "name": "src",
+ "value": "https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo_top_ca79a146.png"
+ },
+ {
+ "name": "style",
+ "value": "max-width:100%;"
+ }
+ ],
+ "children": []
+ },
+ {
+ "tag": "p",
+ "attrs": [],
+ "children": [
+ {
+ "tag": "br",
+ "attrs": [],
+ "children": []
+ }
+ ]
+ }
+]
+```
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/docs/usage/03-config/01-menu.md b/templates/orange/static/wangEditor/docs/usage/03-config/01-menu.md
new file mode 100644
index 0000000..bce6ba7
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/03-config/01-menu.md
@@ -0,0 +1,52 @@
+# 自定义菜单
+
+编辑器创建之前,可使用`editor.customConfig.menus`定义显示哪些菜单和菜单的顺序。**注意:v3 版本的菜单不支持换行折叠了(因为换行之后菜单栏是在太难看),如果菜单栏宽度不够,建议精简菜单项。**
+
+## 代码示例
+
+```html
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+
+
+```
+
+## 默认菜单
+
+编辑默认的菜单配置如下
+
+```javascript
+[
+ 'head', // 标题
+ 'bold', // 粗体
+ 'italic', // 斜体
+ 'underline', // 下划线
+ 'strikeThrough', // 删除线
+ 'foreColor', // 文字颜色
+ 'backColor', // 背景颜色
+ 'link', // 插入链接
+ 'list', // 列表
+ 'justify', // 对齐方式
+ 'quote', // 引用
+ 'emoticon', // 表情
+ 'image', // 插入图片
+ 'table', // 表格
+ 'video', // 插入视频
+ 'code', // 插入代码
+ 'undo', // 撤销
+ 'redo' // 重复
+]
+```
diff --git a/templates/orange/static/wangEditor/docs/usage/03-config/02-debug.md b/templates/orange/static/wangEditor/docs/usage/03-config/02-debug.md
new file mode 100644
index 0000000..e94d7a4
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/03-config/02-debug.md
@@ -0,0 +1,21 @@
+# 定义 debug 模式
+
+可通过`editor.customConfig.debug = true`配置`debug`模式,`debug`模式下,有 JS 错误会以`throw Error`方式提示出来。默认值为`false`,即不会抛出异常。
+
+但是,在实际开发中不建议直接定义为`true`或者`false`,可通过 url 参数进行干预,示例如下:
+
+```html
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+
+
+```
+
diff --git a/templates/orange/static/wangEditor/docs/usage/03-config/03-onchange.md b/templates/orange/static/wangEditor/docs/usage/03-config/03-onchange.md
new file mode 100644
index 0000000..296091c
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/03-config/03-onchange.md
@@ -0,0 +1,40 @@
+# 配置 onchange 函数
+
+配置`onchange`函数之后,用户操作(鼠标点击、键盘打字等)导致的内容变化之后,会自动触发`onchange`函数执行。
+
+但是,**用户自己使用 JS 修改了`div1`的`innerHTML`,不会自动触发`onchange`函数**,此时你可以通过执行`editor.change()`来手动触发`onchange`函数的执行。
+
+```html
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+手动触发 onchange 函数执行
+change
+
+
+
+```
+
+-----
+
+另外,如果需要修改 onchange 触发的延迟时间(onchange 会在用户无任何操作的 xxx 毫秒之后被触发),可通过如下配置
+
+```js
+// 自定义 onchange 触发的延迟时间,默认为 200 ms
+editor.customConfig.onchangeTimeout = 1000 // 单位 ms
+```
diff --git a/templates/orange/static/wangEditor/docs/usage/03-config/04-z-index.md b/templates/orange/static/wangEditor/docs/usage/03-config/04-z-index.md
new file mode 100644
index 0000000..129bf1c
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/03-config/04-z-index.md
@@ -0,0 +1,19 @@
+# 配置编辑区域的 z-index
+
+编辑区域的`z-index`默认为`10000`,可自定义修改,代码配置如下。需改之后,编辑区域和菜单的`z-index`会同时生效。
+
+```html
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+
+
+```
+
+
diff --git a/templates/orange/static/wangEditor/docs/usage/03-config/05-lang.md b/templates/orange/static/wangEditor/docs/usage/03-config/05-lang.md
new file mode 100644
index 0000000..01900fe
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/03-config/05-lang.md
@@ -0,0 +1,30 @@
+# 多语言
+
+可以通过`lang`配置项配置多语言,其实就是通过该配置项中的配置,将编辑器显示的文字,替换成你需要的文字。
+
+```html
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+
+
+```
+
+**注意,以上代码中的`链接文字`要写在`链接`前面,`上传图片`要写在`上传`前面,因为前者包含后者。如果不这样做,可能会出现替换不全的问题,切记切记!**
diff --git a/templates/orange/static/wangEditor/docs/usage/03-config/06-paste.md b/templates/orange/static/wangEditor/docs/usage/03-config/06-paste.md
new file mode 100644
index 0000000..a7126c8
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/03-config/06-paste.md
@@ -0,0 +1,33 @@
+# 粘贴文本
+
+**注意,以下配置暂时对 IE 无效。IE 暂时使用系统自带的粘贴功能,没有样式过滤!**
+
+## 关闭粘贴样式的过滤
+
+当从其他网页复制文本内容粘贴到编辑器中,编辑器会默认过滤掉复制文本中自带的样式,目的是让粘贴后的文本变得更加简洁和轻量。用户可通过`editor.customConfig.pasteFilterStyle = false`手动关闭掉粘贴样式的过滤。
+
+## 自定义处理粘贴的文本内容
+
+使用者可通过`editor.customConfig.pasteTextHandle`对粘贴的文本内容进行自定义的过滤、处理等操作,然后返回处理之后的文本内容。编辑器最终会粘贴用户处理之后并且返回的的内容。
+
+## 示例代码
+
+```html
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+
+
+```
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/docs/usage/03-config/07-linkImgCallback.md b/templates/orange/static/wangEditor/docs/usage/03-config/07-linkImgCallback.md
new file mode 100644
index 0000000..52169e8
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/03-config/07-linkImgCallback.md
@@ -0,0 +1,12 @@
+# 插入网络图片的回调
+
+插入网络图片时,可通过如下配置获取到图片的信息。`v3.0.10`开始支持。
+
+```js
+var E = window.wangEditor
+var editor = new E('#div1')
+editor.customConfig.linkImgCallback = function (url) {
+ console.log(url) // url 即插入图片的地址
+}
+editor.create()
+```
diff --git a/templates/orange/static/wangEditor/docs/usage/03-config/08-linkCheck.md b/templates/orange/static/wangEditor/docs/usage/03-config/08-linkCheck.md
new file mode 100644
index 0000000..b581438
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/03-config/08-linkCheck.md
@@ -0,0 +1,16 @@
+# 插入链接的校验
+
+插入链接时,可通过如下配置对文字和链接进行校验。`v3.0.10`开始支持。
+
+```js
+var E = window.wangEditor
+var editor = new E('#div1')
+editor.customConfig.linkCheck = function (text, link) {
+ console.log(text) // 插入的文字
+ console.log(link) // 插入的链接
+
+ return true // 返回 true 表示校验成功
+ // return '验证失败' // 返回字符串,即校验失败的提示信息
+}
+editor.create()
+```
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/docs/usage/03-config/09-onfocus.md b/templates/orange/static/wangEditor/docs/usage/03-config/09-onfocus.md
new file mode 100644
index 0000000..7caba6b
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/03-config/09-onfocus.md
@@ -0,0 +1,19 @@
+# 配置 onfocus 函数
+
+配置`onfocus`函数之后,用户点击富文本区域会触发`onfocus`函数执行。
+
+```html
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+
+
+```
diff --git a/templates/orange/static/wangEditor/docs/usage/03-config/10-onblur.md b/templates/orange/static/wangEditor/docs/usage/03-config/10-onblur.md
new file mode 100644
index 0000000..f7544bc
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/03-config/10-onblur.md
@@ -0,0 +1,20 @@
+# 配置 onblur 函数
+
+配置`onblur`函数之后,如果当前有手动获取焦点的富文本并且鼠标点击富文本以外的区域,则会触发`onblur`函数执行。
+
+```html
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+
+
+```
diff --git a/templates/orange/static/wangEditor/docs/usage/03-config/11-linkImgCheck.md b/templates/orange/static/wangEditor/docs/usage/03-config/11-linkImgCheck.md
new file mode 100644
index 0000000..efb3320
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/03-config/11-linkImgCheck.md
@@ -0,0 +1,15 @@
+# 插入网络图片的校验
+
+插入网络图片时,可对图片地址做自定义校验。`v3.0.13`开始支持。
+
+```js
+var E = window.wangEditor
+var editor = new E('#div1')
+editor.customConfig.linkImgCheck = function (src) {
+ console.log(src) // 图片的链接
+
+ return true // 返回 true 表示校验成功
+ // return '验证失败' // 返回字符串,即校验失败的提示信息
+}
+editor.create()
+```
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/docs/usage/03-config/12-colors.md b/templates/orange/static/wangEditor/docs/usage/03-config/12-colors.md
new file mode 100644
index 0000000..e86e57d
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/03-config/12-colors.md
@@ -0,0 +1,29 @@
+# 配置字体颜色、背景色
+
+编辑器的字体颜色和背景色,可以通过`editor.customConfig.colors`自定义配置
+
+```html
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+
+
+```
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/docs/usage/03-config/13-emot.md b/templates/orange/static/wangEditor/docs/usage/03-config/13-emot.md
new file mode 100644
index 0000000..5363834
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/03-config/13-emot.md
@@ -0,0 +1,48 @@
+# 配置表情
+
+`v3.0.15`开始支持配置表情,支持图片格式和 emoji ,可通过`editor.customConfig.emotions`配置。**注意看代码示例中的注释:**
+
+```html
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+
+
+```
+
+温馨提示:需要表情图片可以去 https://api.weibo.com/2/emotions.json?source=1362404091 和 http://yuncode.net/code/c_524ba520e58ce30 逛一逛,或者自己搜索。
diff --git a/templates/orange/static/wangEditor/docs/usage/04-uploadimg/01-show-tab.md b/templates/orange/static/wangEditor/docs/usage/04-uploadimg/01-show-tab.md
new file mode 100644
index 0000000..8261950
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/04-uploadimg/01-show-tab.md
@@ -0,0 +1,52 @@
+# 隐藏/显示 tab
+
+## 显示“上传图片”tab
+
+默认情况下,编辑器不会显示“上传图片”的tab,因为你还没有配置上传图片的信息。
+
+
+
+参考一下示例显示“上传图片”tab
+
+```html
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+
+
+```
+
+显示效果
+
+
+
+## 隐藏“网络图片”tab
+
+默认情况下,“网络图片”tab是一直存在的。如果不需要,可以参考一下示例来隐藏它。
+
+```html
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+
+
+```
diff --git a/templates/orange/static/wangEditor/docs/usage/04-uploadimg/02-base64.md b/templates/orange/static/wangEditor/docs/usage/04-uploadimg/02-base64.md
new file mode 100644
index 0000000..3a2d71a
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/04-uploadimg/02-base64.md
@@ -0,0 +1,23 @@
+# 使用 base64 保存图片
+
+如果需要使用 base64 编码直接将图片插入到内容中,可参考一下示例配置
+
+```html
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+
+
+```
+
+示例效果如下
+
+
+
+
diff --git a/templates/orange/static/wangEditor/docs/usage/04-uploadimg/03-upload-config.md b/templates/orange/static/wangEditor/docs/usage/04-uploadimg/03-upload-config.md
new file mode 100644
index 0000000..6720ce6
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/04-uploadimg/03-upload-config.md
@@ -0,0 +1,188 @@
+# 上传图片 & 配置
+
+将图片上传到服务器上的配置方式
+
+## 上传图片
+
+参考如下代码
+
+```html
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+
+
+```
+
+其中`/upload`是上传图片的服务器端接口,接口返回的**数据格式**如下(**实际返回数据时,不要加任何注释!!!**)
+
+```json
+{
+ // errno 即错误代码,0 表示没有错误。
+ // 如果有错误,errno != 0,可通过下文中的监听函数 fail 拿到该错误码进行自定义处理
+ "errno": 0,
+
+ // data 是一个数组,返回若干图片的线上地址
+ "data": [
+ "图片1地址",
+ "图片2地址",
+ "……"
+ ]
+}
+```
+
+## 限制图片大小
+
+默认限制图片大小是 5M
+
+```javascript
+// 将图片大小限制为 3M
+editor.customConfig.uploadImgMaxSize = 3 * 1024 * 1024
+```
+
+## 限制一次最多能传几张图片
+
+默认为 10000 张(即不限制),需要限制可自己配置
+
+```javascript
+// 限制一次最多上传 5 张图片
+editor.customConfig.uploadImgMaxLength = 5
+```
+
+## 自定义上传参数
+
+上传图片时可自定义传递一些参数,例如传递验证的`token`等。参数会被添加到`formdata`中。
+
+```javascript
+editor.customConfig.uploadImgParams = {
+ token: 'abcdef12345' // 属性值会自动进行 encode ,此处无需 encode
+}
+```
+
+如果**还需要**将参数拼接到 url 中,可再加上如下配置
+
+```
+editor.customConfig.uploadImgParamsWithUrl = true
+```
+
+## 自定义 fileName
+
+上传图片时,可自定义`filename`,即在使用`formdata.append(name, file)`添加图片文件时,自定义第一个参数。
+
+```javascript
+editor.customConfig.uploadFileName = 'yourFileName'
+```
+
+## 自定义 header
+
+上传图片时刻自定义设置 header
+
+```javascript
+editor.customConfig.uploadImgHeaders = {
+ 'Accept': 'text/x-json'
+}
+```
+
+## withCredentials(跨域传递 cookie)
+
+跨域上传中如果需要传递 cookie 需设置 withCredentials
+
+```javascript
+editor.customConfig.withCredentials = true
+```
+
+## 自定义 timeout 时间
+
+默认的 timeout 时间是 10 秒钟
+
+```javascript
+// 将 timeout 时间改为 3s
+editor.customConfig.uploadImgTimeout = 3000
+```
+
+## 监听函数
+
+可使用监听函数在上传图片的不同阶段做相应处理
+
+```javascript
+editor.customConfig.uploadImgHooks = {
+ before: function (xhr, editor, files) {
+ // 图片上传之前触发
+ // xhr 是 XMLHttpRequst 对象,editor 是编辑器对象,files 是选择的图片文件
+
+ // 如果返回的结果是 {prevent: true, msg: 'xxxx'} 则表示用户放弃上传
+ // return {
+ // prevent: true,
+ // msg: '放弃上传'
+ // }
+ },
+ success: function (xhr, editor, result) {
+ // 图片上传并返回结果,图片插入成功之后触发
+ // xhr 是 XMLHttpRequst 对象,editor 是编辑器对象,result 是服务器端返回的结果
+ },
+ fail: function (xhr, editor, result) {
+ // 图片上传并返回结果,但图片插入错误时触发
+ // xhr 是 XMLHttpRequst 对象,editor 是编辑器对象,result 是服务器端返回的结果
+ },
+ error: function (xhr, editor) {
+ // 图片上传出错时触发
+ // xhr 是 XMLHttpRequst 对象,editor 是编辑器对象
+ },
+ timeout: function (xhr, editor) {
+ // 图片上传超时时触发
+ // xhr 是 XMLHttpRequst 对象,editor 是编辑器对象
+ },
+
+ // 如果服务器端返回的不是 {errno:0, data: [...]} 这种格式,可使用该配置
+ // (但是,服务器端返回的必须是一个 JSON 格式字符串!!!否则会报错)
+ customInsert: function (insertImg, result, editor) {
+ // 图片上传并返回结果,自定义插入图片的事件(而不是编辑器自动插入图片!!!)
+ // insertImg 是插入图片的函数,editor 是编辑器对象,result 是服务器端返回的结果
+
+ // 举例:假如上传图片成功后,服务器端返回的是 {url:'....'} 这种格式,即可这样插入图片:
+ var url = result.url
+ insertImg(url)
+
+ // result 必须是一个 JSON 格式字符串!!!否则报错
+ }
+}
+```
+
+## 自定义提示方法
+
+上传图片的错误提示默认使用`alert`弹出,你也可以自定义用户体验更好的提示方式
+
+```javascript
+editor.customConfig.customAlert = function (info) {
+ // info 是需要提示的内容
+ alert('自定义提示:' + info)
+}
+```
+
+## 自定义上传图片事件
+
+如果想完全自己控制图片上传的过程,可以使用如下代码
+
+```javascript
+editor.customConfig.customUploadImg = function (files, insert) {
+ // files 是 input 中选中的文件列表
+ // insert 是获取图片 url 后,插入到编辑器的方法
+
+ // 上传代码返回结果之后,将图片插入到编辑器中
+ insert(imgUrl)
+}
+```
diff --git a/templates/orange/static/wangEditor/docs/usage/04-uploadimg/04-qiniu.md b/templates/orange/static/wangEditor/docs/usage/04-uploadimg/04-qiniu.md
new file mode 100644
index 0000000..e5c2ca4
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/04-uploadimg/04-qiniu.md
@@ -0,0 +1,115 @@
+# 上传到七牛云存储
+
+完整的 demo 请参见 https://github.com/wangfupeng1988/js-sdk ,可下载下来本地运行 demo
+
+> 注意:配置了上传七牛云存储之后,**无法再使用插入网络图片**
+
+核心代码如下:
+
+```js
+var E = window.wangEditor
+var editor = new E('#div1')
+// 允许上传到七牛云存储
+editor.customConfig.qiniu = true
+editor.create()
+
+// 初始化七牛上传
+uploadInit()
+
+// 初始化七牛上传的方法
+function uploadInit() {
+ // 获取相关 DOM 节点的 ID
+ var btnId = editor.imgMenuId;
+ var containerId = editor.toolbarElemId;
+ var textElemId = editor.textElemId;
+
+ // 创建上传对象
+ var uploader = Qiniu.uploader({
+ runtimes: 'html5,flash,html4', //上传模式,依次退化
+ browse_button: btnId, //上传选择的点选按钮,**必需**
+ uptoken_url: '/uptoken',
+ //Ajax请求upToken的Url,**强烈建议设置**(服务端提供)
+ // uptoken : '',
+ //若未指定uptoken_url,则必须指定 uptoken ,uptoken由其他程序生成
+ // unique_names: true,
+ // 默认 false,key为文件名。若开启该选项,SDK会为每个文件自动生成key(文件名)
+ // save_key: true,
+ // 默认 false。若在服务端生成uptoken的上传策略中指定了 `sava_key`,则开启,SDK在前端将不对key进行任何处理
+ domain: 'http://7xrjl5.com1.z0.glb.clouddn.com/',
+ //bucket 域名,下载资源时用到,**必需**
+ container: containerId, //上传区域DOM ID,默认是browser_button的父元素,
+ max_file_size: '100mb', //最大文件体积限制
+ flash_swf_url: '../js/plupload/Moxie.swf', //引入flash,相对路径
+ filters: {
+ mime_types: [
+ //只允许上传图片文件 (注意,extensions中,逗号后面不要加空格)
+ { title: "图片文件", extensions: "jpg,gif,png,bmp" }
+ ]
+ },
+ max_retries: 3, //上传失败最大重试次数
+ dragdrop: true, //开启可拖曳上传
+ drop_element: textElemId, //拖曳上传区域元素的ID,拖曳文件或文件夹后可触发上传
+ chunk_size: '4mb', //分块上传时,每片的体积
+ auto_start: true, //选择文件后自动上传,若关闭需要自己绑定事件触发上传
+ init: {
+ 'FilesAdded': function(up, files) {
+ plupload.each(files, function(file) {
+ // 文件添加进队列后,处理相关的事情
+ printLog('on FilesAdded');
+ });
+ },
+ 'BeforeUpload': function(up, file) {
+ // 每个文件上传前,处理相关的事情
+ printLog('on BeforeUpload');
+ },
+ 'UploadProgress': function(up, file) {
+ // 显示进度
+ printLog('进度 ' + file.percent)
+ },
+ 'FileUploaded': function(up, file, info) {
+ // 每个文件上传成功后,处理相关的事情
+ // 其中 info 是文件上传成功后,服务端返回的json,形式如
+ // {
+ // "hash": "Fh8xVqod2MQ1mocfI4S4KpRL6D98",
+ // "key": "gogopher.jpg"
+ // }
+ printLog(info);
+ // 参考http://developer.qiniu.com/docs/v6/api/overview/up/response/simple-response.html
+
+ var domain = up.getOption('domain');
+ var res = $.parseJSON(info);
+ var sourceLink = domain + res.key; //获取上传成功后的文件的Url
+
+ printLog(sourceLink);
+
+ // 插入图片到editor
+ editor.cmd.do('insertHtml', ' ')
+ },
+ 'Error': function(up, err, errTip) {
+ //上传出错时,处理相关的事情
+ printLog('on Error');
+ },
+ 'UploadComplete': function() {
+ //队列文件处理完毕后,处理相关的事情
+ printLog('on UploadComplete');
+ }
+ // Key 函数如果有需要自行配置,无特殊需要请注释
+ //,
+ // 'Key': function(up, file) {
+ // // 若想在前端对每个文件的key进行个性化处理,可以配置该函数
+ // // 该配置必须要在 unique_names: false , save_key: false 时才生效
+ // var key = "";
+ // // do something with key here
+ // return key
+ // }
+ }
+ // domain 为七牛空间(bucket)对应的域名,选择某个空间后,可通过"空间设置->基本设置->域名设置"查看获取
+ // uploader 为一个plupload对象,继承了所有plupload的方法,参考http://plupload.com/docs
+ });
+}
+
+// 封装 console.log 函数
+function printLog(title, info) {
+ window.console && console.log(title, info);
+}
+```
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/docs/usage/05-other/01-全屏-预览-查看源码.md b/templates/orange/static/wangEditor/docs/usage/05-other/01-全屏-预览-查看源码.md
new file mode 100644
index 0000000..27588c8
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/05-other/01-全屏-预览-查看源码.md
@@ -0,0 +1,10 @@
+# 全屏 & 预览 & 查看源码
+
+## 全屏
+
+虽然 wangEditor 没有内置全屏功能,但是你可以通过简单的代码来搞定,作者已经做了一个demo来示范。通过运行 demo(文档一开始就介绍了)即可看到该示例页面,直接查看页面源代码即可。
+
+## 预览 & 查看源码
+
+如果需要预览和查看源码的功能,也需要跟全屏功能一样,自己定义按钮。点击按钮时通过`editor.txt.html()`获取编辑器内容,然后自定义实现预览和查看源码功能。
+
diff --git a/templates/orange/static/wangEditor/docs/usage/05-other/02-上传附件.md b/templates/orange/static/wangEditor/docs/usage/05-other/02-上传附件.md
new file mode 100644
index 0000000..1f3cc88
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/05-other/02-上传附件.md
@@ -0,0 +1,24 @@
+# 关于上传附件
+
+**有用户问到编辑器能否有上传附件的功能?我的建议是不要把附件做到内容中。**
+
+原因很简单,如果将附件上传之后再插入到富文本内容中,其实就是一个链接的形式。如下图:
+
+
+
+而用户在用编辑器编辑文本时,操作是非常随意多样的,他把这个链接删了,你服务器要想实时删除上传的附件文件,是难监控到的。
+
+还有,用户如果要上传很多个附件,也是很难管理的,还是因为富文本的内容变化多样,用户可以随便在什么地方插入附件,而且形式和链接一样。
+
+-------
+
+反过来,我们想一下平时用附件和编辑器最多的产品是什么——是邮箱。邮箱如何处理附件的,大家应该很清楚。它把文本内容和附件分开,这样附件就可以很轻松、明了的进行管理,绝对不会和编辑内容的链接产生混淆。
+
+
+
+你能看到的所有的邮箱产品,几乎都是这样设计的。
+
+-------
+
+因此,在你提问编辑器能否上传附件这个问题的时候,可以想一下能否参照邮箱的实现来设计?
+
diff --git a/templates/orange/static/wangEditor/docs/usage/05-other/03-markdown.md b/templates/orange/static/wangEditor/docs/usage/05-other/03-markdown.md
new file mode 100644
index 0000000..c723347
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/05-other/03-markdown.md
@@ -0,0 +1,12 @@
+# 关于 markdown
+
+**好多使用者问到,wangEditor编辑器能否集成markdown?——答案是:富文本编辑器无法和markdown集成到一起。**
+
+-----
+
+
+你可以参考 [简书](http://www.jianshu.com/) 的实现方式,简书中编辑器也无法实现富文本和`markdown`的自由切换。要么使用富文本编写文章,要么使用`markdown`编写文章,不能公用。
+
+本质上,富文本编辑器和`markdown`编辑器是两回事儿。
+
+
diff --git a/templates/orange/static/wangEditor/docs/usage/05-other/04-xss.md b/templates/orange/static/wangEditor/docs/usage/05-other/04-xss.md
new file mode 100644
index 0000000..286337f
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/05-other/04-xss.md
@@ -0,0 +1,23 @@
+# 预防 XSS 攻击
+
+> 术业有专攻
+
+要想在前端预防 xss 攻击,还得依赖于其他工具,例如[xss.js](http://jsxss.com/zh/index.html)(如果打不开页面,就从百度搜一下)
+
+代码示例如下
+
+```html
+
+
+
+```
+
diff --git a/templates/orange/static/wangEditor/docs/usage/05-other/05-react.md b/templates/orange/static/wangEditor/docs/usage/05-other/05-react.md
new file mode 100644
index 0000000..8dcc2d4
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/05-other/05-react.md
@@ -0,0 +1,7 @@
+# 用于 React
+
+如果需要将 wangEditor 用于 React 中,可参见如下示例
+
+- 下载源码 `git clone git@github.com:wangfupeng1988/wangEditor.git`
+- 进入 React 示例目录 `cd wangEditor/example/demo/in-react/`,查看`src/App.js`即可
+- 也可以运行`npm install && npm start`查看在 React 中的效果(`http://localhost:3000/`)
diff --git a/templates/orange/static/wangEditor/docs/usage/05-other/06-vue.md b/templates/orange/static/wangEditor/docs/usage/05-other/06-vue.md
new file mode 100644
index 0000000..47e167a
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/05-other/06-vue.md
@@ -0,0 +1,7 @@
+# 用于 Vue
+
+如果需要将 wangEditor 用于 Vue 中,可参见如下示例
+
+- 下载源码 `git clone git@github.com:wangfupeng1988/wangEditor.git`
+- 进入 vue 示例目录 `cd wangEditor/example/demo/in-vue/`,查看`src/components/Editor.vue`即可
+- 也可以运行`npm install && npm run dev`查看在 vue 中的效果(`http://localhost:8080/`)
diff --git a/templates/orange/static/wangEditor/docs/usage/05-other/07-ng.md b/templates/orange/static/wangEditor/docs/usage/05-other/07-ng.md
new file mode 100644
index 0000000..1d59afc
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/05-other/07-ng.md
@@ -0,0 +1,3 @@
+# 用于 Angular
+
+感谢 [@fengnovo](https://github.com/fengnovo) 提供了一个 angular2 的兼容示例,可供参考 https://github.com/fengnovo/wangEditor/tree/master/example/demo/in-ng2
diff --git a/templates/orange/static/wangEditor/docs/usage/05-other/08-api.md b/templates/orange/static/wangEditor/docs/usage/05-other/08-api.md
new file mode 100644
index 0000000..e8b4f6d
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/05-other/08-api.md
@@ -0,0 +1,27 @@
+# 常用 API
+
+## 属性
+
+- 获取编辑器的唯一标识 `editor.id`
+- 获取编辑区域 DOM 节点 `editor.$textElem[0]`
+- 获取菜单栏 DOM 节点 `editor.$toolbarElem[0]`
+- 获取编辑器配置信息 `editor.config`
+- 获取编辑区域 DOM 节点 ID `editor.textElemId`
+- 获取菜单栏 DOM 节点 ID `editor.toolbarElemId`
+- 获取菜单栏中“图片”菜单的 DOM 节点 ID `editor.imgMenuId`
+
+## 方法
+
+### 选取操作
+
+- 获取选中的文字 `editor.selection.getSelectionText()`
+- 获取选取所在的 DOM 节点 `editor.selection.getSelectionContainerElem()[0]`
+ - 开始节点 `editor.selection.getSelectionStartElem()[0]`
+ - 结束节点 `editor.selection.getSelectionEndElem()[0]`
+- 折叠选取 `editor.selection.collapseRange()`
+- 更多可参见[源码中](https://github.com/wangfupeng1988/wangEditor/blob/master/src/js/selection/index.js)定义的方法
+
+### 编辑内容操作
+
+- 插入 HTML `editor.cmd.do('insertHTML', '...
')`
+- 可通过`editor.cmd.do(name, value)`来执行`document.execCommand(name, false, value)`的操作
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/docs/usage/README.md b/templates/orange/static/wangEditor/docs/usage/README.md
new file mode 100644
index 0000000..4c801e6
--- /dev/null
+++ b/templates/orange/static/wangEditor/docs/usage/README.md
@@ -0,0 +1,3 @@
+同步[../../README.md](../../README.md)的内容
+
+将所有文档跟新到 www.kancloud.cn/wangfupeng/wangeditor3/332599 中
diff --git a/templates/orange/static/wangEditor/example/README.md b/templates/orange/static/wangEditor/example/README.md
new file mode 100644
index 0000000..6e17ca0
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/README.md
@@ -0,0 +1 @@
+wangEditor demo
diff --git a/templates/orange/static/wangEditor/example/demo/in-react/package.json b/templates/orange/static/wangEditor/example/demo/in-react/package.json
new file mode 100644
index 0000000..054d5cd
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-react/package.json
@@ -0,0 +1,19 @@
+{
+ "name": "wangeditor-in-react",
+ "version": "0.1.0",
+ "private": true,
+ "dependencies": {
+ "react": "^15.5.4",
+ "react-dom": "^15.5.4",
+ "wangeditor": ">=3.0.0"
+ },
+ "devDependencies": {
+ "react-scripts": "1.0.7"
+ },
+ "scripts": {
+ "start": "react-scripts start",
+ "build": "react-scripts build",
+ "test": "react-scripts test --env=jsdom",
+ "eject": "react-scripts eject"
+ }
+}
diff --git a/templates/orange/static/wangEditor/example/demo/in-react/public/favicon.ico b/templates/orange/static/wangEditor/example/demo/in-react/public/favicon.ico
new file mode 100644
index 0000000..5c125de
Binary files /dev/null and b/templates/orange/static/wangEditor/example/demo/in-react/public/favicon.ico differ
diff --git a/templates/orange/static/wangEditor/example/demo/in-react/public/index.html b/templates/orange/static/wangEditor/example/demo/in-react/public/index.html
new file mode 100644
index 0000000..7bee027
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-react/public/index.html
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
+
+ React App
+
+
+
+ You need to enable JavaScript to run this app.
+
+
+
+
+
diff --git a/templates/orange/static/wangEditor/example/demo/in-react/public/manifest.json b/templates/orange/static/wangEditor/example/demo/in-react/public/manifest.json
new file mode 100644
index 0000000..be607e4
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-react/public/manifest.json
@@ -0,0 +1,15 @@
+{
+ "short_name": "React App",
+ "name": "Create React App Sample",
+ "icons": [
+ {
+ "src": "favicon.ico",
+ "sizes": "192x192",
+ "type": "image/png"
+ }
+ ],
+ "start_url": "./index.html",
+ "display": "standalone",
+ "theme_color": "#000000",
+ "background_color": "#ffffff"
+}
diff --git a/templates/orange/static/wangEditor/example/demo/in-react/src/App.css b/templates/orange/static/wangEditor/example/demo/in-react/src/App.css
new file mode 100644
index 0000000..15adfdc
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-react/src/App.css
@@ -0,0 +1,24 @@
+.App {
+ text-align: center;
+}
+
+.App-logo {
+ animation: App-logo-spin infinite 20s linear;
+ height: 80px;
+}
+
+.App-header {
+ background-color: #222;
+ height: 150px;
+ padding: 20px;
+ color: white;
+}
+
+.App-intro {
+ font-size: large;
+}
+
+@keyframes App-logo-spin {
+ from { transform: rotate(0deg); }
+ to { transform: rotate(360deg); }
+}
diff --git a/templates/orange/static/wangEditor/example/demo/in-react/src/App.js b/templates/orange/static/wangEditor/example/demo/in-react/src/App.js
new file mode 100644
index 0000000..95b21fb
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-react/src/App.js
@@ -0,0 +1,48 @@
+import React, { Component } from 'react';
+import logo from './logo.svg';
+import './App.css';
+import E from 'wangeditor'
+
+class App extends Component {
+ constructor(props, context) {
+ super(props, context);
+ this.state = {
+ editorContent: ''
+ }
+ }
+ render() {
+ return (
+
+
+
+
Welcome to React
+
+
+ To get started, edit src/App.js
and save to reload.
+
+
+ {/* 将生成编辑器 */}
+
+
+
+
获取内容
+
+ );
+ }
+ componentDidMount() {
+ const elem = this.refs.editorElem
+ const editor = new E(elem)
+ // 使用 onchange 函数监听内容的变化,并实时更新到 state 中
+ editor.customConfig.onchange = html => {
+ this.setState({
+ editorContent: html
+ })
+ }
+ editor.create()
+ }
+ clickHandle() {
+ alert(this.state.editorContent)
+ }
+}
+
+export default App;
diff --git a/templates/orange/static/wangEditor/example/demo/in-react/src/App.test.js b/templates/orange/static/wangEditor/example/demo/in-react/src/App.test.js
new file mode 100644
index 0000000..b84af98
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-react/src/App.test.js
@@ -0,0 +1,8 @@
+import React from 'react';
+import ReactDOM from 'react-dom';
+import App from './App';
+
+it('renders without crashing', () => {
+ const div = document.createElement('div');
+ ReactDOM.render( , div);
+});
diff --git a/templates/orange/static/wangEditor/example/demo/in-react/src/index.css b/templates/orange/static/wangEditor/example/demo/in-react/src/index.css
new file mode 100644
index 0000000..b4cc725
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-react/src/index.css
@@ -0,0 +1,5 @@
+body {
+ margin: 0;
+ padding: 0;
+ font-family: sans-serif;
+}
diff --git a/templates/orange/static/wangEditor/example/demo/in-react/src/index.js b/templates/orange/static/wangEditor/example/demo/in-react/src/index.js
new file mode 100644
index 0000000..53c7688
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-react/src/index.js
@@ -0,0 +1,8 @@
+import React from 'react';
+import ReactDOM from 'react-dom';
+import App from './App';
+import registerServiceWorker from './registerServiceWorker';
+import './index.css';
+
+ReactDOM.render( , document.getElementById('root'));
+registerServiceWorker();
diff --git a/templates/orange/static/wangEditor/example/demo/in-react/src/logo.svg b/templates/orange/static/wangEditor/example/demo/in-react/src/logo.svg
new file mode 100644
index 0000000..6b60c10
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-react/src/logo.svg
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/templates/orange/static/wangEditor/example/demo/in-react/src/registerServiceWorker.js b/templates/orange/static/wangEditor/example/demo/in-react/src/registerServiceWorker.js
new file mode 100644
index 0000000..9966897
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-react/src/registerServiceWorker.js
@@ -0,0 +1,51 @@
+// In production, we register a service worker to serve assets from local cache.
+
+// This lets the app load faster on subsequent visits in production, and gives
+// it offline capabilities. However, it also means that developers (and users)
+// will only see deployed updates on the "N+1" visit to a page, since previously
+// cached resources are updated in the background.
+
+// To learn more about the benefits of this model, read https://goo.gl/KwvDNy.
+// This link also includes instructions on opting out of this behavior.
+
+export default function register() {
+ if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
+ window.addEventListener('load', () => {
+ const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;
+ navigator.serviceWorker
+ .register(swUrl)
+ .then(registration => {
+ registration.onupdatefound = () => {
+ const installingWorker = registration.installing;
+ installingWorker.onstatechange = () => {
+ if (installingWorker.state === 'installed') {
+ if (navigator.serviceWorker.controller) {
+ // At this point, the old content will have been purged and
+ // the fresh content will have been added to the cache.
+ // It's the perfect time to display a "New content is
+ // available; please refresh." message in your web app.
+ console.log('New content is available; please refresh.');
+ } else {
+ // At this point, everything has been precached.
+ // It's the perfect time to display a
+ // "Content is cached for offline use." message.
+ console.log('Content is cached for offline use.');
+ }
+ }
+ };
+ };
+ })
+ .catch(error => {
+ console.error('Error during service worker registration:', error);
+ });
+ });
+ }
+}
+
+export function unregister() {
+ if ('serviceWorker' in navigator) {
+ navigator.serviceWorker.ready.then(registration => {
+ registration.unregister();
+ });
+ }
+}
diff --git a/templates/orange/static/wangEditor/example/demo/in-vue/.babelrc b/templates/orange/static/wangEditor/example/demo/in-vue/.babelrc
new file mode 100644
index 0000000..13f0e47
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-vue/.babelrc
@@ -0,0 +1,14 @@
+{
+ "presets": [
+ ["env", { "modules": false }],
+ "stage-2"
+ ],
+ "plugins": ["transform-runtime"],
+ "comments": false,
+ "env": {
+ "test": {
+ "presets": ["env", "stage-2"],
+ "plugins": [ "istanbul" ]
+ }
+ }
+}
diff --git a/templates/orange/static/wangEditor/example/demo/in-vue/.editorconfig b/templates/orange/static/wangEditor/example/demo/in-vue/.editorconfig
new file mode 100644
index 0000000..9d08a1a
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-vue/.editorconfig
@@ -0,0 +1,9 @@
+root = true
+
+[*]
+charset = utf-8
+indent_style = space
+indent_size = 2
+end_of_line = lf
+insert_final_newline = true
+trim_trailing_whitespace = true
diff --git a/templates/orange/static/wangEditor/example/demo/in-vue/.postcssrc.js b/templates/orange/static/wangEditor/example/demo/in-vue/.postcssrc.js
new file mode 100644
index 0000000..ea9a5ab
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-vue/.postcssrc.js
@@ -0,0 +1,8 @@
+// https://github.com/michael-ciniawsky/postcss-load-config
+
+module.exports = {
+ "plugins": {
+ // to edit target browsers: use "browserlist" field in package.json
+ "autoprefixer": {}
+ }
+}
diff --git a/templates/orange/static/wangEditor/example/demo/in-vue/build/build.js b/templates/orange/static/wangEditor/example/demo/in-vue/build/build.js
new file mode 100644
index 0000000..6b8add1
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-vue/build/build.js
@@ -0,0 +1,35 @@
+require('./check-versions')()
+
+process.env.NODE_ENV = 'production'
+
+var ora = require('ora')
+var rm = require('rimraf')
+var path = require('path')
+var chalk = require('chalk')
+var webpack = require('webpack')
+var config = require('../config')
+var webpackConfig = require('./webpack.prod.conf')
+
+var spinner = ora('building for production...')
+spinner.start()
+
+rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
+ if (err) throw err
+ webpack(webpackConfig, function (err, stats) {
+ spinner.stop()
+ if (err) throw err
+ process.stdout.write(stats.toString({
+ colors: true,
+ modules: false,
+ children: false,
+ chunks: false,
+ chunkModules: false
+ }) + '\n\n')
+
+ console.log(chalk.cyan(' Build complete.\n'))
+ console.log(chalk.yellow(
+ ' Tip: built files are meant to be served over an HTTP server.\n' +
+ ' Opening index.html over file:// won\'t work.\n'
+ ))
+ })
+})
diff --git a/templates/orange/static/wangEditor/example/demo/in-vue/build/check-versions.js b/templates/orange/static/wangEditor/example/demo/in-vue/build/check-versions.js
new file mode 100644
index 0000000..100f3a0
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-vue/build/check-versions.js
@@ -0,0 +1,48 @@
+var chalk = require('chalk')
+var semver = require('semver')
+var packageConfig = require('../package.json')
+var shell = require('shelljs')
+function exec (cmd) {
+ return require('child_process').execSync(cmd).toString().trim()
+}
+
+var versionRequirements = [
+ {
+ name: 'node',
+ currentVersion: semver.clean(process.version),
+ versionRequirement: packageConfig.engines.node
+ },
+]
+
+if (shell.which('npm')) {
+ versionRequirements.push({
+ name: 'npm',
+ currentVersion: exec('npm --version'),
+ versionRequirement: packageConfig.engines.npm
+ })
+}
+
+module.exports = function () {
+ var warnings = []
+ for (var i = 0; i < versionRequirements.length; i++) {
+ var mod = versionRequirements[i]
+ if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) {
+ warnings.push(mod.name + ': ' +
+ chalk.red(mod.currentVersion) + ' should be ' +
+ chalk.green(mod.versionRequirement)
+ )
+ }
+ }
+
+ if (warnings.length) {
+ console.log('')
+ console.log(chalk.yellow('To use this template, you must update following to modules:'))
+ console.log()
+ for (var i = 0; i < warnings.length; i++) {
+ var warning = warnings[i]
+ console.log(' ' + warning)
+ }
+ console.log()
+ process.exit(1)
+ }
+}
diff --git a/templates/orange/static/wangEditor/example/demo/in-vue/build/dev-client.js b/templates/orange/static/wangEditor/example/demo/in-vue/build/dev-client.js
new file mode 100644
index 0000000..18aa1e2
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-vue/build/dev-client.js
@@ -0,0 +1,9 @@
+/* eslint-disable */
+require('eventsource-polyfill')
+var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true')
+
+hotClient.subscribe(function (event) {
+ if (event.action === 'reload') {
+ window.location.reload()
+ }
+})
diff --git a/templates/orange/static/wangEditor/example/demo/in-vue/build/dev-server.js b/templates/orange/static/wangEditor/example/demo/in-vue/build/dev-server.js
new file mode 100644
index 0000000..782dc6f
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-vue/build/dev-server.js
@@ -0,0 +1,89 @@
+require('./check-versions')()
+
+var config = require('../config')
+if (!process.env.NODE_ENV) {
+ process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV)
+}
+
+var opn = require('opn')
+var path = require('path')
+var express = require('express')
+var webpack = require('webpack')
+var proxyMiddleware = require('http-proxy-middleware')
+var webpackConfig = require('./webpack.dev.conf')
+
+// default port where dev server listens for incoming traffic
+var port = process.env.PORT || config.dev.port
+// automatically open browser, if not set will be false
+var autoOpenBrowser = !!config.dev.autoOpenBrowser
+// Define HTTP proxies to your custom API backend
+// https://github.com/chimurai/http-proxy-middleware
+var proxyTable = config.dev.proxyTable
+
+var app = express()
+var compiler = webpack(webpackConfig)
+
+var devMiddleware = require('webpack-dev-middleware')(compiler, {
+ publicPath: webpackConfig.output.publicPath,
+ quiet: true
+})
+
+var hotMiddleware = require('webpack-hot-middleware')(compiler, {
+ log: () => {}
+})
+// force page reload when html-webpack-plugin template changes
+compiler.plugin('compilation', function (compilation) {
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
+ hotMiddleware.publish({ action: 'reload' })
+ cb()
+ })
+})
+
+// proxy api requests
+Object.keys(proxyTable).forEach(function (context) {
+ var options = proxyTable[context]
+ if (typeof options === 'string') {
+ options = { target: options }
+ }
+ app.use(proxyMiddleware(options.filter || context, options))
+})
+
+// handle fallback for HTML5 history API
+app.use(require('connect-history-api-fallback')())
+
+// serve webpack bundle output
+app.use(devMiddleware)
+
+// enable hot-reload and state-preserving
+// compilation error display
+app.use(hotMiddleware)
+
+// serve pure static assets
+var staticPath = path.posix.join(config.dev.assetsPublicPath, config.dev.assetsSubDirectory)
+app.use(staticPath, express.static('./static'))
+
+var uri = 'http://localhost:' + port
+
+var _resolve
+var readyPromise = new Promise(resolve => {
+ _resolve = resolve
+})
+
+console.log('> Starting dev server...')
+devMiddleware.waitUntilValid(() => {
+ console.log('> Listening at ' + uri + '\n')
+ // when env is testing, don't need open it
+ if (autoOpenBrowser && process.env.NODE_ENV !== 'testing') {
+ opn(uri)
+ }
+ _resolve()
+})
+
+var server = app.listen(port)
+
+module.exports = {
+ ready: readyPromise,
+ close: () => {
+ server.close()
+ }
+}
diff --git a/templates/orange/static/wangEditor/example/demo/in-vue/build/utils.js b/templates/orange/static/wangEditor/example/demo/in-vue/build/utils.js
new file mode 100644
index 0000000..b1d54b4
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-vue/build/utils.js
@@ -0,0 +1,71 @@
+var path = require('path')
+var config = require('../config')
+var ExtractTextPlugin = require('extract-text-webpack-plugin')
+
+exports.assetsPath = function (_path) {
+ var assetsSubDirectory = process.env.NODE_ENV === 'production'
+ ? config.build.assetsSubDirectory
+ : config.dev.assetsSubDirectory
+ return path.posix.join(assetsSubDirectory, _path)
+}
+
+exports.cssLoaders = function (options) {
+ options = options || {}
+
+ var cssLoader = {
+ loader: 'css-loader',
+ options: {
+ minimize: process.env.NODE_ENV === 'production',
+ sourceMap: options.sourceMap
+ }
+ }
+
+ // generate loader string to be used with extract text plugin
+ function generateLoaders (loader, loaderOptions) {
+ var loaders = [cssLoader]
+ if (loader) {
+ loaders.push({
+ loader: loader + '-loader',
+ options: Object.assign({}, loaderOptions, {
+ sourceMap: options.sourceMap
+ })
+ })
+ }
+
+ // Extract CSS when that option is specified
+ // (which is the case during production build)
+ if (options.extract) {
+ return ExtractTextPlugin.extract({
+ use: loaders,
+ fallback: 'vue-style-loader'
+ })
+ } else {
+ return ['vue-style-loader'].concat(loaders)
+ }
+ }
+
+ // https://vue-loader.vuejs.org/en/configurations/extract-css.html
+ return {
+ css: generateLoaders(),
+ postcss: generateLoaders(),
+ less: generateLoaders('less'),
+ sass: generateLoaders('sass', { indentedSyntax: true }),
+ scss: generateLoaders('sass'),
+ stylus: generateLoaders('stylus'),
+ styl: generateLoaders('stylus')
+ }
+}
+
+// Generate loaders for standalone style files (outside of .vue)
+exports.styleLoaders = function (options) {
+ var output = []
+ var loaders = exports.cssLoaders(options)
+ for (var extension in loaders) {
+ var loader = loaders[extension]
+ output.push({
+ test: new RegExp('\\.' + extension + '$'),
+ use: loader
+ })
+ }
+ return output
+}
diff --git a/templates/orange/static/wangEditor/example/demo/in-vue/build/vue-loader.conf.js b/templates/orange/static/wangEditor/example/demo/in-vue/build/vue-loader.conf.js
new file mode 100644
index 0000000..7aee79b
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-vue/build/vue-loader.conf.js
@@ -0,0 +1,12 @@
+var utils = require('./utils')
+var config = require('../config')
+var isProduction = process.env.NODE_ENV === 'production'
+
+module.exports = {
+ loaders: utils.cssLoaders({
+ sourceMap: isProduction
+ ? config.build.productionSourceMap
+ : config.dev.cssSourceMap,
+ extract: isProduction
+ })
+}
diff --git a/templates/orange/static/wangEditor/example/demo/in-vue/build/webpack.base.conf.js b/templates/orange/static/wangEditor/example/demo/in-vue/build/webpack.base.conf.js
new file mode 100644
index 0000000..daa3589
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-vue/build/webpack.base.conf.js
@@ -0,0 +1,58 @@
+var path = require('path')
+var utils = require('./utils')
+var config = require('../config')
+var vueLoaderConfig = require('./vue-loader.conf')
+
+function resolve (dir) {
+ return path.join(__dirname, '..', dir)
+}
+
+module.exports = {
+ entry: {
+ app: './src/main.js'
+ },
+ output: {
+ path: config.build.assetsRoot,
+ filename: '[name].js',
+ publicPath: process.env.NODE_ENV === 'production'
+ ? config.build.assetsPublicPath
+ : config.dev.assetsPublicPath
+ },
+ resolve: {
+ extensions: ['.js', '.vue', '.json'],
+ alias: {
+ 'vue$': 'vue/dist/vue.esm.js',
+ '@': resolve('src')
+ }
+ },
+ module: {
+ rules: [
+ {
+ test: /\.vue$/,
+ loader: 'vue-loader',
+ options: vueLoaderConfig
+ },
+ {
+ test: /\.js$/,
+ loader: 'babel-loader',
+ include: [resolve('src'), resolve('test')]
+ },
+ {
+ test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
+ loader: 'url-loader',
+ options: {
+ limit: 10000,
+ name: utils.assetsPath('img/[name].[hash:7].[ext]')
+ }
+ },
+ {
+ test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
+ loader: 'url-loader',
+ options: {
+ limit: 10000,
+ name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
+ }
+ }
+ ]
+ }
+}
diff --git a/templates/orange/static/wangEditor/example/demo/in-vue/build/webpack.dev.conf.js b/templates/orange/static/wangEditor/example/demo/in-vue/build/webpack.dev.conf.js
new file mode 100644
index 0000000..5470402
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-vue/build/webpack.dev.conf.js
@@ -0,0 +1,35 @@
+var utils = require('./utils')
+var webpack = require('webpack')
+var config = require('../config')
+var merge = require('webpack-merge')
+var baseWebpackConfig = require('./webpack.base.conf')
+var HtmlWebpackPlugin = require('html-webpack-plugin')
+var FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
+
+// add hot-reload related code to entry chunks
+Object.keys(baseWebpackConfig.entry).forEach(function (name) {
+ baseWebpackConfig.entry[name] = ['./build/dev-client'].concat(baseWebpackConfig.entry[name])
+})
+
+module.exports = merge(baseWebpackConfig, {
+ module: {
+ rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap })
+ },
+ // cheap-module-eval-source-map is faster for development
+ devtool: '#cheap-module-eval-source-map',
+ plugins: [
+ new webpack.DefinePlugin({
+ 'process.env': config.dev.env
+ }),
+ // https://github.com/glenjamin/webpack-hot-middleware#installation--usage
+ new webpack.HotModuleReplacementPlugin(),
+ new webpack.NoEmitOnErrorsPlugin(),
+ // https://github.com/ampedandwired/html-webpack-plugin
+ new HtmlWebpackPlugin({
+ filename: 'index.html',
+ template: 'index.html',
+ inject: true
+ }),
+ new FriendlyErrorsPlugin()
+ ]
+})
diff --git a/templates/orange/static/wangEditor/example/demo/in-vue/build/webpack.prod.conf.js b/templates/orange/static/wangEditor/example/demo/in-vue/build/webpack.prod.conf.js
new file mode 100644
index 0000000..da44b65
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-vue/build/webpack.prod.conf.js
@@ -0,0 +1,120 @@
+var path = require('path')
+var utils = require('./utils')
+var webpack = require('webpack')
+var config = require('../config')
+var merge = require('webpack-merge')
+var baseWebpackConfig = require('./webpack.base.conf')
+var CopyWebpackPlugin = require('copy-webpack-plugin')
+var HtmlWebpackPlugin = require('html-webpack-plugin')
+var ExtractTextPlugin = require('extract-text-webpack-plugin')
+var OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
+
+var env = config.build.env
+
+var webpackConfig = merge(baseWebpackConfig, {
+ module: {
+ rules: utils.styleLoaders({
+ sourceMap: config.build.productionSourceMap,
+ extract: true
+ })
+ },
+ devtool: config.build.productionSourceMap ? '#source-map' : false,
+ output: {
+ path: config.build.assetsRoot,
+ filename: utils.assetsPath('js/[name].[chunkhash].js'),
+ chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
+ },
+ plugins: [
+ // http://vuejs.github.io/vue-loader/en/workflow/production.html
+ new webpack.DefinePlugin({
+ 'process.env': env
+ }),
+ new webpack.optimize.UglifyJsPlugin({
+ compress: {
+ warnings: false
+ },
+ sourceMap: true
+ }),
+ // extract css into its own file
+ new ExtractTextPlugin({
+ filename: utils.assetsPath('css/[name].[contenthash].css')
+ }),
+ // Compress extracted CSS. We are using this plugin so that possible
+ // duplicated CSS from different components can be deduped.
+ new OptimizeCSSPlugin({
+ cssProcessorOptions: {
+ safe: true
+ }
+ }),
+ // generate dist index.html with correct asset hash for caching.
+ // you can customize output by editing /index.html
+ // see https://github.com/ampedandwired/html-webpack-plugin
+ new HtmlWebpackPlugin({
+ filename: config.build.index,
+ template: 'index.html',
+ inject: true,
+ minify: {
+ removeComments: true,
+ collapseWhitespace: true,
+ removeAttributeQuotes: true
+ // more options:
+ // https://github.com/kangax/html-minifier#options-quick-reference
+ },
+ // necessary to consistently work with multiple chunks via CommonsChunkPlugin
+ chunksSortMode: 'dependency'
+ }),
+ // split vendor js into its own file
+ new webpack.optimize.CommonsChunkPlugin({
+ name: 'vendor',
+ minChunks: function (module, count) {
+ // any required modules inside node_modules are extracted to vendor
+ return (
+ module.resource &&
+ /\.js$/.test(module.resource) &&
+ module.resource.indexOf(
+ path.join(__dirname, '../node_modules')
+ ) === 0
+ )
+ }
+ }),
+ // extract webpack runtime and module manifest to its own file in order to
+ // prevent vendor hash from being updated whenever app bundle is updated
+ new webpack.optimize.CommonsChunkPlugin({
+ name: 'manifest',
+ chunks: ['vendor']
+ }),
+ // copy custom static assets
+ new CopyWebpackPlugin([
+ {
+ from: path.resolve(__dirname, '../static'),
+ to: config.build.assetsSubDirectory,
+ ignore: ['.*']
+ }
+ ])
+ ]
+})
+
+if (config.build.productionGzip) {
+ var CompressionWebpackPlugin = require('compression-webpack-plugin')
+
+ webpackConfig.plugins.push(
+ new CompressionWebpackPlugin({
+ asset: '[path].gz[query]',
+ algorithm: 'gzip',
+ test: new RegExp(
+ '\\.(' +
+ config.build.productionGzipExtensions.join('|') +
+ ')$'
+ ),
+ threshold: 10240,
+ minRatio: 0.8
+ })
+ )
+}
+
+if (config.build.bundleAnalyzerReport) {
+ var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
+ webpackConfig.plugins.push(new BundleAnalyzerPlugin())
+}
+
+module.exports = webpackConfig
diff --git a/templates/orange/static/wangEditor/example/demo/in-vue/config/dev.env.js b/templates/orange/static/wangEditor/example/demo/in-vue/config/dev.env.js
new file mode 100644
index 0000000..efead7c
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-vue/config/dev.env.js
@@ -0,0 +1,6 @@
+var merge = require('webpack-merge')
+var prodEnv = require('./prod.env')
+
+module.exports = merge(prodEnv, {
+ NODE_ENV: '"development"'
+})
diff --git a/templates/orange/static/wangEditor/example/demo/in-vue/config/index.js b/templates/orange/static/wangEditor/example/demo/in-vue/config/index.js
new file mode 100644
index 0000000..196da1f
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-vue/config/index.js
@@ -0,0 +1,38 @@
+// see http://vuejs-templates.github.io/webpack for documentation.
+var path = require('path')
+
+module.exports = {
+ build: {
+ env: require('./prod.env'),
+ index: path.resolve(__dirname, '../dist/index.html'),
+ assetsRoot: path.resolve(__dirname, '../dist'),
+ assetsSubDirectory: 'static',
+ assetsPublicPath: '/',
+ productionSourceMap: true,
+ // Gzip off by default as many popular static hosts such as
+ // Surge or Netlify already gzip all static assets for you.
+ // Before setting to `true`, make sure to:
+ // npm install --save-dev compression-webpack-plugin
+ productionGzip: false,
+ productionGzipExtensions: ['js', 'css'],
+ // Run the build command with an extra argument to
+ // View the bundle analyzer report after build finishes:
+ // `npm run build --report`
+ // Set to `true` or `false` to always turn it on or off
+ bundleAnalyzerReport: process.env.npm_config_report
+ },
+ dev: {
+ env: require('./dev.env'),
+ port: 8080,
+ autoOpenBrowser: true,
+ assetsSubDirectory: 'static',
+ assetsPublicPath: '/',
+ proxyTable: {},
+ // CSS Sourcemaps off by default because relative paths are "buggy"
+ // with this option, according to the CSS-Loader README
+ // (https://github.com/webpack/css-loader#sourcemaps)
+ // In our experience, they generally work as expected,
+ // just be aware of this issue when enabling this option.
+ cssSourceMap: false
+ }
+}
diff --git a/templates/orange/static/wangEditor/example/demo/in-vue/config/prod.env.js b/templates/orange/static/wangEditor/example/demo/in-vue/config/prod.env.js
new file mode 100644
index 0000000..773d263
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-vue/config/prod.env.js
@@ -0,0 +1,3 @@
+module.exports = {
+ NODE_ENV: '"production"'
+}
diff --git a/templates/orange/static/wangEditor/example/demo/in-vue/index.html b/templates/orange/static/wangEditor/example/demo/in-vue/index.html
new file mode 100644
index 0000000..47ae14a
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-vue/index.html
@@ -0,0 +1,11 @@
+
+
+
+
+ wangeditor-in-vue
+
+
+
+
+
+
diff --git a/templates/orange/static/wangEditor/example/demo/in-vue/package.json b/templates/orange/static/wangEditor/example/demo/in-vue/package.json
new file mode 100644
index 0000000..80cf68f
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-vue/package.json
@@ -0,0 +1,60 @@
+{
+ "name": "wangeditor-in-vue",
+ "version": "1.0.0",
+ "description": "A Vue.js project",
+ "author": "git ",
+ "private": true,
+ "scripts": {
+ "dev": "node build/dev-server.js",
+ "start": "node build/dev-server.js",
+ "build": "node build/build.js"
+ },
+ "dependencies": {
+ "vue": "^2.3.3",
+ "wangeditor": ">=3.0.0"
+ },
+ "devDependencies": {
+ "autoprefixer": "^6.7.2",
+ "babel-core": "^6.22.1",
+ "babel-loader": "^6.2.10",
+ "babel-plugin-transform-runtime": "^6.22.0",
+ "babel-preset-env": "^1.3.2",
+ "babel-preset-stage-2": "^6.22.0",
+ "babel-register": "^6.22.0",
+ "chalk": "^1.1.3",
+ "connect-history-api-fallback": "^1.3.0",
+ "copy-webpack-plugin": "^4.0.1",
+ "css-loader": "^0.28.0",
+ "eventsource-polyfill": "^0.9.6",
+ "express": "^4.14.1",
+ "extract-text-webpack-plugin": "^2.0.0",
+ "file-loader": "^0.11.1",
+ "friendly-errors-webpack-plugin": "^1.1.3",
+ "html-webpack-plugin": "^2.28.0",
+ "http-proxy-middleware": "^0.17.3",
+ "webpack-bundle-analyzer": "^2.2.1",
+ "semver": "^5.3.0",
+ "shelljs": "^0.7.6",
+ "opn": "^4.0.2",
+ "optimize-css-assets-webpack-plugin": "^1.3.0",
+ "ora": "^1.2.0",
+ "rimraf": "^2.6.0",
+ "url-loader": "^0.5.8",
+ "vue-loader": "^12.1.0",
+ "vue-style-loader": "^3.0.1",
+ "vue-template-compiler": "^2.3.3",
+ "webpack": "^2.6.1",
+ "webpack-dev-middleware": "^1.10.0",
+ "webpack-hot-middleware": "^2.18.0",
+ "webpack-merge": "^4.1.0"
+ },
+ "engines": {
+ "node": ">= 4.0.0",
+ "npm": ">= 3.0.0"
+ },
+ "browserslist": [
+ "> 1%",
+ "last 2 versions",
+ "not ie <= 8"
+ ]
+}
diff --git a/templates/orange/static/wangEditor/example/demo/in-vue/src/App.vue b/templates/orange/static/wangEditor/example/demo/in-vue/src/App.vue
new file mode 100644
index 0000000..27d15ff
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-vue/src/App.vue
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/templates/orange/static/wangEditor/example/demo/in-vue/src/assets/logo.png b/templates/orange/static/wangEditor/example/demo/in-vue/src/assets/logo.png
new file mode 100644
index 0000000..f3d2503
Binary files /dev/null and b/templates/orange/static/wangEditor/example/demo/in-vue/src/assets/logo.png differ
diff --git a/templates/orange/static/wangEditor/example/demo/in-vue/src/components/Editor.vue b/templates/orange/static/wangEditor/example/demo/in-vue/src/components/Editor.vue
new file mode 100644
index 0000000..aee43c2
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-vue/src/components/Editor.vue
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
diff --git a/templates/orange/static/wangEditor/example/demo/in-vue/src/components/Hello.vue b/templates/orange/static/wangEditor/example/demo/in-vue/src/components/Hello.vue
new file mode 100644
index 0000000..2d80539
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-vue/src/components/Hello.vue
@@ -0,0 +1,53 @@
+
+
+
{{ msg }}
+
Essential Links
+
+
Ecosystem
+
+
+
+
+
+
+
+
diff --git a/templates/orange/static/wangEditor/example/demo/in-vue/src/main.js b/templates/orange/static/wangEditor/example/demo/in-vue/src/main.js
new file mode 100644
index 0000000..7b7fec7
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/in-vue/src/main.js
@@ -0,0 +1,13 @@
+// The Vue build version to load with the `import` command
+// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
+import Vue from 'vue'
+import App from './App'
+
+Vue.config.productionTip = false
+
+/* eslint-disable no-new */
+new Vue({
+ el: '#app',
+ template: ' ',
+ components: { App }
+})
diff --git a/templates/orange/static/wangEditor/example/demo/in-vue/static/.gitkeep b/templates/orange/static/wangEditor/example/demo/in-vue/static/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/templates/orange/static/wangEditor/example/demo/test-amd-main.js b/templates/orange/static/wangEditor/example/demo/test-amd-main.js
new file mode 100644
index 0000000..444b2da
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/test-amd-main.js
@@ -0,0 +1,4 @@
+require(['/wangEditor.min.js'], function (E) {
+ var editor2 = new E('#div3')
+ editor2.create()
+})
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/example/demo/test-amd.html b/templates/orange/static/wangEditor/example/demo/test-amd.html
new file mode 100644
index 0000000..6a3d666
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/test-amd.html
@@ -0,0 +1,15 @@
+
+
+
+
+ wangEditor 使用 AMD 加载
+
+
+ wangEditor 使用 AMD 加载
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/example/demo/test-css-reset.html b/templates/orange/static/wangEditor/example/demo/test-css-reset.html
new file mode 100644
index 0000000..c01a10d
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/test-css-reset.html
@@ -0,0 +1,66 @@
+
+
+
+
+ wangEditor css reset
+
+
+
+ wangEditor css reset
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/example/demo/test-emot.html b/templates/orange/static/wangEditor/example/demo/test-emot.html
new file mode 100644
index 0000000..02d8f7f
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/test-emot.html
@@ -0,0 +1,84 @@
+
+
+
+
+ wangEditor 配置表情
+
+
+ wangEditor 配置表情
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/example/demo/test-fullscreen.html b/templates/orange/static/wangEditor/example/demo/test-fullscreen.html
new file mode 100644
index 0000000..cbbaa01
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/test-fullscreen.html
@@ -0,0 +1,114 @@
+
+
+
+
+ wangEditor 全屏
+
+
+
+ wangEditor 全屏
+
+
+
+
+
+
+
+
wangEditor 本身不包含“全屏”功能,不过可以很简单的开发出来
+
注意,全屏模式与max-height
有冲突,尽量避免一起使用
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/example/demo/test-get-content.html b/templates/orange/static/wangEditor/example/demo/test-get-content.html
new file mode 100644
index 0000000..012c81c
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/test-get-content.html
@@ -0,0 +1,34 @@
+
+
+
+
+ wangEditor 获取内容
+
+
+ wangEditor 获取内容
+
+
欢迎使用 wangEditor 富文本编辑器
+
欢迎使用 wangEditor 富文本编辑器
+
+
+ 获取html
+ 获取text
+
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/example/demo/test-getJSON.html b/templates/orange/static/wangEditor/example/demo/test-getJSON.html
new file mode 100644
index 0000000..68cd155
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/test-getJSON.html
@@ -0,0 +1,30 @@
+
+
+
+
+ wangEditor demo getJSON
+
+
+ 获取 JSON
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+ getJSON
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/example/demo/test-lang.html b/templates/orange/static/wangEditor/example/demo/test-lang.html
new file mode 100644
index 0000000..6c77826
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/test-lang.html
@@ -0,0 +1,31 @@
+
+
+
+
+ wangEditor lang test
+
+
+ 多语言测试
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/example/demo/test-menus.html b/templates/orange/static/wangEditor/example/demo/test-menus.html
new file mode 100644
index 0000000..4afd45f
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/test-menus.html
@@ -0,0 +1,26 @@
+
+
+
+
+ wangEditor 菜单配置
+
+
+ wangEditor 自定义菜单配置
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/example/demo/test-mult.html b/templates/orange/static/wangEditor/example/demo/test-mult.html
new file mode 100644
index 0000000..bd6f7e1
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/test-mult.html
@@ -0,0 +1,44 @@
+
+
+
+
+ wangEditor 一个页面多个编辑器
+
+
+
+
+ 第一个 demo(菜单和编辑器区域分开)
+
+
+ 中间隔离带
+
+
+ 第二个 demo(常规)
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/example/demo/test-onblur.html b/templates/orange/static/wangEditor/example/demo/test-onblur.html
new file mode 100644
index 0000000..a6644bf
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/test-onblur.html
@@ -0,0 +1,23 @@
+
+
+
+
+ wangEditor test onblur
+
+
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/example/demo/test-onchange.html b/templates/orange/static/wangEditor/example/demo/test-onchange.html
new file mode 100644
index 0000000..231de10
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/test-onchange.html
@@ -0,0 +1,24 @@
+
+
+
+
+ wangEditor test onchange
+
+
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/example/demo/test-onfocus.html b/templates/orange/static/wangEditor/example/demo/test-onfocus.html
new file mode 100644
index 0000000..7d95de0
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/test-onfocus.html
@@ -0,0 +1,22 @@
+
+
+
+
+ wangEditor test onfocus
+
+
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/example/demo/test-paste.html b/templates/orange/static/wangEditor/example/demo/test-paste.html
new file mode 100644
index 0000000..a3a7477
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/test-paste.html
@@ -0,0 +1,25 @@
+
+
+
+
+ wangEditor paste test
+
+
+ wangEditor paste test
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/example/demo/test-set-content.html b/templates/orange/static/wangEditor/example/demo/test-set-content.html
new file mode 100644
index 0000000..42eff3b
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/test-set-content.html
@@ -0,0 +1,35 @@
+
+
+
+
+ wangEditor 设置内容
+
+
+ wangEditor 设置内容
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+ 追加内容
+ 清空内容
+
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/example/demo/test-sperate.html b/templates/orange/static/wangEditor/example/demo/test-sperate.html
new file mode 100644
index 0000000..0d0b857
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/test-sperate.html
@@ -0,0 +1,35 @@
+
+
+
+
+ wangEditor 菜单和编辑器区域分离
+
+
+
+
+ wangEditor 菜单和编辑器区域分离
+
+
+ 中间隔离带
+
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/example/demo/test-textarea.html b/templates/orange/static/wangEditor/example/demo/test-textarea.html
new file mode 100644
index 0000000..8e41119
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/test-textarea.html
@@ -0,0 +1,33 @@
+
+
+
+
+ wangEditor demo textarea
+
+
+ 编辑器
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+
+
+ textarea
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/example/demo/test-uploadimg.html b/templates/orange/static/wangEditor/example/demo/test-uploadimg.html
new file mode 100644
index 0000000..97246ca
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/demo/test-uploadimg.html
@@ -0,0 +1,58 @@
+
+
+
+
+ wangEditor 上传图片
+
+
+ wangEditor 上传图片到服务器
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+ wangEditor 以base64保存图片文件
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+ wangEditor 自定义上传图片
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/example/favicon.ico b/templates/orange/static/wangEditor/example/favicon.ico
new file mode 100644
index 0000000..6075775
Binary files /dev/null and b/templates/orange/static/wangEditor/example/favicon.ico differ
diff --git a/templates/orange/static/wangEditor/example/icomoon/Read Me.txt b/templates/orange/static/wangEditor/example/icomoon/Read Me.txt
new file mode 100644
index 0000000..8491652
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/icomoon/Read Me.txt
@@ -0,0 +1,7 @@
+Open *demo.html* to see a list of all the glyphs in your font along with their codes/ligatures.
+
+To use the generated font in desktop programs, you can install the TTF font. In order to copy the character associated with each icon, refer to the text box at the bottom right corner of each glyph in demo.html. The character inside this text box may be invisible; but it can still be copied. See this guide for more info: https://icomoon.io/#docs/local-fonts
+
+You won't need any of the files located under the *demo-files* directory when including the generated font in your own projects.
+
+You can import *selection.json* back to the IcoMoon app using the *Import Icons* button (or via Main Menu → Manage Projects) to retrieve your icon selection.
diff --git a/templates/orange/static/wangEditor/example/icomoon/demo-files/demo.css b/templates/orange/static/wangEditor/example/icomoon/demo-files/demo.css
new file mode 100644
index 0000000..f9ab27c
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/icomoon/demo-files/demo.css
@@ -0,0 +1,155 @@
+body {
+ padding: 0;
+ margin: 0;
+ font-family: sans-serif;
+ font-size: 1em;
+ line-height: 1.5;
+ color: #555;
+ background: #fff;
+}
+h1 {
+ font-size: 1.5em;
+ font-weight: normal;
+}
+small {
+ font-size: .66666667em;
+}
+a {
+ color: #e74c3c;
+ text-decoration: none;
+}
+a:hover, a:focus {
+ box-shadow: 0 1px #e74c3c;
+}
+.bshadow0, input {
+ box-shadow: inset 0 -2px #e7e7e7;
+}
+input:hover {
+ box-shadow: inset 0 -2px #ccc;
+}
+input, fieldset {
+ font-family: sans-serif;
+ font-size: 1em;
+ margin: 0;
+ padding: 0;
+ border: 0;
+}
+input {
+ color: inherit;
+ line-height: 1.5;
+ height: 1.5em;
+ padding: .25em 0;
+}
+input:focus {
+ outline: none;
+ box-shadow: inset 0 -2px #449fdb;
+}
+.glyph {
+ font-size: 16px;
+ width: 15em;
+ padding-bottom: 1em;
+ margin-right: 4em;
+ margin-bottom: 1em;
+ float: left;
+ overflow: hidden;
+}
+.liga {
+ width: 80%;
+ width: calc(100% - 2.5em);
+}
+.talign-right {
+ text-align: right;
+}
+.talign-center {
+ text-align: center;
+}
+.bgc1 {
+ background: #f1f1f1;
+}
+.fgc1 {
+ color: #999;
+}
+.fgc0 {
+ color: #000;
+}
+p {
+ margin-top: 1em;
+ margin-bottom: 1em;
+}
+.mvm {
+ margin-top: .75em;
+ margin-bottom: .75em;
+}
+.mtn {
+ margin-top: 0;
+}
+.mtl, .mal {
+ margin-top: 1.5em;
+}
+.mbl, .mal {
+ margin-bottom: 1.5em;
+}
+.mal, .mhl {
+ margin-left: 1.5em;
+ margin-right: 1.5em;
+}
+.mhmm {
+ margin-left: 1em;
+ margin-right: 1em;
+}
+.mls {
+ margin-left: .25em;
+}
+.ptl {
+ padding-top: 1.5em;
+}
+.pbs, .pvs {
+ padding-bottom: .25em;
+}
+.pvs, .pts {
+ padding-top: .25em;
+}
+.unit {
+ float: left;
+}
+.unitRight {
+ float: right;
+}
+.size1of2 {
+ width: 50%;
+}
+.size1of1 {
+ width: 100%;
+}
+.clearfix:before, .clearfix:after {
+ content: " ";
+ display: table;
+}
+.clearfix:after {
+ clear: both;
+}
+.hidden-true {
+ display: none;
+}
+.textbox0 {
+ width: 3em;
+ background: #f1f1f1;
+ padding: .25em .5em;
+ line-height: 1.5;
+ height: 1.5em;
+}
+#testDrive {
+ display: block;
+ padding-top: 24px;
+ line-height: 1.5;
+}
+.fs0 {
+ font-size: 16px;
+}
+.fs1 {
+ font-size: 16px;
+}
+.fs2 {
+ font-size: 16px;
+}
+
diff --git a/templates/orange/static/wangEditor/example/icomoon/demo-files/demo.js b/templates/orange/static/wangEditor/example/icomoon/demo-files/demo.js
new file mode 100644
index 0000000..6f45f1c
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/icomoon/demo-files/demo.js
@@ -0,0 +1,30 @@
+if (!('boxShadow' in document.body.style)) {
+ document.body.setAttribute('class', 'noBoxShadow');
+}
+
+document.body.addEventListener("click", function(e) {
+ var target = e.target;
+ if (target.tagName === "INPUT" &&
+ target.getAttribute('class').indexOf('liga') === -1) {
+ target.select();
+ }
+});
+
+(function() {
+ var fontSize = document.getElementById('fontSize'),
+ testDrive = document.getElementById('testDrive'),
+ testText = document.getElementById('testText');
+ function updateTest() {
+ testDrive.innerHTML = testText.value || String.fromCharCode(160);
+ if (window.icomoonLiga) {
+ window.icomoonLiga(testDrive);
+ }
+ }
+ function updateSize() {
+ testDrive.style.fontSize = fontSize.value + 'px';
+ }
+ fontSize.addEventListener('change', updateSize, false);
+ testText.addEventListener('input', updateTest, false);
+ testText.addEventListener('change', updateTest, false);
+ updateSize();
+}());
diff --git a/templates/orange/static/wangEditor/example/icomoon/demo.html b/templates/orange/static/wangEditor/example/icomoon/demo.html
new file mode 100644
index 0000000..a36d3ba
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/icomoon/demo.html
@@ -0,0 +1,505 @@
+
+
+
+
+ IcoMoon Demo
+
+
+
+
+
+
+
Font Name: icomoon (Glyphs: 27)
+
+
+
Grid Size: 14
+
+
+
+
+
+
+
+
+
+
Grid Size: 16
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Font Test Drive
+
+ Font Size:
+ px
+
+
+
+
+
+
+
+
+
+
+
diff --git a/templates/orange/static/wangEditor/example/icomoon/fonts/icomoon.eot b/templates/orange/static/wangEditor/example/icomoon/fonts/icomoon.eot
new file mode 100644
index 0000000..0d144fd
Binary files /dev/null and b/templates/orange/static/wangEditor/example/icomoon/fonts/icomoon.eot differ
diff --git a/templates/orange/static/wangEditor/example/icomoon/fonts/icomoon.svg b/templates/orange/static/wangEditor/example/icomoon/fonts/icomoon.svg
new file mode 100644
index 0000000..21be016
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/icomoon/fonts/icomoon.svg
@@ -0,0 +1,37 @@
+
+
+
+Generated by IcoMoon
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/example/icomoon/fonts/icomoon.ttf b/templates/orange/static/wangEditor/example/icomoon/fonts/icomoon.ttf
new file mode 100644
index 0000000..80be9ad
Binary files /dev/null and b/templates/orange/static/wangEditor/example/icomoon/fonts/icomoon.ttf differ
diff --git a/templates/orange/static/wangEditor/example/icomoon/fonts/icomoon.woff b/templates/orange/static/wangEditor/example/icomoon/fonts/icomoon.woff
new file mode 100644
index 0000000..fa64c4d
Binary files /dev/null and b/templates/orange/static/wangEditor/example/icomoon/fonts/icomoon.woff differ
diff --git a/templates/orange/static/wangEditor/example/icomoon/selection.json b/templates/orange/static/wangEditor/example/icomoon/selection.json
new file mode 100644
index 0000000..b4a875f
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/icomoon/selection.json
@@ -0,0 +1,775 @@
+{
+ "IcoMoonType": "selection",
+ "icons": [
+ {
+ "icon": {
+ "paths": [
+ "M741.714 755.429q0 22.857-16 38.857l-77.714 77.714q-16 16-38.857 16t-38.857-16l-168-168-168 168q-16 16-38.857 16t-38.857-16l-77.714-77.714q-16-16-16-38.857t16-38.857l168-168-168-168q-16-16-16-38.857t16-38.857l77.714-77.714q16-16 38.857-16t38.857 16l168 168 168-168q16-16 38.857-16t38.857 16l77.714 77.714q16 16 16 38.857t-16 38.857l-168 168 168 168q16 16 16 38.857z"
+ ],
+ "width": 804.5720062255859,
+ "attrs": [],
+ "isMulticolor": false,
+ "isMulticolor2": false,
+ "tags": [
+ "close",
+ "remove",
+ "times"
+ ],
+ "defaultCode": 61453,
+ "grid": 14
+ },
+ "attrs": [],
+ "properties": {
+ "name": "close, remove, times",
+ "id": 13,
+ "order": 60,
+ "prevSize": 16,
+ "code": 61453
+ },
+ "setIdx": 0,
+ "setId": 2,
+ "iconIdx": 13
+ },
+ {
+ "icon": {
+ "paths": [
+ "M292.571 420.571v329.143q0 8-5.143 13.143t-13.143 5.143h-36.571q-8 0-13.143-5.143t-5.143-13.143v-329.143q0-8 5.143-13.143t13.143-5.143h36.571q8 0 13.143 5.143t5.143 13.143zM438.857 420.571v329.143q0 8-5.143 13.143t-13.143 5.143h-36.571q-8 0-13.143-5.143t-5.143-13.143v-329.143q0-8 5.143-13.143t13.143-5.143h36.571q8 0 13.143 5.143t5.143 13.143zM585.143 420.571v329.143q0 8-5.143 13.143t-13.143 5.143h-36.571q-8 0-13.143-5.143t-5.143-13.143v-329.143q0-8 5.143-13.143t13.143-5.143h36.571q8 0 13.143 5.143t5.143 13.143zM658.286 834.286v-541.714h-512v541.714q0 12.571 4 23.143t8.286 15.429 6 4.857h475.429q1.714 0 6-4.857t8.286-15.429 4-23.143zM274.286 219.429h256l-27.429-66.857q-4-5.143-9.714-6.286h-181.143q-5.714 1.143-9.714 6.286zM804.571 237.714v36.571q0 8-5.143 13.143t-13.143 5.143h-54.857v541.714q0 47.429-26.857 82t-64.571 34.571h-475.429q-37.714 0-64.571-33.429t-26.857-80.857v-544h-54.857q-8 0-13.143-5.143t-5.143-13.143v-36.571q0-8 5.143-13.143t13.143-5.143h176.571l40-95.429q8.571-21.143 30.857-36t45.143-14.857h182.857q22.857 0 45.143 14.857t30.857 36l40 95.429h176.571q8 0 13.143 5.143t5.143 13.143z"
+ ],
+ "width": 804.5710134506226,
+ "attrs": [],
+ "isMulticolor": false,
+ "isMulticolor2": false,
+ "tags": [
+ "trash-o"
+ ],
+ "defaultCode": 61460,
+ "grid": 14
+ },
+ "attrs": [],
+ "properties": {
+ "name": "trash-o",
+ "id": 19,
+ "order": 53,
+ "prevSize": 16,
+ "code": 61460
+ },
+ "setIdx": 0,
+ "setId": 2,
+ "iconIdx": 19
+ },
+ {
+ "icon": {
+ "paths": [
+ "M334.286 561.714l-266.286 266.286q-5.714 5.714-13.143 5.714t-13.143-5.714l-28.571-28.571q-5.714-5.714-5.714-13.143t5.714-13.143l224.571-224.571-224.571-224.571q-5.714-5.714-5.714-13.143t5.714-13.143l28.571-28.571q5.714-5.714 13.143-5.714t13.143 5.714l266.286 266.286q5.714 5.714 5.714 13.143t-5.714 13.143zM950.857 822.857v36.571q0 8-5.143 13.143t-13.143 5.143h-548.571q-8 0-13.143-5.143t-5.143-13.143v-36.571q0-8 5.143-13.143t13.143-5.143h548.571q8 0 13.143 5.143t5.143 13.143z"
+ ],
+ "width": 958.2859897613525,
+ "attrs": [],
+ "isMulticolor": false,
+ "isMulticolor2": false,
+ "tags": [
+ "terminal"
+ ],
+ "defaultCode": 61728,
+ "grid": 14
+ },
+ "attrs": [],
+ "properties": {
+ "name": "terminal",
+ "id": 256,
+ "order": 55,
+ "prevSize": 16,
+ "code": 61728
+ },
+ "setIdx": 0,
+ "setId": 2,
+ "iconIdx": 256
+ },
+ {
+ "icon": {
+ "paths": [
+ "M961.143 950.857q-25.143 0-75.714-2t-76.286-2q-25.143 0-75.429 2t-75.429 2q-13.714 0-21.143-11.714t-7.429-26q0-17.714 9.714-26.286t22.286-9.714 29.143-4 25.714-8.571q18.857-12 18.857-80l-0.571-223.429q0-12-0.571-17.714-7.429-2.286-28.571-2.286h-385.714q-21.714 0-29.143 2.286-0.571 5.714-0.571 17.714l-0.571 212q0 81.143 21.143 93.714 9.143 5.714 27.429 7.429t32.571 2 25.714 8.571 11.429 26q0 14.857-7.143 27.429t-20.857 12.571q-26.857 0-79.714-2t-79.143-2q-24.571 0-73.143 2t-72.571 2q-13.143 0-20.286-12t-7.143-25.714q0-17.143 8.857-25.714t20.571-10 27.143-4.286 24-8.571q18.857-13.143 18.857-81.714l-0.571-32.571v-464.571q0-1.714 0.286-14.857t0-20.857-0.857-22-2-24-3.714-20.857-6.286-18-9.143-10.286q-8.571-5.714-25.714-6.857t-30.286-1.143-23.429-8-10.286-25.714q0-14.857 6.857-27.429t20.571-12.571q26.286 0 79.143 2t79.143 2q24 0 72.286-2t72.286-2q14.286 0 21.429 12.571t7.143 27.429q0 17.143-9.714 24.857t-22 8.286-28.286 2.286-24.571 7.429q-20 12-20 91.429l0.571 182.857q0 12 0.571 18.286 7.429 1.714 22.286 1.714h399.429q14.286 0 21.714-1.714 0.571-6.286 0.571-18.286l0.571-182.857q0-79.429-20-91.429-10.286-6.286-33.429-7.143t-37.714-7.429-14.571-28.286q0-14.857 7.143-27.429t21.429-12.571q25.143 0 75.429 2t75.429 2q24.571 0 73.714-2t73.714-2q14.286 0 21.429 12.571t7.143 27.429q0 17.143-10 25.143t-22.857 8.286-29.429 1.714-25.143 7.143q-20 13.143-20 92l0.571 538.857q0 68 19.429 80 9.143 5.714 26.286 7.714t30.571 2.571 23.714 8.857 10.286 25.429q0 14.857-6.857 27.429t-20.571 12.571z"
+ ],
+ "width": 1024.001937866211,
+ "attrs": [],
+ "isMulticolor": false,
+ "isMulticolor2": false,
+ "tags": [
+ "header"
+ ],
+ "defaultCode": 61916,
+ "grid": 14
+ },
+ "attrs": [],
+ "properties": {
+ "name": "header",
+ "id": 433,
+ "order": 49,
+ "prevSize": 16,
+ "code": 61916
+ },
+ "setIdx": 0,
+ "setId": 2,
+ "iconIdx": 433
+ },
+ {
+ "icon": {
+ "paths": [
+ "M922.857 0q40 0 70 26.571t30 66.571q0 36-25.714 86.286-189.714 359.429-265.714 429.714-55.429 52-124.571 52-72 0-123.714-52.857t-51.714-125.429q0-73.143 52.571-121.143l364.571-330.857q33.714-30.857 74.286-30.857zM403.429 590.857q22.286 43.429 60.857 74.286t86 43.429l0.571 40.571q2.286 121.714-74 198.286t-199.143 76.571q-70.286 0-124.571-26.571t-87.143-72.857-49.429-104.571-16.571-125.714q4 2.857 23.429 17.143t35.429 25.429 33.714 20.857 26.286 9.714q23.429 0 31.429-21.143 14.286-37.714 32.857-64.286t39.714-43.429 50.286-27.143 58.857-14.571 71.429-6z"
+ ],
+ "width": 1022.8569793701172,
+ "attrs": [],
+ "isMulticolor": false,
+ "isMulticolor2": false,
+ "tags": [
+ "paint-brush"
+ ],
+ "defaultCode": 61948,
+ "grid": 14
+ },
+ "attrs": [],
+ "properties": {
+ "name": "paint-brush",
+ "id": 463,
+ "order": 54,
+ "prevSize": 16,
+ "code": 61948
+ },
+ "setIdx": 0,
+ "setId": 2,
+ "iconIdx": 463
+ },
+ {
+ "icon": {
+ "paths": [
+ "M384 640l128-64 448-448-64-64-448 448-64 128zM289.3 867.098c-31.632-66.728-65.666-100.762-132.396-132.394l99.096-272.792 128-77.912 384-384h-192l-384 384-192 640 640-192 384-384v-192l-384 384-77.912 128z"
+ ],
+ "tags": [
+ "pencil",
+ "write",
+ "edit"
+ ],
+ "defaultCode": 59654,
+ "grid": 16,
+ "attrs": []
+ },
+ "attrs": [],
+ "properties": {
+ "ligatures": "pencil2, write2",
+ "name": "pencil2",
+ "order": 32,
+ "id": 7,
+ "prevSize": 16,
+ "code": 59654
+ },
+ "setIdx": 1,
+ "setId": 1,
+ "iconIdx": 6
+ },
+ {
+ "icon": {
+ "paths": [
+ "M959.884 128c0.040 0.034 0.082 0.076 0.116 0.116v767.77c-0.034 0.040-0.076 0.082-0.116 0.116h-895.77c-0.040-0.034-0.082-0.076-0.114-0.116v-767.772c0.034-0.040 0.076-0.082 0.114-0.114h895.77zM960 64h-896c-35.2 0-64 28.8-64 64v768c0 35.2 28.8 64 64 64h896c35.2 0 64-28.8 64-64v-768c0-35.2-28.8-64-64-64v0z",
+ "M832 288c0 53.020-42.98 96-96 96s-96-42.98-96-96 42.98-96 96-96 96 42.98 96 96z",
+ "M896 832h-768v-128l224-384 256 320h64l224-192z"
+ ],
+ "tags": [
+ "image",
+ "picture",
+ "photo",
+ "graphic"
+ ],
+ "defaultCode": 59661,
+ "grid": 16,
+ "attrs": []
+ },
+ "attrs": [],
+ "properties": {
+ "ligatures": "image, picture",
+ "name": "image",
+ "order": 44,
+ "id": 14,
+ "prevSize": 16,
+ "code": 59661
+ },
+ "setIdx": 1,
+ "setId": 1,
+ "iconIdx": 13
+ },
+ {
+ "icon": {
+ "paths": [
+ "M981.188 160.108c-143.632-20.65-302.332-32.108-469.186-32.108-166.86 0-325.556 11.458-469.194 32.108-27.53 107.726-42.808 226.75-42.808 351.892 0 125.14 15.278 244.166 42.808 351.89 143.638 20.652 302.336 32.11 469.194 32.11 166.854 0 325.552-11.458 469.186-32.11 27.532-107.724 42.812-226.75 42.812-351.89 0-125.142-15.28-244.166-42.812-351.892zM384.002 704v-384l320 192-320 192z"
+ ],
+ "tags": [
+ "play",
+ "video",
+ "movie"
+ ],
+ "defaultCode": 59666,
+ "grid": 16,
+ "attrs": []
+ },
+ "attrs": [],
+ "properties": {
+ "ligatures": "play, video",
+ "name": "play",
+ "order": 51,
+ "id": 19,
+ "prevSize": 16,
+ "code": 59666
+ },
+ "setIdx": 1,
+ "setId": 1,
+ "iconIdx": 18
+ },
+ {
+ "icon": {
+ "paths": [
+ "M512 0c-176.732 0-320 143.268-320 320 0 320 320 704 320 704s320-384 320-704c0-176.732-143.27-320-320-320zM512 512c-106.040 0-192-85.96-192-192s85.96-192 192-192 192 85.96 192 192-85.96 192-192 192z"
+ ],
+ "tags": [
+ "location",
+ "map-marker",
+ "pin"
+ ],
+ "defaultCode": 59719,
+ "grid": 16,
+ "attrs": []
+ },
+ "attrs": [],
+ "properties": {
+ "ligatures": "location, map-marker",
+ "name": "location",
+ "order": 48,
+ "id": 72,
+ "prevSize": 16,
+ "code": 59719
+ },
+ "setIdx": 1,
+ "setId": 1,
+ "iconIdx": 71
+ },
+ {
+ "icon": {
+ "paths": [
+ "M512 64c-141.384 0-269.376 57.32-362.032 149.978l-149.968-149.978v384h384l-143.532-143.522c69.496-69.492 165.492-112.478 271.532-112.478 212.068 0 384 171.924 384 384 0 114.696-50.292 217.636-130.018 288l84.666 96c106.302-93.816 173.352-231.076 173.352-384 0-282.77-229.23-512-512-512z"
+ ],
+ "tags": [
+ "undo",
+ "ccw",
+ "arrow"
+ ],
+ "defaultCode": 59749,
+ "grid": 16,
+ "attrs": []
+ },
+ "attrs": [],
+ "properties": {
+ "ligatures": "undo, ccw",
+ "name": "undo",
+ "order": 35,
+ "id": 102,
+ "prevSize": 16,
+ "code": 59749
+ },
+ "setIdx": 1,
+ "setId": 1,
+ "iconIdx": 101
+ },
+ {
+ "icon": {
+ "paths": [
+ "M0 576c0 152.924 67.048 290.184 173.35 384l84.666-96c-79.726-70.364-130.016-173.304-130.016-288 0-212.076 171.93-384 384-384 106.042 0 202.038 42.986 271.53 112.478l-143.53 143.522h384v-384l-149.97 149.978c-92.654-92.658-220.644-149.978-362.030-149.978-282.77 0-512 229.23-512 512z"
+ ],
+ "tags": [
+ "redo",
+ "cw",
+ "arrow"
+ ],
+ "defaultCode": 59750,
+ "grid": 16,
+ "attrs": []
+ },
+ "attrs": [],
+ "properties": {
+ "ligatures": "redo, cw",
+ "name": "redo",
+ "order": 36,
+ "id": 103,
+ "prevSize": 16,
+ "code": 59750
+ },
+ "setIdx": 1,
+ "setId": 1,
+ "iconIdx": 102
+ },
+ {
+ "icon": {
+ "paths": [
+ "M225 448c123.712 0 224 100.29 224 224 0 123.712-100.288 224-224 224s-224-100.288-224-224l-1-32c0-247.424 200.576-448 448-448v128c-85.474 0-165.834 33.286-226.274 93.726-11.634 11.636-22.252 24.016-31.83 37.020 11.438-1.8 23.16-2.746 35.104-2.746zM801 448c123.71 0 224 100.29 224 224 0 123.712-100.29 224-224 224s-224-100.288-224-224l-1-32c0-247.424 200.576-448 448-448v128c-85.474 0-165.834 33.286-226.274 93.726-11.636 11.636-22.254 24.016-31.832 37.020 11.44-1.8 23.16-2.746 35.106-2.746z"
+ ],
+ "tags": [
+ "quotes-left",
+ "ldquo"
+ ],
+ "defaultCode": 59767,
+ "grid": 16,
+ "attrs": []
+ },
+ "attrs": [],
+ "properties": {
+ "ligatures": "quotes-left, ldquo",
+ "name": "quotes-left",
+ "order": 34,
+ "id": 120,
+ "prevSize": 16,
+ "code": 59767
+ },
+ "setIdx": 1,
+ "setId": 1,
+ "iconIdx": 119
+ },
+ {
+ "icon": {
+ "paths": [
+ "M384 832h640v128h-640zM384 448h640v128h-640zM384 64h640v128h-640zM192 0v256h-64v-192h-64v-64zM128 526v50h128v64h-192v-146l128-60v-50h-128v-64h192v146zM256 704v320h-192v-64h128v-64h-128v-64h128v-64h-128v-64z"
+ ],
+ "tags": [
+ "list-numbered",
+ "options"
+ ],
+ "defaultCode": 59833,
+ "grid": 16,
+ "attrs": []
+ },
+ "attrs": [],
+ "properties": {
+ "ligatures": "list-numbered, options",
+ "name": "list-numbered",
+ "order": 37,
+ "id": 186,
+ "prevSize": 16,
+ "code": 59833
+ },
+ "setIdx": 1,
+ "setId": 1,
+ "iconIdx": 185
+ },
+ {
+ "icon": {
+ "paths": [
+ "M384 64h640v128h-640v-128zM384 448h640v128h-640v-128zM384 832h640v128h-640v-128zM0 128c0-70.692 57.308-128 128-128s128 57.308 128 128c0 70.692-57.308 128-128 128s-128-57.308-128-128zM0 512c0-70.692 57.308-128 128-128s128 57.308 128 128c0 70.692-57.308 128-128 128s-128-57.308-128-128zM0 896c0-70.692 57.308-128 128-128s128 57.308 128 128c0 70.692-57.308 128-128 128s-128-57.308-128-128z"
+ ],
+ "tags": [
+ "list",
+ "todo",
+ "bullet",
+ "menu",
+ "options"
+ ],
+ "defaultCode": 59835,
+ "grid": 16,
+ "attrs": []
+ },
+ "attrs": [],
+ "properties": {
+ "ligatures": "list2, todo2",
+ "name": "list2",
+ "order": 38,
+ "id": 188,
+ "prevSize": 16,
+ "code": 59835
+ },
+ "setIdx": 1,
+ "setId": 1,
+ "iconIdx": 187
+ },
+ {
+ "icon": {
+ "paths": [
+ "M0 896h1024v64h-1024zM1024 768v64h-1024v-64l128-256h256v128h256v-128h256zM224 320l288-288 288 288h-224v256h-128v-256z"
+ ],
+ "tags": [
+ "upload",
+ "load",
+ "open"
+ ],
+ "defaultCode": 59846,
+ "grid": 16,
+ "attrs": []
+ },
+ "attrs": [],
+ "properties": {
+ "ligatures": "upload2, load2",
+ "name": "upload2",
+ "order": 52,
+ "id": 199,
+ "prevSize": 16,
+ "code": 59846
+ },
+ "setIdx": 1,
+ "setId": 1,
+ "iconIdx": 198
+ },
+ {
+ "icon": {
+ "paths": [
+ "M440.236 635.766c-13.31 0-26.616-5.076-36.77-15.23-95.134-95.136-95.134-249.934 0-345.070l192-192c46.088-46.086 107.36-71.466 172.534-71.466s126.448 25.38 172.536 71.464c95.132 95.136 95.132 249.934 0 345.070l-87.766 87.766c-20.308 20.308-53.23 20.308-73.54 0-20.306-20.306-20.306-53.232 0-73.54l87.766-87.766c54.584-54.586 54.584-143.404 0-197.99-26.442-26.442-61.6-41.004-98.996-41.004s-72.552 14.562-98.996 41.006l-192 191.998c-54.586 54.586-54.586 143.406 0 197.992 20.308 20.306 20.306 53.232 0 73.54-10.15 10.152-23.462 15.23-36.768 15.23z",
+ "M256 1012c-65.176 0-126.45-25.38-172.534-71.464-95.134-95.136-95.134-249.934 0-345.070l87.764-87.764c20.308-20.306 53.234-20.306 73.54 0 20.308 20.306 20.308 53.232 0 73.54l-87.764 87.764c-54.586 54.586-54.586 143.406 0 197.992 26.44 26.44 61.598 41.002 98.994 41.002s72.552-14.562 98.998-41.006l192-191.998c54.584-54.586 54.584-143.406 0-197.992-20.308-20.308-20.306-53.232 0-73.54 20.306-20.306 53.232-20.306 73.54 0.002 95.132 95.134 95.132 249.932 0.002 345.068l-192.002 192c-46.090 46.088-107.364 71.466-172.538 71.466z"
+ ],
+ "tags": [
+ "link",
+ "chain",
+ "url",
+ "uri",
+ "anchor"
+ ],
+ "defaultCode": 59851,
+ "grid": 16,
+ "attrs": []
+ },
+ "attrs": [],
+ "properties": {
+ "ligatures": "link, chain",
+ "name": "link",
+ "order": 42,
+ "id": 204,
+ "prevSize": 16,
+ "code": 59851
+ },
+ "setIdx": 1,
+ "setId": 1,
+ "iconIdx": 203
+ },
+ {
+ "icon": {
+ "paths": [
+ "M512 1024c282.77 0 512-229.23 512-512s-229.23-512-512-512-512 229.23-512 512 229.23 512 512 512zM512 96c229.75 0 416 186.25 416 416s-186.25 416-416 416-416-186.25-416-416 186.25-416 416-416zM512 598.76c115.95 0 226.23-30.806 320-84.92-14.574 178.438-153.128 318.16-320 318.16-166.868 0-305.422-139.872-320-318.304 93.77 54.112 204.050 85.064 320 85.064zM256 352c0-53.019 28.654-96 64-96s64 42.981 64 96c0 53.019-28.654 96-64 96s-64-42.981-64-96zM640 352c0-53.019 28.654-96 64-96s64 42.981 64 96c0 53.019-28.654 96-64 96s-64-42.981-64-96z"
+ ],
+ "tags": [
+ "happy",
+ "emoticon",
+ "smiley",
+ "face"
+ ],
+ "defaultCode": 59871,
+ "grid": 16,
+ "attrs": []
+ },
+ "attrs": [],
+ "properties": {
+ "ligatures": "happy, emoticon",
+ "name": "happy",
+ "order": 31,
+ "id": 224,
+ "prevSize": 16,
+ "code": 59871
+ },
+ "setIdx": 1,
+ "setId": 1,
+ "iconIdx": 223
+ },
+ {
+ "icon": {
+ "paths": [
+ "M512 0c-282.77 0-512 229.23-512 512s229.23 512 512 512 512-229.23 512-512-229.23-512-512-512zM512 928c-229.75 0-416-186.25-416-416s186.25-416 416-416 416 186.25 416 416-186.25 416-416 416z",
+ "M672 256l-160 160-160-160-96 96 160 160-160 160 96 96 160-160 160 160 96-96-160-160 160-160z"
+ ],
+ "tags": [
+ "cancel-circle",
+ "close",
+ "remove",
+ "delete"
+ ],
+ "defaultCode": 59917,
+ "grid": 16,
+ "attrs": []
+ },
+ "attrs": [],
+ "properties": {
+ "ligatures": "cancel-circle, close",
+ "name": "cancel-circle",
+ "order": 59,
+ "id": 270,
+ "prevSize": 16,
+ "code": 59917
+ },
+ "setIdx": 1,
+ "setId": 1,
+ "iconIdx": 269
+ },
+ {
+ "icon": {
+ "paths": [
+ "M707.88 484.652c37.498-44.542 60.12-102.008 60.12-164.652 0-141.16-114.842-256-256-256h-320v896h384c141.158 0 256-114.842 256-256 0-92.956-49.798-174.496-124.12-219.348zM384 192h101.5c55.968 0 101.5 57.42 101.5 128s-45.532 128-101.5 128h-101.5v-256zM543 832h-159v-256h159c58.45 0 106 57.42 106 128s-47.55 128-106 128z"
+ ],
+ "tags": [
+ "bold",
+ "wysiwyg"
+ ],
+ "defaultCode": 60002,
+ "grid": 16,
+ "attrs": []
+ },
+ "attrs": [],
+ "properties": {
+ "ligatures": "bold, wysiwyg4",
+ "name": "bold",
+ "order": 27,
+ "id": 355,
+ "prevSize": 16,
+ "code": 60002
+ },
+ "setIdx": 1,
+ "setId": 1,
+ "iconIdx": 354
+ },
+ {
+ "icon": {
+ "paths": [
+ "M704 64h128v416c0 159.058-143.268 288-320 288-176.73 0-320-128.942-320-288v-416h128v416c0 40.166 18.238 78.704 51.354 108.506 36.896 33.204 86.846 51.494 140.646 51.494s103.75-18.29 140.646-51.494c33.116-29.802 51.354-68.34 51.354-108.506v-416zM192 832h640v128h-640z"
+ ],
+ "tags": [
+ "underline",
+ "wysiwyg"
+ ],
+ "defaultCode": 60003,
+ "grid": 16,
+ "attrs": []
+ },
+ "attrs": [],
+ "properties": {
+ "ligatures": "underline, wysiwyg5",
+ "name": "underline",
+ "order": 28,
+ "id": 356,
+ "prevSize": 16,
+ "code": 60003
+ },
+ "setIdx": 1,
+ "setId": 1,
+ "iconIdx": 355
+ },
+ {
+ "icon": {
+ "paths": [
+ "M896 64v64h-128l-320 768h128v64h-448v-64h128l320-768h-128v-64z"
+ ],
+ "tags": [
+ "italic",
+ "wysiwyg"
+ ],
+ "defaultCode": 60004,
+ "grid": 16,
+ "attrs": []
+ },
+ "attrs": [],
+ "properties": {
+ "ligatures": "italic, wysiwyg6",
+ "name": "italic",
+ "order": 29,
+ "id": 357,
+ "prevSize": 16,
+ "code": 60004
+ },
+ "setIdx": 1,
+ "setId": 1,
+ "iconIdx": 356
+ },
+ {
+ "icon": {
+ "paths": [
+ "M1024 512v64h-234.506c27.504 38.51 42.506 82.692 42.506 128 0 70.878-36.66 139.026-100.58 186.964-59.358 44.518-137.284 69.036-219.42 69.036-82.138 0-160.062-24.518-219.42-69.036-63.92-47.938-100.58-116.086-100.58-186.964h128c0 69.382 87.926 128 192 128s192-58.618 192-128c0-69.382-87.926-128-192-128h-512v-64h299.518c-2.338-1.654-4.656-3.324-6.938-5.036-63.92-47.94-100.58-116.086-100.58-186.964s36.66-139.024 100.58-186.964c59.358-44.518 137.282-69.036 219.42-69.036 82.136 0 160.062 24.518 219.42 69.036 63.92 47.94 100.58 116.086 100.58 186.964h-128c0-69.382-87.926-128-192-128s-192 58.618-192 128c0 69.382 87.926 128 192 128 78.978 0 154.054 22.678 212.482 64h299.518z"
+ ],
+ "tags": [
+ "strikethrough",
+ "wysiwyg"
+ ],
+ "defaultCode": 60005,
+ "grid": 16,
+ "attrs": []
+ },
+ "attrs": [],
+ "properties": {
+ "ligatures": "strikethrough, wysiwyg7",
+ "name": "strikethrough",
+ "order": 30,
+ "id": 358,
+ "prevSize": 16,
+ "code": 60005
+ },
+ "setIdx": 1,
+ "setId": 1,
+ "iconIdx": 357
+ },
+ {
+ "icon": {
+ "paths": [
+ "M0 512h128v64h-128zM192 512h192v64h-192zM448 512h128v64h-128zM640 512h192v64h-192zM896 512h128v64h-128zM880 0l16 448h-768l16-448h32l16 384h640l16-384zM144 1024l-16-384h768l-16 384h-32l-16-320h-640l-16 320z"
+ ],
+ "tags": [
+ "page-break",
+ "wysiwyg"
+ ],
+ "defaultCode": 60008,
+ "grid": 16,
+ "attrs": []
+ },
+ "attrs": [],
+ "properties": {
+ "ligatures": "page-break, wysiwyg10",
+ "name": "page-break",
+ "order": 57,
+ "id": 361,
+ "prevSize": 16,
+ "code": 60008
+ },
+ "setIdx": 1,
+ "setId": 1,
+ "iconIdx": 360
+ },
+ {
+ "icon": {
+ "paths": [
+ "M0 64v896h1024v-896h-1024zM384 640v-192h256v192h-256zM640 704v192h-256v-192h256zM640 192v192h-256v-192h256zM320 192v192h-256v-192h256zM64 448h256v192h-256v-192zM704 448h256v192h-256v-192zM704 384v-192h256v192h-256zM64 704h256v192h-256v-192zM704 896v-192h256v192h-256z"
+ ],
+ "tags": [
+ "table",
+ "wysiwyg"
+ ],
+ "defaultCode": 60017,
+ "grid": 16,
+ "attrs": []
+ },
+ "attrs": [],
+ "properties": {
+ "ligatures": "table2, wysiwyg19",
+ "name": "table2",
+ "order": 43,
+ "id": 370,
+ "prevSize": 16,
+ "code": 60017
+ },
+ "setIdx": 1,
+ "setId": 1,
+ "iconIdx": 369
+ },
+ {
+ "icon": {
+ "paths": [
+ "M0 64h1024v128h-1024zM0 256h640v128h-640zM0 640h640v128h-640zM0 448h1024v128h-1024zM0 832h1024v128h-1024z"
+ ],
+ "tags": [
+ "paragraph-left",
+ "wysiwyg",
+ "align-left",
+ "left"
+ ],
+ "defaultCode": 60023,
+ "grid": 16,
+ "attrs": []
+ },
+ "attrs": [],
+ "properties": {
+ "ligatures": "paragraph-left, wysiwyg25",
+ "name": "paragraph-left",
+ "order": 39,
+ "id": 376,
+ "prevSize": 16,
+ "code": 60023
+ },
+ "setIdx": 1,
+ "setId": 1,
+ "iconIdx": 375
+ },
+ {
+ "icon": {
+ "paths": [
+ "M0 64h1024v128h-1024zM192 256h640v128h-640zM192 640h640v128h-640zM0 448h1024v128h-1024zM0 832h1024v128h-1024z"
+ ],
+ "tags": [
+ "paragraph-center",
+ "wysiwyg",
+ "align-center",
+ "center"
+ ],
+ "defaultCode": 60024,
+ "grid": 16,
+ "attrs": []
+ },
+ "attrs": [],
+ "properties": {
+ "ligatures": "paragraph-center, wysiwyg26",
+ "name": "paragraph-center",
+ "order": 40,
+ "id": 377,
+ "prevSize": 16,
+ "code": 60024
+ },
+ "setIdx": 1,
+ "setId": 1,
+ "iconIdx": 376
+ },
+ {
+ "icon": {
+ "paths": [
+ "M0 64h1024v128h-1024zM384 256h640v128h-640zM384 640h640v128h-640zM0 448h1024v128h-1024zM0 832h1024v128h-1024z"
+ ],
+ "tags": [
+ "paragraph-right",
+ "wysiwyg",
+ "align-right",
+ "right"
+ ],
+ "defaultCode": 60025,
+ "grid": 16,
+ "attrs": []
+ },
+ "attrs": [],
+ "properties": {
+ "ligatures": "paragraph-right, wysiwyg27",
+ "name": "paragraph-right",
+ "order": 41,
+ "id": 378,
+ "prevSize": 16,
+ "code": 60025
+ },
+ "setIdx": 1,
+ "setId": 1,
+ "iconIdx": 377
+ }
+ ],
+ "height": 1024,
+ "metadata": {
+ "name": "icomoon"
+ },
+ "preferences": {
+ "showGlyphs": true,
+ "showQuickUse": true,
+ "showQuickUse2": true,
+ "showSVGs": true,
+ "fontPref": {
+ "prefix": "icon-",
+ "metadata": {
+ "fontFamily": "icomoon"
+ },
+ "metrics": {
+ "emSize": 1024,
+ "baseline": 6.25,
+ "whitespace": 50
+ },
+ "embed": false
+ },
+ "imagePref": {
+ "prefix": "icon-",
+ "png": true,
+ "useClassSelector": true,
+ "color": 0,
+ "bgColor": 16777215,
+ "classSelector": ".icon"
+ },
+ "historySize": 100,
+ "showCodes": true,
+ "gridSize": 16
+ }
+}
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/example/icomoon/style.css b/templates/orange/static/wangEditor/example/icomoon/style.css
new file mode 100644
index 0000000..e8caa25
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/icomoon/style.css
@@ -0,0 +1,113 @@
+@font-face {
+ font-family: 'icomoon';
+ src: url('fonts/icomoon.eot?b1ngen');
+ src: url('fonts/icomoon.eot?b1ngen#iefix') format('embedded-opentype'),
+ url('fonts/icomoon.ttf?b1ngen') format('truetype'),
+ url('fonts/icomoon.woff?b1ngen') format('woff'),
+ url('fonts/icomoon.svg?b1ngen#icomoon') format('svg');
+ font-weight: normal;
+ font-style: normal;
+}
+
+[class^="icon-"], [class*=" icon-"] {
+ /* use !important to prevent issues with browser extensions that change fonts */
+ font-family: 'icomoon' !important;
+ speak: none;
+ font-style: normal;
+ font-weight: normal;
+ font-variant: normal;
+ text-transform: none;
+ line-height: 1;
+
+ /* Better Font Rendering =========== */
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+.icon-close:before {
+ content: "\f00d";
+}
+.icon-remove:before {
+ content: "\f00d";
+}
+.icon-times:before {
+ content: "\f00d";
+}
+.icon-trash-o:before {
+ content: "\f014";
+}
+.icon-terminal:before {
+ content: "\f120";
+}
+.icon-header:before {
+ content: "\f1dc";
+}
+.icon-paint-brush:before {
+ content: "\f1fc";
+}
+.icon-pencil2:before {
+ content: "\e906";
+}
+.icon-image:before {
+ content: "\e90d";
+}
+.icon-play:before {
+ content: "\e912";
+}
+.icon-location:before {
+ content: "\e947";
+}
+.icon-undo:before {
+ content: "\e965";
+}
+.icon-redo:before {
+ content: "\e966";
+}
+.icon-quotes-left:before {
+ content: "\e977";
+}
+.icon-list-numbered:before {
+ content: "\e9b9";
+}
+.icon-list2:before {
+ content: "\e9bb";
+}
+.icon-upload2:before {
+ content: "\e9c6";
+}
+.icon-link:before {
+ content: "\e9cb";
+}
+.icon-happy:before {
+ content: "\e9df";
+}
+.icon-cancel-circle:before {
+ content: "\ea0d";
+}
+.icon-bold:before {
+ content: "\ea62";
+}
+.icon-underline:before {
+ content: "\ea63";
+}
+.icon-italic:before {
+ content: "\ea64";
+}
+.icon-strikethrough:before {
+ content: "\ea65";
+}
+.icon-page-break:before {
+ content: "\ea68";
+}
+.icon-table2:before {
+ content: "\ea71";
+}
+.icon-paragraph-left:before {
+ content: "\ea77";
+}
+.icon-paragraph-center:before {
+ content: "\ea78";
+}
+.icon-paragraph-right:before {
+ content: "\ea79";
+}
diff --git a/templates/orange/static/wangEditor/example/index.html b/templates/orange/static/wangEditor/example/index.html
new file mode 100644
index 0000000..6f55c8b
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/index.html
@@ -0,0 +1,62 @@
+
+
+
+
+ wangEditor demo list
+
+
+
+
+
可访问 wangEditor 官网 了解更多内容
+
+
欢迎使用 wangEditor 富文本编辑器
+
+
+
wangEditor demo list(demo页面直接查看网页源代码即可)
+
+
+
其他链接
+
+
+
向我捐赠
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/example/pay.png b/templates/orange/static/wangEditor/example/pay.png
new file mode 100644
index 0000000..98efb8d
Binary files /dev/null and b/templates/orange/static/wangEditor/example/pay.png differ
diff --git a/templates/orange/static/wangEditor/example/server/index.js b/templates/orange/static/wangEditor/example/server/index.js
new file mode 100644
index 0000000..28d8a60
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/server/index.js
@@ -0,0 +1,88 @@
+const fs = require('fs')
+const path = require('path')
+const formidable = require('formidable')
+const util = require('./util.js')
+
+const koa = require('koa')
+const app = koa()
+
+// 捕获错误
+const onerror = require('koa-onerror')
+onerror(app)
+
+// post body 解析
+const bodyParser = require('koa-bodyparser')
+app.use(bodyParser())
+
+// 静态文件服务,针对 html js css fonts 文件
+const staticCache = require('koa-static-cache')
+function setStaticCache() {
+ const exampleDir = path.join(__dirname, '..', '..', 'example')
+ const releaseDir = path.join(__dirname, '..', '..', 'release')
+ app.use(staticCache(exampleDir))
+ app.use(staticCache(releaseDir))
+}
+setStaticCache()
+
+// 配置路由
+const router = require('koa-router')()
+
+// 保存上传的文件
+function saveFiles(req) {
+ return new Promise((resolve, reject) => {
+ const imgLinks = []
+ const form = new formidable.IncomingForm()
+ form.parse(req, function (err, fields, files) {
+ if (err) {
+ reject('formidable, form.parse err', err.stack)
+ }
+ // 存储图片的文件夹
+ const storePath = path.resolve(__dirname, '..', 'upload-files')
+ if (!fs.existsSync(storePath)) {
+ fs.mkdirSync(storePath)
+ }
+
+ // 遍历所有上传来的图片
+ util.objForEach(files, (name, file) => {
+ // 图片临时位置
+ const tempFilePath = file.path
+ // 图片名称和路径
+ const fileName = file.name
+ const fullFileName = path.join(storePath, fileName)
+ // 将临时文件保存为正式文件
+ fs.renameSync(tempFilePath, fullFileName)
+ // 存储链接
+ imgLinks.push('/upload-files/' + fileName)
+ })
+
+ // 重新设置静态文件缓存
+ setStaticCache()
+
+ // 返回结果
+ resolve({
+ errno: 0,
+ data: imgLinks
+ })
+ })
+ })
+}
+
+// 上传图片
+router.post('/upload-img', function* () {
+ const ctx = this
+ const req = ctx.req
+ const res = ctx.res
+
+ // 获取数据
+ const data = yield saveFiles(req)
+
+ // 返回结果
+ this.body = JSON.stringify(data)
+})
+app.use(router.routes()).use(router.allowedMethods());
+
+// 启动服务
+app.listen(3000)
+console.log('listening on port %s', 3000)
+
+module.exports = app
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/example/server/util.js b/templates/orange/static/wangEditor/example/server/util.js
new file mode 100644
index 0000000..62477f2
--- /dev/null
+++ b/templates/orange/static/wangEditor/example/server/util.js
@@ -0,0 +1,14 @@
+module.exports = {
+ // 遍历对象
+ objForEach: function (obj, fn) {
+ let key, result
+ for (key in obj) {
+ if (obj.hasOwnProperty(key)) {
+ result = fn.call(obj, key, obj[key])
+ if (result === false) {
+ break
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/templates/orange/static/wangEditor/gulpfile.js b/templates/orange/static/wangEditor/gulpfile.js
new file mode 100644
index 0000000..171e7e5
--- /dev/null
+++ b/templates/orange/static/wangEditor/gulpfile.js
@@ -0,0 +1,122 @@
+const path = require('path')
+const fs = require('fs')
+const gulp = require('gulp')
+const rollup = require('rollup')
+const uglify = require('gulp-uglify')
+const sourcemaps = require('gulp-sourcemaps')
+const rename = require('gulp-rename')
+const less = require('gulp-less')
+const concat = require('gulp-concat')
+const cssmin = require('gulp-cssmin')
+const eslint = require('rollup-plugin-eslint')
+const postcss = require('gulp-postcss')
+const autoprefixer = require('autoprefixer')
+const cssgrace = require('cssgrace')
+const resolve = require('rollup-plugin-node-resolve')
+const babel = require('rollup-plugin-babel')
+const gulpReplace = require('gulp-replace')
+
+// 拷贝 fonts 文件
+gulp.task('copy-fonts', () => {
+ gulp.src('./src/fonts/*')
+ .pipe(gulp.dest('./release/fonts'))
+})
+
+// 处理 css
+gulp.task('css', () => {
+ gulp.src('./src/less/**/*.less')
+ .pipe(less())
+ // 产出的未压缩的文件名
+ .pipe(concat('wangEditor.css'))
+ // 配置 postcss
+ .pipe(postcss([
+ autoprefixer,
+ cssgrace
+ ]))
+ // 将 css 引用的字体文件转换为 base64 格式
+ .pipe(gulpReplace( /'fonts\/w-e-icon\..+?'/gm, function (fontFile) {
+ // fontFile 例如 'fonts/w-e-icon.eot?paxlku'
+ fontFile = fontFile.slice(0, -1).slice(1)
+ fontFile = fontFile.split('?')[0]
+ var ext = fontFile.split('.')[1]
+ // 读取文件内容,转换为 base64 格式
+ var filePath = path.resolve(__dirname, 'release', fontFile)
+ var content = fs.readFileSync(filePath)
+ var base64 = content.toString('base64')
+ // 返回
+ return 'data:application/x-font-' + ext + ';charset=utf-8;base64,' + base64
+ }))
+ // 产出文件的位置
+ .pipe(gulp.dest('./release'))
+ // 产出的压缩后的文件名
+ .pipe(rename('wangEditor.min.css'))
+ .pipe(cssmin())
+ .pipe(gulp.dest('./release'))
+})
+
+// 处理 JS
+gulp.task('script', () => {
+ // rollup 打包 js 模块
+ return rollup.rollup({
+ // 入口文件
+ entry: './src/js/index.js',
+ plugins: [
+ // 对原始文件启动 eslint 检查,配置参见 ./.eslintrc.json
+ eslint(),
+ resolve(),
+ babel({
+ exclude: 'node_modules/**' // only transpile our source code
+ })
+ ]
+ }).then(bundle => {
+ bundle.write({
+ // 产出文件使用 umd 规范(即兼容 amd cjs 和 iife)
+ format: 'umd',
+ // iife 规范下的全局变量名称
+ moduleName: 'wangEditor',
+ // 产出的未压缩的文件名
+ dest: './release/wangEditor.js'
+ }).then(() => {
+ // 待 rollup 打包 js 完毕之后,再进行如下的处理:
+ gulp.src('./release/wangEditor.js')
+ // inline css
+ .pipe(gulpReplace(/__INLINE_CSS__/gm, function () {
+ // 读取 css 文件内容
+ var filePath = path.resolve(__dirname, 'release', 'wangEditor.css')
+ var content = fs.readFileSync(filePath).toString('utf-8')
+ // 替换 \n \ ' 三个字符
+ content = content.replace(/\n/g, '').replace(/\\/g, '\\\\').replace(/'/g, '\\\'')
+ return content
+ }))
+ .pipe(gulp.dest('./release'))
+ .pipe(sourcemaps.init())
+ // 压缩
+ .pipe(uglify())
+ // 产出的压缩的文件名
+ .pipe(rename('wangEditor.min.js'))
+ // 生成 sourcemap
+ .pipe(sourcemaps.write(''))
+ .pipe(gulp.dest('./release'))
+ })
+ })
+})
+
+
+// 默认任务配置
+gulp.task('default', () => {
+ gulp.run('copy-fonts', 'css', 'script')
+
+ // 监听 js 原始文件的变化
+ gulp.watch('./src/js/**/*.js', () => {
+ gulp.run('script')
+ })
+ // 监听 css 原始文件的变化
+ gulp.watch('./src/less/**/*.less', () => {
+ gulp.run('css', 'script')
+ })
+ // 监听 icon.less 的变化,变化时重新拷贝 fonts 文件
+ gulp.watch('./src/less/icon.less', () => {
+ gulp.run('copy-fonts')
+ })
+})
+
diff --git a/templates/orange/static/wangEditor/package.json b/templates/orange/static/wangEditor/package.json
new file mode 100644
index 0000000..b42d94d
--- /dev/null
+++ b/templates/orange/static/wangEditor/package.json
@@ -0,0 +1,60 @@
+{
+ "name": "wangeditor",
+ "title": "wangEditor",
+ "version": "3.0.17",
+ "description": "wangEditor - 基于javascript和css开发的 web 富文本编辑器, 轻量、简洁、易用、开源免费",
+ "homepage": "http://wangeditor.github.io/",
+ "author": {
+ "name": "wangfupeng1988",
+ "url": "https://github.com/wangfupeng1988"
+ },
+ "keywords": [
+ "wangEditor",
+ "web 富文本编辑器"
+ ],
+ "main": "release/wangEditor.js",
+ "maintainers": [
+ {
+ "name": "wangfupeng1988",
+ "web": "http://www.cnblogs.com/wangfupeng1988/default.html?OnlyTitle=1",
+ "mail": "wangfupeng1988@163.com"
+ }
+ ],
+ "repositories": [
+ {
+ "type": "git",
+ "url": "https://github.com/wangfupeng1988/wangEditor"
+ }
+ ],
+ "scripts": {
+ "release": "gulp",
+ "win-example": "node ./example/server/index.js",
+ "example": "/bin/rm -rf ./example/upload-files && mkdir ./example/upload-files && npm run win-example"
+ },
+ "devDependencies": {
+ "autoprefixer": "^6.7.7",
+ "babel-plugin-external-helpers": "^6.22.0",
+ "babel-preset-latest": "^6.24.0",
+ "cssgrace": "^3.0.0",
+ "formidable": "^1.1.1",
+ "gulp": "^3.9.1",
+ "gulp-concat": "^2.6.1",
+ "gulp-cssmin": "^0.1.7",
+ "gulp-less": "^3.3.0",
+ "gulp-postcss": "^6.4.0",
+ "gulp-rename": "^1.2.2",
+ "gulp-replace": "^0.5.4",
+ "gulp-sourcemaps": "^2.5.0",
+ "gulp-uglify": "^2.1.2",
+ "koa": "^1.2.4",
+ "koa-bodyparser": "^2.3.0",
+ "koa-onerror": "^3.1.0",
+ "koa-router": "^5.4.0",
+ "koa-static-cache": "^4.0.0",
+ "rollup": "^0.41.6",
+ "rollup-plugin-babel": "^2.7.1",
+ "rollup-plugin-eslint": "^3.0.0",
+ "rollup-plugin-node-resolve": "^3.0.0"
+ },
+ "dependencies": {}
+}
diff --git a/templates/orange/static/wangEditor/release/fonts/w-e-icon.woff b/templates/orange/static/wangEditor/release/fonts/w-e-icon.woff
new file mode 100644
index 0000000..fa64c4d
Binary files /dev/null and b/templates/orange/static/wangEditor/release/fonts/w-e-icon.woff differ
diff --git a/templates/orange/static/wangEditor/release/wangEditor.css b/templates/orange/static/wangEditor/release/wangEditor.css
new file mode 100644
index 0000000..78a4c41
--- /dev/null
+++ b/templates/orange/static/wangEditor/release/wangEditor.css
@@ -0,0 +1,405 @@
+.w-e-toolbar,
+.w-e-text-container,
+.w-e-menu-panel {
+ padding: 0;
+ margin: 0;
+ box-sizing: border-box;
+}
+.w-e-toolbar *,
+.w-e-text-container *,
+.w-e-menu-panel * {
+ padding: 0;
+ margin: 0;
+ box-sizing: border-box;
+}
+.w-e-clear-fix:after {
+ content: "";
+ display: table;
+ clear: both;
+}
+
+.w-e-toolbar .w-e-droplist {
+ position: absolute;
+ left: 0;
+ top: 0;
+ background-color: #fff;
+ border: 1px solid #f1f1f1;
+ border-right-color: #ccc;
+ border-bottom-color: #ccc;
+}
+.w-e-toolbar .w-e-droplist .w-e-dp-title {
+ text-align: center;
+ color: #999;
+ line-height: 2;
+ border-bottom: 1px solid #f1f1f1;
+ font-size: 13px;
+}
+.w-e-toolbar .w-e-droplist ul.w-e-list {
+ list-style: none;
+ line-height: 1;
+}
+.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item {
+ color: #333;
+ padding: 5px 0;
+}
+.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover {
+ background-color: #f1f1f1;
+}
+.w-e-toolbar .w-e-droplist ul.w-e-block {
+ list-style: none;
+ text-align: left;
+ padding: 5px;
+}
+.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item {
+ display: inline-block;
+ *display: inline;
+ *zoom: 1;
+ padding: 3px 5px;
+}
+.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover {
+ background-color: #f1f1f1;
+}
+
+@font-face {
+ font-family: 'w-e-icon';
+ src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAABXAAAsAAAAAFXQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIPAmNtYXAAAAFoAAAA9AAAAPRAxxN6Z2FzcAAAAlwAAAAIAAAACAAAABBnbHlmAAACZAAAEHwAABB8kRGt5WhlYWQAABLgAAAANgAAADYN4rlyaGhlYQAAExgAAAAkAAAAJAfEA99obXR4AAATPAAAAHwAAAB8cAcDvGxvY2EAABO4AAAAQAAAAEAx8jYEbWF4cAAAE/gAAAAgAAAAIAAqALZuYW1lAAAUGAAAAYYAAAGGmUoJ+3Bvc3QAABWgAAAAIAAAACAAAwAAAAMD3AGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA8fwDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEANgAAAAyACAABAASAAEAIOkG6Q3pEulH6Wbpd+m56bvpxunL6d/qDepl6mjqcep58A3wFPEg8dzx/P/9//8AAAAAACDpBukN6RLpR+ll6Xfpuem76cbpy+nf6g3qYupo6nHqd/AN8BTxIPHc8fz//f//AAH/4xb+FvgW9BbAFqMWkxZSFlEWRxZDFjAWAxWvFa0VpRWgEA0QBw78DkEOIgADAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAH//wAPAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAIAAP/ABAADwAAEABMAAAE3AScBAy4BJxM3ASMBAyUBNQEHAYCAAcBA/kCfFzsyY4ABgMD+gMACgAGA/oBOAUBAAcBA/kD+nTI7FwERTgGA/oD9gMABgMD+gIAABAAAAAAEAAOAABAAIQAtADQAAAE4ATEROAExITgBMRE4ATEhNSEiBhURFBYzITI2NRE0JiMHFAYjIiY1NDYzMhYTITUTATM3A8D8gAOA/IAaJiYaA4AaJiYagDgoKDg4KCg4QP0A4AEAQOADQP0AAwBAJhr9ABomJhoDABom4Cg4OCgoODj9uIABgP7AwAAAAgAAAEAEAANAACgALAAAAS4DIyIOAgcOAxUUHgIXHgMzMj4CNz4DNTQuAicBEQ0BA9U2cXZ5Pz95dnE2Cw8LBgYLDws2cXZ5Pz95dnE2Cw8LBgYLDwv9qwFA/sADIAgMCAQECAwIKVRZWy8vW1lUKQgMCAQECAwIKVRZWy8vW1lUKf3gAYDAwAAAAAACAMD/wANAA8AAEwAfAAABIg4CFRQeAjEwPgI1NC4CAyImNTQ2MzIWFRQGAgBCdVcyZHhkZHhkMld1QlBwcFBQcHADwDJXdUJ4+syCgsz6eEJ1VzL+AHBQUHBwUFBwAAABAAAAAAQAA4AAIQAAASIOAgcnESEnPgEzMh4CFRQOAgcXPgM1NC4CIwIANWRcUiOWAYCQNYtQUItpPBIiMB5VKEAtGFCLu2oDgBUnNyOW/oCQNDw8aYtQK1FJQRpgI1ZibDlqu4tQAAEAAAAABAADgAAgAAATFB4CFzcuAzU0PgIzMhYXByERBy4DIyIOAgAYLUAoVR4wIhI8aYtQUIs1kAGAliNSXGQ1aruLUAGAOWxiViNgGkFJUStQi2k8PDSQAYCWIzcnFVCLuwACAAAAQAQBAwAAHgA9AAATMh4CFRQOAiMiLgI1JzQ+AjMVIgYHDgEHPgEhMh4CFRQOAiMiLgI1JzQ+AjMVIgYHDgEHPgHhLlI9IyM9Ui4uUj0jAUZ6o11AdS0JEAcIEgJJLlI9IyM9Ui4uUj0jAUZ6o11AdS0JEAcIEgIAIz1SLi5SPSMjPVIuIF2jekaAMC4IEwoCASM9Ui4uUj0jIz1SLiBdo3pGgDAuCBMKAgEAAAYAQP/ABAADwAADAAcACwARAB0AKQAAJSEVIREhFSERIRUhJxEjNSM1ExUzFSM1NzUjNTMVFREjNTM1IzUzNSM1AYACgP2AAoD9gAKA/YDAQEBAgMCAgMDAgICAgICAAgCAAgCAwP8AwED98jJAkjwyQJLu/sBAQEBAQAAGAAD/wAQAA8AAAwAHAAsAFwAjAC8AAAEhFSERIRUhESEVIQE0NjMyFhUUBiMiJhE0NjMyFhUUBiMiJhE0NjMyFhUUBiMiJgGAAoD9gAKA/YACgP2A/oBLNTVLSzU1S0s1NUtLNTVLSzU1S0s1NUsDgID/AID/AIADQDVLSzU1S0v+tTVLSzU1S0v+tTVLSzU1S0sAAwAAAAAEAAOgAAMADQAUAAA3IRUhJRUhNRMhFSE1ISUJASMRIxEABAD8AAQA/ACAAQABAAEA/WABIAEg4IBAQMBAQAEAgIDAASD+4P8AAQAAAAAAAgBT/8wDrQO0AC8AXAAAASImJy4BNDY/AT4BMzIWFx4BFAYPAQYiJyY0PwE2NCcuASMiBg8BBhQXFhQHDgEjAyImJy4BNDY/ATYyFxYUDwEGFBceATMyNj8BNjQnJjQ3NjIXHgEUBg8BDgEjAbgKEwgjJCQjwCNZMTFZIyMkJCNYDywPDw9YKSkUMxwcMxTAKSkPDwgTCrgxWSMjJCQjWA8sDw8PWCkpFDMcHDMUwCkpDw8PKxAjJCQjwCNZMQFECAckWl5aJMAiJSUiJFpeWiRXEBAPKw9YKXQpFBUVFMApdCkPKxAHCP6IJSIkWl5aJFcQEA8rD1gpdCkUFRUUwCl0KQ8rEA8PJFpeWiTAIiUAAAAABQAA/8AEAAPAABMAJwA7AEcAUwAABTI+AjU0LgIjIg4CFRQeAhMyHgIVFA4CIyIuAjU0PgITMj4CNw4DIyIuAiceAyc0NjMyFhUUBiMiJiU0NjMyFhUUBiMiJgIAaruLUFCLu2pqu4tQUIu7alaYcUFBcZhWVphxQUFxmFYrVVFMIwU3Vm8/P29WNwUjTFFV1SUbGyUlGxslAYAlGxslJRsbJUBQi7tqaruLUFCLu2pqu4tQA6BBcZhWVphxQUFxmFZWmHFB/gkMFSAUQ3RWMTFWdEMUIBUM9yg4OCgoODgoKDg4KCg4OAAAAAADAAD/wAQAA8AAEwAnADMAAAEiDgIVFB4CMzI+AjU0LgIDIi4CNTQ+AjMyHgIVFA4CEwcnBxcHFzcXNyc3AgBqu4tQUIu7amq7i1BQi7tqVphxQUFxmFZWmHFBQXGYSqCgYKCgYKCgYKCgA8BQi7tqaruLUFCLu2pqu4tQ/GBBcZhWVphxQUFxmFZWmHFBAqCgoGCgoGCgoGCgoAADAMAAAANAA4AAEgAbACQAAAE+ATU0LgIjIREhMj4CNTQmATMyFhUUBisBEyMRMzIWFRQGAsQcIChGXTX+wAGANV1GKET+hGUqPDwpZp+fnyw+PgHbIlQvNV1GKPyAKEZdNUZ0AUZLNTVL/oABAEs1NUsAAAIAwAAAA0ADgAAbAB8AAAEzERQOAiMiLgI1ETMRFBYXHgEzMjY3PgE1ASEVIQLAgDJXdUJCdVcygBsYHEkoKEkcGBv+AAKA/YADgP5gPGlOLS1OaTwBoP5gHjgXGBsbGBc4Hv6ggAAAAQCAAAADgAOAAAsAAAEVIwEzFSE1MwEjNQOAgP7AgP5AgAFAgAOAQP0AQEADAEAAAQAAAAAEAAOAAD0AAAEVIx4BFRQGBw4BIyImJy4BNTMUFjMyNjU0JiMhNSEuAScuATU0Njc+ATMyFhceARUjNCYjIgYVFBYzMhYXBADrFRY1MCxxPj5xLDA1gHJOTnJyTv4AASwCBAEwNTUwLHE+PnEsMDWAck5OcnJOO24rAcBAHUEiNWIkISQkISRiNTRMTDQ0TEABAwEkYjU1YiQhJCQhJGI1NExMNDRMIR8AAAAHAAD/wAQAA8AAAwAHAAsADwATABsAIwAAEzMVIzczFSMlMxUjNzMVIyUzFSMDEyETMxMhEwEDIQMjAyEDAICAwMDAAQCAgMDAwAEAgIAQEP0AECAQAoAQ/UAQAwAQIBD9gBABwEBAQEBAQEBAQAJA/kABwP6AAYD8AAGA/oABQP7AAAAKAAAAAAQAA4AAAwAHAAsADwATABcAGwAfACMAJwAAExEhEQE1IRUdASE1ARUhNSMVITURIRUhJSEVIRE1IRUBIRUhITUhFQAEAP2AAQD/AAEA/wBA/wABAP8AAoABAP8AAQD8gAEA/wACgAEAA4D8gAOA/cDAwEDAwAIAwMDAwP8AwMDAAQDAwP7AwMDAAAAFAAAAAAQAA4AAAwAHAAsADwATAAATIRUhFSEVIREhFSERIRUhESEVIQAEAPwAAoD9gAKA/YAEAPwABAD8AAOAgECA/wCAAUCA/wCAAAAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEXIRUhESEVIQMhFSERIRUhAAQA/ADAAoD9gAKA/YDABAD8AAQA/AADgIBAgP8AgAFAgP8AgAAABQAAAAAEAAOAAAMABwALAA8AEwAAEyEVIQUhFSERIRUhASEVIREhFSEABAD8AAGAAoD9gAKA/YD+gAQA/AAEAPwAA4CAQID/AIABQID/AIAAAAAAAQA/AD8C5gLmACwAACUUDwEGIyIvAQcGIyIvASY1ND8BJyY1ND8BNjMyHwE3NjMyHwEWFRQPARcWFQLmEE4QFxcQqKgQFxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQwxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQEE4QFxcQqKgQFwAAAAYAAAAAAyUDbgAUACgAPABNAFUAggAAAREUBwYrASInJjURNDc2OwEyFxYVMxEUBwYrASInJjURNDc2OwEyFxYXERQHBisBIicmNRE0NzY7ATIXFhMRIREUFxYXFjMhMjc2NzY1ASEnJicjBgcFFRQHBisBERQHBiMhIicmNREjIicmPQE0NzY7ATc2NzY7ATIXFh8BMzIXFhUBJQYFCCQIBQYGBQgkCAUGkgUFCCUIBQUFBQglCAUFkgUFCCUIBQUFBQglCAUFSf4ABAQFBAIB2wIEBAQE/oABABsEBrUGBAH3BgUINxobJv4lJhsbNwgFBQUFCLEoCBcWF7cXFhYJKLAIBQYCEv63CAUFBQUIAUkIBQYGBQj+twgFBQUFCAFJCAUGBgUI/rcIBQUFBQgBSQgFBgYF/lsCHf3jDQsKBQUFBQoLDQJmQwUCAgVVJAgGBf3jMCIjISIvAiAFBggkCAUFYBUPDw8PFWAFBQgAAgAHAEkDtwKvABoALgAACQEGIyIvASY1ND8BJyY1ND8BNjMyFwEWFRQHARUUBwYjISInJj0BNDc2MyEyFxYBTv72BgcIBR0GBuHhBgYdBQgHBgEKBgYCaQUFCP3bCAUFBQUIAiUIBQUBhf72BgYcBggHBuDhBgcHBh0FBf71BQgHBv77JQgFBQUFCCUIBQUFBQAAAAEAIwAAA90DbgCzAAAlIicmIyIHBiMiJyY1NDc2NzY3Njc2PQE0JyYjISIHBh0BFBcWFxYzFhcWFRQHBiMiJyYjIgcGIyInJjU0NzY3Njc2NzY9ARE0NTQ1NCc0JyYnJicmJyYnJiMiJyY1NDc2MzIXFjMyNzYzMhcWFRQHBiMGBwYHBh0BFBcWMyEyNzY9ATQnJicmJyY1NDc2MzIXFjMyNzYzMhcWFRQHBgciBwYHBhURFBcWFxYXMhcWFRQHBiMDwRkzMhoZMjMZDQgHCQoNDBEQChIBBxX+fhYHARUJEhMODgwLBwcOGzU1GhgxMRgNBwcJCQsMEA8JEgECAQIDBAQFCBIRDQ0KCwcHDho1NRoYMDEYDgcHCQoMDRAQCBQBBw8BkA4HARQKFxcPDgcHDhkzMhkZMTEZDgcHCgoNDRARCBQUCRERDg0KCwcHDgACAgICDAsPEQkJAQEDAwUMROAMBQMDBQzUUQ0GAQIBCAgSDwwNAgICAgwMDhEICQECAwMFDUUhAdACDQ0ICA4OCgoLCwcHAwYBAQgIEg8MDQICAgINDA8RCAgBAgEGDFC2DAcBAQcMtlAMBgEBBgcWDwwNAgICAg0MDxEICAEBAgYNT/3mRAwGAgIBCQgRDwwNAAACAAD/twP/A7cAEwA5AAABMhcWFRQHAgcGIyInJjU0NwE2MwEWFxYfARYHBiMiJyYnJicmNRYXFhcWFxYzMjc2NzY3Njc2NzY3A5soHh4avkw3RUg0NDUBbSEp/fgXJicvAQJMTHtHNjYhIRARBBMUEBASEQkXCA8SExUVHR0eHikDtxsaKCQz/plGNDU0SUkwAUsf/bErHx8NKHpNTBobLi86OkQDDw4LCwoKFiUbGhERCgsEBAIAAQAAAAAAANox8glfDzz1AAsEAAAAAADVYbp/AAAAANVhun8AAP+3BAEDwAAAAAgAAgAAAAAAAAABAAADwP/AAAAEAAAA//8EAQABAAAAAAAAAAAAAAAAAAAAHwQAAAAAAAAAAAAAAAIAAAAEAAAABAAAAAQAAAAEAADABAAAAAQAAAAEAAAABAAAQAQAAAAEAAAABAAAUwQAAAAEAAAABAAAwAQAAMAEAACABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAAAyUAPwMlAAADvgAHBAAAIwP/AAAAAAAAAAoAFAAeAEwAlADaAQoBPgFwAcgCBgJQAnoDBAN6A8gEAgQ2BE4EpgToBTAFWAWABaoF7gamBvAH4gg+AAEAAAAfALQACgAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) format('truetype');
+ font-weight: normal;
+ font-style: normal;
+}
+[class^="w-e-icon-"],
+[class*=" w-e-icon-"] {
+ /* use !important to prevent issues with browser extensions that change fonts */
+ font-family: 'w-e-icon' !important;
+ speak: none;
+ font-style: normal;
+ font-weight: normal;
+ font-variant: normal;
+ text-transform: none;
+ line-height: 1;
+ /* Better Font Rendering =========== */
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+.w-e-icon-close:before {
+ content: "\f00d";
+}
+.w-e-icon-upload2:before {
+ content: "\e9c6";
+}
+.w-e-icon-trash-o:before {
+ content: "\f014";
+}
+.w-e-icon-header:before {
+ content: "\f1dc";
+}
+.w-e-icon-pencil2:before {
+ content: "\e906";
+}
+.w-e-icon-paint-brush:before {
+ content: "\f1fc";
+}
+.w-e-icon-image:before {
+ content: "\e90d";
+}
+.w-e-icon-play:before {
+ content: "\e912";
+}
+.w-e-icon-location:before {
+ content: "\e947";
+}
+.w-e-icon-undo:before {
+ content: "\e965";
+}
+.w-e-icon-redo:before {
+ content: "\e966";
+}
+.w-e-icon-quotes-left:before {
+ content: "\e977";
+}
+.w-e-icon-list-numbered:before {
+ content: "\e9b9";
+}
+.w-e-icon-list2:before {
+ content: "\e9bb";
+}
+.w-e-icon-link:before {
+ content: "\e9cb";
+}
+.w-e-icon-happy:before {
+ content: "\e9df";
+}
+.w-e-icon-bold:before {
+ content: "\ea62";
+}
+.w-e-icon-underline:before {
+ content: "\ea63";
+}
+.w-e-icon-italic:before {
+ content: "\ea64";
+}
+.w-e-icon-strikethrough:before {
+ content: "\ea65";
+}
+.w-e-icon-table2:before {
+ content: "\ea71";
+}
+.w-e-icon-paragraph-left:before {
+ content: "\ea77";
+}
+.w-e-icon-paragraph-center:before {
+ content: "\ea78";
+}
+.w-e-icon-paragraph-right:before {
+ content: "\ea79";
+}
+.w-e-icon-terminal:before {
+ content: "\f120";
+}
+.w-e-icon-page-break:before {
+ content: "\ea68";
+}
+.w-e-icon-cancel-circle:before {
+ content: "\ea0d";
+}
+
+.w-e-toolbar {
+ display: -webkit-box;
+ display: -ms-flexbox;
+ display: flex;
+ padding: 0 5px;
+ /* flex-wrap: wrap; */
+ /* 单个菜单 */
+}
+.w-e-toolbar .w-e-menu {
+ position: relative;
+ text-align: center;
+ padding: 5px 10px;
+ cursor: pointer;
+}
+.w-e-toolbar .w-e-menu i {
+ color: #999;
+}
+.w-e-toolbar .w-e-menu:hover i {
+ color: #333;
+}
+.w-e-toolbar .w-e-active i {
+ color: #1e88e5;
+}
+.w-e-toolbar .w-e-active:hover i {
+ color: #1e88e5;
+}
+
+.w-e-text-container .w-e-panel-container {
+ position: absolute;
+ top: 0;
+ left: 50%;
+ border: 1px solid #ccc;
+ border-top: 0;
+ box-shadow: 1px 1px 2px #ccc;
+ color: #333;
+ background-color: #fff;
+ /* 为 emotion panel 定制的样式 */
+ /* 上传图片的 panel 定制样式 */
+}
+.w-e-text-container .w-e-panel-container .w-e-panel-close {
+ position: absolute;
+ right: 0;
+ top: 0;
+ padding: 5px;
+ margin: 2px 5px 0 0;
+ cursor: pointer;
+ color: #999;
+}
+.w-e-text-container .w-e-panel-container .w-e-panel-close:hover {
+ color: #333;
+}
+.w-e-text-container .w-e-panel-container .w-e-panel-tab-title {
+ list-style: none;
+ display: -webkit-box;
+ display: -ms-flexbox;
+ display: flex;
+ font-size: 14px;
+ margin: 2px 10px 0 10px;
+ border-bottom: 1px solid #f1f1f1;
+}
+.w-e-text-container .w-e-panel-container .w-e-panel-tab-title .w-e-item {
+ padding: 3px 5px;
+ color: #999;
+ cursor: pointer;
+ margin: 0 3px;
+ position: relative;
+ top: 1px;
+}
+.w-e-text-container .w-e-panel-container .w-e-panel-tab-title .w-e-active {
+ color: #333;
+ border-bottom: 1px solid #333;
+ cursor: default;
+ font-weight: 700;
+}
+.w-e-text-container .w-e-panel-container .w-e-panel-tab-content {
+ padding: 10px 15px 10px 15px;
+ font-size: 16px;
+ /* 输入框的样式 */
+ /* 按钮的样式 */
+}
+.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input:focus,
+.w-e-text-container .w-e-panel-container .w-e-panel-tab-content textarea:focus,
+.w-e-text-container .w-e-panel-container .w-e-panel-tab-content button:focus {
+ outline: none;
+}
+.w-e-text-container .w-e-panel-container .w-e-panel-tab-content textarea {
+ width: 100%;
+ border: 1px solid #ccc;
+ padding: 5px;
+}
+.w-e-text-container .w-e-panel-container .w-e-panel-tab-content textarea:focus {
+ border-color: #1e88e5;
+}
+.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text] {
+ border: none;
+ border-bottom: 1px solid #ccc;
+ font-size: 14px;
+ height: 20px;
+ color: #333;
+ text-align: left;
+}
+.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text].small {
+ width: 30px;
+ text-align: center;
+}
+.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text].block {
+ display: block;
+ width: 100%;
+ margin: 10px 0;
+}
+.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus {
+ border-bottom: 2px solid #1e88e5;
+}
+.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button {
+ font-size: 14px;
+ color: #1e88e5;
+ border: none;
+ padding: 5px 10px;
+ background-color: #fff;
+ cursor: pointer;
+ border-radius: 3px;
+}
+.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left {
+ float: left;
+ margin-right: 10px;
+}
+.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right {
+ float: right;
+ margin-left: 10px;
+}
+.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray {
+ color: #999;
+}
+.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red {
+ color: #c24f4a;
+}
+.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover {
+ background-color: #f1f1f1;
+}
+.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after {
+ content: "";
+ display: table;
+ clear: both;
+}
+.w-e-text-container .w-e-panel-container .w-e-emoticon-container .w-e-item {
+ cursor: pointer;
+ font-size: 18px;
+ padding: 0 3px;
+ display: inline-block;
+ *display: inline;
+ *zoom: 1;
+}
+.w-e-text-container .w-e-panel-container .w-e-up-img-container {
+ text-align: center;
+}
+.w-e-text-container .w-e-panel-container .w-e-up-img-container .w-e-up-btn {
+ display: inline-block;
+ *display: inline;
+ *zoom: 1;
+ color: #999;
+ cursor: pointer;
+ font-size: 60px;
+ line-height: 1;
+}
+.w-e-text-container .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover {
+ color: #333;
+}
+
+.w-e-text-container {
+ position: relative;
+}
+.w-e-text-container .w-e-progress {
+ position: absolute;
+ background-color: #1e88e5;
+ bottom: 0;
+ left: 0;
+ height: 1px;
+}
+.w-e-text {
+ padding: 0 10px;
+ overflow-y: scroll;
+}
+.w-e-text p,
+.w-e-text h1,
+.w-e-text h2,
+.w-e-text h3,
+.w-e-text h4,
+.w-e-text h5,
+.w-e-text table,
+.w-e-text pre {
+ margin: 10px 0;
+ line-height: 1.5;
+}
+.w-e-text ul,
+.w-e-text ol {
+ margin: 10px 0 10px 20px;
+}
+.w-e-text blockquote {
+ display: block;
+ border-left: 8px solid #d0e5f2;
+ padding: 5px 10px;
+ margin: 10px 0;
+ line-height: 1.4;
+ font-size: 100%;
+ background-color: #f1f1f1;
+}
+.w-e-text code {
+ display: inline-block;
+ *display: inline;
+ *zoom: 1;
+ background-color: #f1f1f1;
+ border-radius: 3px;
+ padding: 3px 5px;
+ margin: 0 3px;
+}
+.w-e-text pre code {
+ display: block;
+}
+.w-e-text table {
+ border-top: 1px solid #ccc;
+ border-left: 1px solid #ccc;
+}
+.w-e-text table td,
+.w-e-text table th {
+ border-bottom: 1px solid #ccc;
+ border-right: 1px solid #ccc;
+ padding: 3px 5px;
+}
+.w-e-text table th {
+ border-bottom: 2px solid #ccc;
+ text-align: center;
+}
+.w-e-text:focus {
+ outline: none;
+}
+.w-e-text img {
+ cursor: pointer;
+}
+.w-e-text img:hover {
+ box-shadow: 0 0 5px #333;
+}
diff --git a/templates/orange/static/wangEditor/release/wangEditor.js b/templates/orange/static/wangEditor/release/wangEditor.js
new file mode 100644
index 0000000..ea701f1
--- /dev/null
+++ b/templates/orange/static/wangEditor/release/wangEditor.js
@@ -0,0 +1,4679 @@
+(function (global, factory) {
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
+ typeof define === 'function' && define.amd ? define(factory) :
+ (global.wangEditor = factory());
+}(this, (function () { 'use strict';
+
+/*
+ poly-fill
+*/
+
+var polyfill = function () {
+
+ // Object.assign
+ if (typeof Object.assign != 'function') {
+ Object.assign = function (target, varArgs) {
+ // .length of function is 2
+ if (target == null) {
+ // TypeError if undefined or null
+ throw new TypeError('Cannot convert undefined or null to object');
+ }
+
+ var to = Object(target);
+
+ for (var index = 1; index < arguments.length; index++) {
+ var nextSource = arguments[index];
+
+ if (nextSource != null) {
+ // Skip over if undefined or null
+ for (var nextKey in nextSource) {
+ // Avoid bugs when hasOwnProperty is shadowed
+ if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {
+ to[nextKey] = nextSource[nextKey];
+ }
+ }
+ }
+ }
+ return to;
+ };
+ }
+
+ // IE 中兼容 Element.prototype.matches
+ if (!Element.prototype.matches) {
+ Element.prototype.matches = Element.prototype.matchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector || Element.prototype.oMatchesSelector || Element.prototype.webkitMatchesSelector || function (s) {
+ var matches = (this.document || this.ownerDocument).querySelectorAll(s),
+ i = matches.length;
+ while (--i >= 0 && matches.item(i) !== this) {}
+ return i > -1;
+ };
+ }
+};
+
+/*
+ DOM 操作 API
+*/
+
+// 根据 html 代码片段创建 dom 对象
+function createElemByHTML(html) {
+ var div = void 0;
+ div = document.createElement('div');
+ div.innerHTML = html;
+ return div.children;
+}
+
+// 是否是 DOM List
+function isDOMList(selector) {
+ if (!selector) {
+ return false;
+ }
+ if (selector instanceof HTMLCollection || selector instanceof NodeList) {
+ return true;
+ }
+ return false;
+}
+
+// 封装 document.querySelectorAll
+function querySelectorAll(selector) {
+ var result = document.querySelectorAll(selector);
+ if (isDOMList(result)) {
+ return result;
+ } else {
+ return [result];
+ }
+}
+
+// 记录所有的事件绑定
+var eventList = [];
+
+// 创建构造函数
+function DomElement(selector) {
+ if (!selector) {
+ return;
+ }
+
+ // selector 本来就是 DomElement 对象,直接返回
+ if (selector instanceof DomElement) {
+ return selector;
+ }
+
+ this.selector = selector;
+ var nodeType = selector.nodeType;
+
+ // 根据 selector 得出的结果(如 DOM,DOM List)
+ var selectorResult = [];
+ if (nodeType === 9) {
+ // document 节点
+ selectorResult = [selector];
+ } else if (nodeType === 1) {
+ // 单个 DOM 节点
+ selectorResult = [selector];
+ } else if (isDOMList(selector) || selector instanceof Array) {
+ // DOM List 或者数组
+ selectorResult = selector;
+ } else if (typeof selector === 'string') {
+ // 字符串
+ selector = selector.replace('/\n/mg', '').trim();
+ if (selector.indexOf('<') === 0) {
+ // 如
+ selectorResult = createElemByHTML(selector);
+ } else {
+ // 如 #id .class
+ selectorResult = querySelectorAll(selector);
+ }
+ }
+
+ var length = selectorResult.length;
+ if (!length) {
+ // 空数组
+ return this;
+ }
+
+ // 加入 DOM 节点
+ var i = void 0;
+ for (i = 0; i < length; i++) {
+ this[i] = selectorResult[i];
+ }
+ this.length = length;
+}
+
+// 修改原型
+DomElement.prototype = {
+ constructor: DomElement,
+
+ // 类数组,forEach
+ forEach: function forEach(fn) {
+ var i = void 0;
+ for (i = 0; i < this.length; i++) {
+ var elem = this[i];
+ var result = fn.call(elem, elem, i);
+ if (result === false) {
+ break;
+ }
+ }
+ return this;
+ },
+
+ // clone
+ clone: function clone(deep) {
+ var cloneList = [];
+ this.forEach(function (elem) {
+ cloneList.push(elem.cloneNode(!!deep));
+ });
+ return $(cloneList);
+ },
+
+ // 获取第几个元素
+ get: function get(index) {
+ var length = this.length;
+ if (index >= length) {
+ index = index % length;
+ }
+ return $(this[index]);
+ },
+
+ // 第一个
+ first: function first() {
+ return this.get(0);
+ },
+
+ // 最后一个
+ last: function last() {
+ var length = this.length;
+ return this.get(length - 1);
+ },
+
+ // 绑定事件
+ on: function on(type, selector, fn) {
+ // selector 不为空,证明绑定事件要加代理
+ if (!fn) {
+ fn = selector;
+ selector = null;
+ }
+
+ // type 是否有多个
+ var types = [];
+ types = type.split(/\s+/);
+
+ return this.forEach(function (elem) {
+ types.forEach(function (type) {
+ if (!type) {
+ return;
+ }
+
+ // 记录下,方便后面解绑
+ eventList.push({
+ elem: elem,
+ type: type,
+ fn: fn
+ });
+
+ if (!selector) {
+ // 无代理
+ elem.addEventListener(type, fn);
+ return;
+ }
+
+ // 有代理
+ elem.addEventListener(type, function (e) {
+ var target = e.target;
+ if (target.matches(selector)) {
+ fn.call(target, e);
+ }
+ });
+ });
+ });
+ },
+
+ // 取消事件绑定
+ off: function off(type, fn) {
+ return this.forEach(function (elem) {
+ elem.removeEventListener(type, fn);
+ });
+ },
+
+ // 获取/设置 属性
+ attr: function attr(key, val) {
+ if (val == null) {
+ // 获取值
+ return this[0].getAttribute(key);
+ } else {
+ // 设置值
+ return this.forEach(function (elem) {
+ elem.setAttribute(key, val);
+ });
+ }
+ },
+
+ // 添加 class
+ addClass: function addClass(className) {
+ if (!className) {
+ return this;
+ }
+ return this.forEach(function (elem) {
+ var arr = void 0;
+ if (elem.className) {
+ // 解析当前 className 转换为数组
+ arr = elem.className.split(/\s/);
+ arr = arr.filter(function (item) {
+ return !!item.trim();
+ });
+ // 添加 class
+ if (arr.indexOf(className) < 0) {
+ arr.push(className);
+ }
+ // 修改 elem.class
+ elem.className = arr.join(' ');
+ } else {
+ elem.className = className;
+ }
+ });
+ },
+
+ // 删除 class
+ removeClass: function removeClass(className) {
+ if (!className) {
+ return this;
+ }
+ return this.forEach(function (elem) {
+ var arr = void 0;
+ if (elem.className) {
+ // 解析当前 className 转换为数组
+ arr = elem.className.split(/\s/);
+ arr = arr.filter(function (item) {
+ item = item.trim();
+ // 删除 class
+ if (!item || item === className) {
+ return false;
+ }
+ return true;
+ });
+ // 修改 elem.class
+ elem.className = arr.join(' ');
+ }
+ });
+ },
+
+ // 修改 css
+ css: function css(key, val) {
+ var currentStyle = key + ':' + val + ';';
+ return this.forEach(function (elem) {
+ var style = (elem.getAttribute('style') || '').trim();
+ var styleArr = void 0,
+ resultArr = [];
+ if (style) {
+ // 将 style 按照 ; 拆分为数组
+ styleArr = style.split(';');
+ styleArr.forEach(function (item) {
+ // 对每项样式,按照 : 拆分为 key 和 value
+ var arr = item.split(':').map(function (i) {
+ return i.trim();
+ });
+ if (arr.length === 2) {
+ resultArr.push(arr[0] + ':' + arr[1]);
+ }
+ });
+ // 替换或者新增
+ resultArr = resultArr.map(function (item) {
+ if (item.indexOf(key) === 0) {
+ return currentStyle;
+ } else {
+ return item;
+ }
+ });
+ if (resultArr.indexOf(currentStyle) < 0) {
+ resultArr.push(currentStyle);
+ }
+ // 结果
+ elem.setAttribute('style', resultArr.join('; '));
+ } else {
+ // style 无值
+ elem.setAttribute('style', currentStyle);
+ }
+ });
+ },
+
+ // 显示
+ show: function show() {
+ return this.css('display', 'block');
+ },
+
+ // 隐藏
+ hide: function hide() {
+ return this.css('display', 'none');
+ },
+
+ // 获取子节点
+ children: function children() {
+ var elem = this[0];
+ if (!elem) {
+ return null;
+ }
+
+ return $(elem.children);
+ },
+
+ // 获取子节点(包括文本节点)
+ childNodes: function childNodes() {
+ var elem = this[0];
+ if (!elem) {
+ return null;
+ }
+
+ return $(elem.childNodes);
+ },
+
+ // 增加子节点
+ append: function append($children) {
+ return this.forEach(function (elem) {
+ $children.forEach(function (child) {
+ elem.appendChild(child);
+ });
+ });
+ },
+
+ // 移除当前节点
+ remove: function remove() {
+ return this.forEach(function (elem) {
+ if (elem.remove) {
+ elem.remove();
+ } else {
+ var parent = elem.parentElement;
+ parent && parent.removeChild(elem);
+ }
+ });
+ },
+
+ // 是否包含某个子节点
+ isContain: function isContain($child) {
+ var elem = this[0];
+ var child = $child[0];
+ return elem.contains(child);
+ },
+
+ // 尺寸数据
+ getSizeData: function getSizeData() {
+ var elem = this[0];
+ return elem.getBoundingClientRect(); // 可得到 bottom height left right top width 的数据
+ },
+
+ // 封装 nodeName
+ getNodeName: function getNodeName() {
+ var elem = this[0];
+ return elem.nodeName;
+ },
+
+ // 从当前元素查找
+ find: function find(selector) {
+ var elem = this[0];
+ return $(elem.querySelectorAll(selector));
+ },
+
+ // 获取当前元素的 text
+ text: function text(val) {
+ if (!val) {
+ // 获取 text
+ var elem = this[0];
+ return elem.innerHTML.replace(/<.*?>/g, function () {
+ return '';
+ });
+ } else {
+ // 设置 text
+ return this.forEach(function (elem) {
+ elem.innerHTML = val;
+ });
+ }
+ },
+
+ // 获取 html
+ html: function html(value) {
+ var elem = this[0];
+ if (value == null) {
+ return elem.innerHTML;
+ } else {
+ elem.innerHTML = value;
+ return this;
+ }
+ },
+
+ // 获取 value
+ val: function val() {
+ var elem = this[0];
+ return elem.value.trim();
+ },
+
+ // focus
+ focus: function focus() {
+ return this.forEach(function (elem) {
+ elem.focus();
+ });
+ },
+
+ // parent
+ parent: function parent() {
+ var elem = this[0];
+ return $(elem.parentElement);
+ },
+
+ // parentUntil 找到符合 selector 的父节点
+ parentUntil: function parentUntil(selector, _currentElem) {
+ var results = document.querySelectorAll(selector);
+ var length = results.length;
+ if (!length) {
+ // 传入的 selector 无效
+ return null;
+ }
+
+ var elem = _currentElem || this[0];
+ if (elem.nodeName === 'BODY') {
+ return null;
+ }
+
+ var parent = elem.parentElement;
+ var i = void 0;
+ for (i = 0; i < length; i++) {
+ if (parent === results[i]) {
+ // 找到,并返回
+ return $(parent);
+ }
+ }
+
+ // 继续查找
+ return this.parentUntil(selector, parent);
+ },
+
+ // 判断两个 elem 是否相等
+ equal: function equal($elem) {
+ if ($elem.nodeType === 1) {
+ return this[0] === $elem;
+ } else {
+ return this[0] === $elem[0];
+ }
+ },
+
+ // 将该元素插入到某个元素前面
+ insertBefore: function insertBefore(selector) {
+ var $referenceNode = $(selector);
+ var referenceNode = $referenceNode[0];
+ if (!referenceNode) {
+ return this;
+ }
+ return this.forEach(function (elem) {
+ var parent = referenceNode.parentNode;
+ parent.insertBefore(elem, referenceNode);
+ });
+ },
+
+ // 将该元素插入到某个元素后面
+ insertAfter: function insertAfter(selector) {
+ var $referenceNode = $(selector);
+ var referenceNode = $referenceNode[0];
+ if (!referenceNode) {
+ return this;
+ }
+ return this.forEach(function (elem) {
+ var parent = referenceNode.parentNode;
+ if (parent.lastChild === referenceNode) {
+ // 最后一个元素
+ parent.appendChild(elem);
+ } else {
+ // 不是最后一个元素
+ parent.insertBefore(elem, referenceNode.nextSibling);
+ }
+ });
+ }
+};
+
+// new 一个对象
+function $(selector) {
+ return new DomElement(selector);
+}
+
+// 解绑所有事件,用于销毁编辑器
+$.offAll = function () {
+ eventList.forEach(function (item) {
+ var elem = item.elem;
+ var type = item.type;
+ var fn = item.fn;
+ // 解绑
+ elem.removeEventListener(type, fn);
+ });
+};
+
+/*
+ 配置信息
+*/
+
+var config = {
+
+ // 默认菜单配置
+ menus: ['head', 'bold', 'italic', 'underline', 'strikeThrough', 'foreColor', 'backColor', 'link', 'list', 'justify', 'quote', 'emoticon', 'image', 'table', 'video', 'code', 'undo', 'redo'],
+
+ colors: ['#000000', '#eeece0', '#1c487f', '#4d80bf', '#c24f4a', '#8baa4a', '#7b5ba1', '#46acc8', '#f9963b', '#ffffff'],
+
+ // // 语言配置
+ // lang: {
+ // '设置标题': 'title',
+ // '正文': 'p',
+ // '链接文字': 'link text',
+ // '链接': 'link',
+ // '插入': 'insert',
+ // '创建': 'init'
+ // },
+
+ // 表情
+ emotions: [{
+ // tab 的标题
+ title: '默认',
+ // type -> 'emoji' / 'image'
+ type: 'image',
+ // content -> 数组
+ content: [{
+ alt: '[坏笑]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/50/pcmoren_huaixiao_org.png'
+ }, {
+ alt: '[舔屏]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/40/pcmoren_tian_org.png'
+ }, {
+ alt: '[污]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/3c/pcmoren_wu_org.png'
+ }, {
+ alt: '[允悲]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/2c/moren_yunbei_org.png'
+ }, {
+ alt: '[笑而不语]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/3a/moren_xiaoerbuyu_org.png'
+ }, {
+ alt: '[费解]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/3c/moren_feijie_org.png'
+ }, {
+ alt: '[憧憬]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/37/moren_chongjing_org.png'
+ }, {
+ alt: '[并不简单]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/fc/moren_bbjdnew_org.png'
+ }, {
+ alt: '[微笑]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/5c/huanglianwx_org.gif'
+ }, {
+ alt: '[酷]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/8a/pcmoren_cool2017_org.png'
+ }, {
+ alt: '[嘻嘻]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/0b/tootha_org.gif'
+ }, {
+ alt: '[哈哈]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/6a/laugh.gif'
+ }, {
+ alt: '[可爱]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/14/tza_org.gif'
+ }, {
+ alt: '[可怜]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/af/kl_org.gif'
+ }, {
+ alt: '[挖鼻]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/0b/wabi_org.gif'
+ }, {
+ alt: '[吃惊]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/f4/cj_org.gif'
+ }, {
+ alt: '[害羞]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/6e/shamea_org.gif'
+ }, {
+ alt: '[挤眼]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/c3/zy_org.gif'
+ }, {
+ alt: '[闭嘴]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/29/bz_org.gif'
+ }, {
+ alt: '[鄙视]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/71/bs2_org.gif'
+ }, {
+ alt: '[爱你]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/6d/lovea_org.gif'
+ }, {
+ alt: '[泪]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/9d/sada_org.gif'
+ }, {
+ alt: '[偷笑]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/19/heia_org.gif'
+ }, {
+ alt: '[亲亲]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/8f/qq_org.gif'
+ }, {
+ alt: '[生病]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/b6/sb_org.gif'
+ }, {
+ alt: '[太开心]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/58/mb_org.gif'
+ }, {
+ alt: '[白眼]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/d9/landeln_org.gif'
+ }, {
+ alt: '[右哼哼]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/98/yhh_org.gif'
+ }, {
+ alt: '[左哼哼]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/6d/zhh_org.gif'
+ }, {
+ alt: '[嘘]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/a6/x_org.gif'
+ }, {
+ alt: '[衰]',
+ src: 'http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/af/cry.gif'
+ }]
+ }, {
+ // tab 的标题
+ title: '新浪',
+ // type -> 'emoji' / 'image'
+ type: 'image',
+ // content -> 数组
+ content: [{
+ src: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/7a/shenshou_thumb.gif',
+ alt: '[草泥马]'
+ }, {
+ src: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/60/horse2_thumb.gif',
+ alt: '[神马]'
+ }, {
+ src: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/bc/fuyun_thumb.gif',
+ alt: '[浮云]'
+ }, {
+ src: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/c9/geili_thumb.gif',
+ alt: '[给力]'
+ }, {
+ src: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/f2/wg_thumb.gif',
+ alt: '[围观]'
+ }, {
+ src: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/70/vw_thumb.gif',
+ alt: '[威武]'
+ }, {
+ src: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/6e/panda_thumb.gif',
+ alt: '[熊猫]'
+ }, {
+ src: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/81/rabbit_thumb.gif',
+ alt: '[兔子]'
+ }, {
+ src: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/bc/otm_thumb.gif',
+ alt: '[奥特曼]'
+ }, {
+ src: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/15/j_thumb.gif',
+ alt: '[囧]'
+ }, {
+ src: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/89/hufen_thumb.gif',
+ alt: '[互粉]'
+ }, {
+ src: 'http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/c4/liwu_thumb.gif',
+ alt: '[礼物]'
+ }]
+ }, {
+ // tab 的标题
+ title: 'emoji',
+ // type -> 'emoji' / 'image'
+ type: 'emoji',
+ // content -> 数组
+ content: '😀 😃 😄 😁 😆 😅 😂 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😜 😝 😛 🤑 🤗 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😤 😠 😡 😶 😐 😑 😯 😦 😧 😮 😲 😵 😳 😱 😨 😰 😢 😥 😭 😓 😪 😴 🙄 🤔 😬 🤐'.split(/\s/)
+ }],
+
+ // 编辑区域的 z-index
+ zIndex: 10000,
+
+ // 是否开启 debug 模式(debug 模式下错误会 throw error 形式抛出)
+ debug: false,
+
+ // 插入链接时候的格式校验
+ linkCheck: function linkCheck(text, link) {
+ // text 是插入的文字
+ // link 是插入的链接
+ return true; // 返回 true 即表示成功
+ // return '校验失败' // 返回字符串即表示失败的提示信息
+ },
+
+ // 插入网络图片的校验
+ linkImgCheck: function linkImgCheck(src) {
+ // src 即图片的地址
+ return true; // 返回 true 即表示成功
+ // return '校验失败' // 返回字符串即表示失败的提示信息
+ },
+
+ // 粘贴过滤样式,默认开启
+ pasteFilterStyle: true,
+
+ // 对粘贴的文字进行自定义处理,返回处理后的结果。编辑器会将处理后的结果粘贴到编辑区域中。
+ // IE 暂时不支持
+ pasteTextHandle: function pasteTextHandle(content) {
+ // content 即粘贴过来的内容(html 或 纯文本),可进行自定义处理然后返回
+ return content;
+ },
+
+ // onchange 事件
+ // onchange: function (html) {
+ // // html 即变化之后的内容
+ // console.log(html)
+ // },
+
+ // 是否显示添加网络图片的 tab
+ showLinkImg: true,
+
+ // 插入网络图片的回调
+ linkImgCallback: function linkImgCallback(url) {
+ // console.log(url) // url 即插入图片的地址
+ },
+
+ // 默认上传图片 max size: 5M
+ uploadImgMaxSize: 5 * 1024 * 1024,
+
+ // 配置一次最多上传几个图片
+ // uploadImgMaxLength: 5,
+
+ // 上传图片,是否显示 base64 格式
+ uploadImgShowBase64: false,
+
+ // 上传图片,server 地址(如果有值,则 base64 格式的配置则失效)
+ // uploadImgServer: '/upload',
+
+ // 自定义配置 filename
+ uploadFileName: '',
+
+ // 上传图片的自定义参数
+ uploadImgParams: {
+ // token: 'abcdef12345'
+ },
+
+ // 上传图片的自定义header
+ uploadImgHeaders: {
+ // 'Accept': 'text/x-json'
+ },
+
+ // 配置 XHR withCredentials
+ withCredentials: false,
+
+ // 自定义上传图片超时时间 ms
+ uploadImgTimeout: 10000,
+
+ // 上传图片 hook
+ uploadImgHooks: {
+ // customInsert: function (insertLinkImg, result, editor) {
+ // console.log('customInsert')
+ // // 图片上传并返回结果,自定义插入图片的事件,而不是编辑器自动插入图片
+ // const data = result.data1 || []
+ // data.forEach(link => {
+ // insertLinkImg(link)
+ // })
+ // },
+ before: function before(xhr, editor, files) {
+ // 图片上传之前触发
+
+ // 如果返回的结果是 {prevent: true, msg: 'xxxx'} 则表示用户放弃上传
+ // return {
+ // prevent: true,
+ // msg: '放弃上传'
+ // }
+ },
+ success: function success(xhr, editor, result) {
+ // 图片上传并返回结果,图片插入成功之后触发
+ },
+ fail: function fail(xhr, editor, result) {
+ // 图片上传并返回结果,但图片插入错误时触发
+ },
+ error: function error(xhr, editor) {
+ // 图片上传出错时触发
+ },
+ timeout: function timeout(xhr, editor) {
+ // 图片上传超时时触发
+ }
+ },
+
+ // 是否上传七牛云,默认为 false
+ qiniu: false
+
+};
+
+/*
+ 工具
+*/
+
+// 和 UA 相关的属性
+var UA = {
+ _ua: navigator.userAgent,
+
+ // 是否 webkit
+ isWebkit: function isWebkit() {
+ var reg = /webkit/i;
+ return reg.test(this._ua);
+ },
+
+ // 是否 IE
+ isIE: function isIE() {
+ return 'ActiveXObject' in window;
+ }
+};
+
+// 遍历对象
+function objForEach(obj, fn) {
+ var key = void 0,
+ result = void 0;
+ for (key in obj) {
+ if (obj.hasOwnProperty(key)) {
+ result = fn.call(obj, key, obj[key]);
+ if (result === false) {
+ break;
+ }
+ }
+ }
+}
+
+// 遍历类数组
+function arrForEach(fakeArr, fn) {
+ var i = void 0,
+ item = void 0,
+ result = void 0;
+ var length = fakeArr.length || 0;
+ for (i = 0; i < length; i++) {
+ item = fakeArr[i];
+ result = fn.call(fakeArr, item, i);
+ if (result === false) {
+ break;
+ }
+ }
+}
+
+// 获取随机数
+function getRandom(prefix) {
+ return prefix + Math.random().toString().slice(2);
+}
+
+// 替换 html 特殊字符
+function replaceHtmlSymbol(html) {
+ if (html == null) {
+ return '';
+ }
+ return html.replace(//gm, '>').replace(/"/gm, '"');
+}
+
+// 返回百分比的格式
+
+
+// 判断是不是 function
+function isFunction(fn) {
+ return typeof fn === 'function';
+}
+
+/*
+ bold-menu
+*/
+// 构造函数
+function Bold(editor) {
+ this.editor = editor;
+ this.$elem = $('');
+ this.type = 'click';
+
+ // 当前是否 active 状态
+ this._active = false;
+}
+
+// 原型
+Bold.prototype = {
+ constructor: Bold,
+
+ // 点击事件
+ onClick: function onClick(e) {
+ // 点击菜单将触发这里
+
+ var editor = this.editor;
+ var isSeleEmpty = editor.selection.isSelectionEmpty();
+
+ if (isSeleEmpty) {
+ // 选区是空的,插入并选中一个“空白”
+ editor.selection.createEmptyRange();
+ }
+
+ // 执行 bold 命令
+ editor.cmd.do('bold');
+
+ if (isSeleEmpty) {
+ // 需要将选取折叠起来
+ editor.selection.collapseRange();
+ editor.selection.restoreSelection();
+ }
+ },
+
+ // 试图改变 active 状态
+ tryChangeActive: function tryChangeActive(e) {
+ var editor = this.editor;
+ var $elem = this.$elem;
+ if (editor.cmd.queryCommandState('bold')) {
+ this._active = true;
+ $elem.addClass('w-e-active');
+ } else {
+ this._active = false;
+ $elem.removeClass('w-e-active');
+ }
+ }
+};
+
+/*
+ 替换多语言
+ */
+
+var replaceLang = function (editor, str) {
+ var langArgs = editor.config.langArgs || [];
+ var result = str;
+
+ langArgs.forEach(function (item) {
+ var reg = item.reg;
+ var val = item.val;
+
+ if (reg.test(result)) {
+ result = result.replace(reg, function () {
+ return val;
+ });
+ }
+ });
+
+ return result;
+};
+
+/*
+ droplist
+*/
+var _emptyFn = function _emptyFn() {};
+
+// 构造函数
+function DropList(menu, opt) {
+ var _this = this;
+
+ // droplist 所依附的菜单
+ var editor = menu.editor;
+ this.menu = menu;
+ this.opt = opt;
+ // 容器
+ var $container = $('
');
+
+ // 标题
+ var $title = opt.$title;
+ var titleHtml = void 0;
+ if ($title) {
+ // 替换多语言
+ titleHtml = $title.html();
+ titleHtml = replaceLang(editor, titleHtml);
+ $title.html(titleHtml);
+
+ $title.addClass('w-e-dp-title');
+ $container.append($title);
+ }
+
+ var list = opt.list || [];
+ var type = opt.type || 'list'; // 'list' 列表形式(如“标题”菜单) / 'inline-block' 块状形式(如“颜色”菜单)
+ var onClick = opt.onClick || _emptyFn;
+
+ // 加入 DOM 并绑定事件
+ var $list = $('
');
+ $container.append($list);
+ list.forEach(function (item) {
+ var $elem = item.$elem;
+
+ // 替换多语言
+ var elemHtml = $elem.html();
+ elemHtml = replaceLang(editor, elemHtml);
+ $elem.html(elemHtml);
+
+ var value = item.value;
+ var $li = $('
');
+ if ($elem) {
+ $li.append($elem);
+ $list.append($li);
+ $li.on('click', function (e) {
+ onClick(value);
+
+ // 隐藏
+ _this.hideTimeoutId = setTimeout(function () {
+ _this.hide();
+ }, 0);
+ });
+ }
+ });
+
+ // 绑定隐藏事件
+ $container.on('mouseleave', function (e) {
+ _this.hideTimeoutId = setTimeout(function () {
+ _this.hide();
+ }, 0);
+ });
+
+ // 记录属性
+ this.$container = $container;
+
+ // 基本属性
+ this._rendered = false;
+ this._show = false;
+}
+
+// 原型
+DropList.prototype = {
+ constructor: DropList,
+
+ // 显示(插入DOM)
+ show: function show() {
+ if (this.hideTimeoutId) {
+ // 清除之前的定时隐藏
+ clearTimeout(this.hideTimeoutId);
+ }
+
+ var menu = this.menu;
+ var $menuELem = menu.$elem;
+ var $container = this.$container;
+ if (this._show) {
+ return;
+ }
+ if (this._rendered) {
+ // 显示
+ $container.show();
+ } else {
+ // 加入 DOM 之前先定位位置
+ var menuHeight = $menuELem.getSizeData().height || 0;
+ var width = this.opt.width || 100; // 默认为 100
+ $container.css('margin-top', menuHeight + 'px').css('width', width + 'px');
+
+ // 加入到 DOM
+ $menuELem.append($container);
+ this._rendered = true;
+ }
+
+ // 修改属性
+ this._show = true;
+ },
+
+ // 隐藏(移除DOM)
+ hide: function hide() {
+ if (this.showTimeoutId) {
+ // 清除之前的定时显示
+ clearTimeout(this.showTimeoutId);
+ }
+
+ var $container = this.$container;
+ if (!this._show) {
+ return;
+ }
+ // 隐藏并需改属性
+ $container.hide();
+ this._show = false;
+ }
+};
+
+/*
+ menu - header
+*/
+// 构造函数
+function Head(editor) {
+ var _this = this;
+
+ this.editor = editor;
+ this.$elem = $('');
+ this.type = 'droplist';
+
+ // 当前是否 active 状态
+ this._active = false;
+
+ // 初始化 droplist
+ this.droplist = new DropList(this, {
+ width: 100,
+ $title: $('
设置标题
'),
+ type: 'list', // droplist 以列表形式展示
+ list: [{ $elem: $('
H1 '), value: '
' }, { $elem: $('H2 '), value: '' }, { $elem: $('H3 '), value: '' }, { $elem: $('H4 '), value: '' }, { $elem: $('H5 '), value: '' }, { $elem: $(' 正文
'), value: '
' }],
+ onClick: function onClick(value) {
+ // 注意 this 是指向当前的 Head 对象
+ _this._command(value);
+ }
+ });
+}
+
+// 原型
+Head.prototype = {
+ constructor: Head,
+
+ // 执行命令
+ _command: function _command(value) {
+ var editor = this.editor;
+
+ var $selectionElem = editor.selection.getSelectionContainerElem();
+ if (editor.$textElem.equal($selectionElem)) {
+ // 不能选中多行来设置标题,否则会出现问题
+ // 例如选中的是
xxx
yyy
来设置标题,设置之后会成为
xxx yyy 不符合预期
+ return;
+ }
+
+ editor.cmd.do('formatBlock', value);
+ },
+
+ // 试图改变 active 状态
+ tryChangeActive: function tryChangeActive(e) {
+ var editor = this.editor;
+ var $elem = this.$elem;
+ var reg = /^h/i;
+ var cmdValue = editor.cmd.queryCommandValue('formatBlock');
+ if (reg.test(cmdValue)) {
+ this._active = true;
+ $elem.addClass('w-e-active');
+ } else {
+ this._active = false;
+ $elem.removeClass('w-e-active');
+ }
+ }
+};
+
+/*
+ panel
+*/
+
+var emptyFn = function emptyFn() {};
+
+// 记录已经显示 panel 的菜单
+var _isCreatedPanelMenus = [];
+
+// 构造函数
+function Panel(menu, opt) {
+ this.menu = menu;
+ this.opt = opt;
+}
+
+// 原型
+Panel.prototype = {
+ constructor: Panel,
+
+ // 显示(插入DOM)
+ show: function show() {
+ var _this = this;
+
+ var menu = this.menu;
+ if (_isCreatedPanelMenus.indexOf(menu) >= 0) {
+ // 该菜单已经创建了 panel 不能再创建
+ return;
+ }
+
+ var editor = menu.editor;
+ var $body = $('body');
+ var $textContainerElem = editor.$textContainerElem;
+ var opt = this.opt;
+
+ // panel 的容器
+ var $container = $('
');
+ var width = opt.width || 300; // 默认 300px
+ $container.css('width', width + 'px').css('margin-left', (0 - width) / 2 + 'px');
+
+ // 添加关闭按钮
+ var $closeBtn = $('
');
+ $container.append($closeBtn);
+ $closeBtn.on('click', function () {
+ _this.hide();
+ });
+
+ // 准备 tabs 容器
+ var $tabTitleContainer = $('
');
+ var $tabContentContainer = $('
');
+ $container.append($tabTitleContainer).append($tabContentContainer);
+
+ // 设置高度
+ var height = opt.height;
+ if (height) {
+ $tabContentContainer.css('height', height + 'px').css('overflow-y', 'auto');
+ }
+
+ // tabs
+ var tabs = opt.tabs || [];
+ var tabTitleArr = [];
+ var tabContentArr = [];
+ tabs.forEach(function (tab, tabIndex) {
+ if (!tab) {
+ return;
+ }
+ var title = tab.title || '';
+ var tpl = tab.tpl || '';
+
+ // 替换多语言
+ title = replaceLang(editor, title);
+ tpl = replaceLang(editor, tpl);
+
+ // 添加到 DOM
+ var $title = $('
' + title + ' ');
+ $tabTitleContainer.append($title);
+ var $content = $(tpl);
+ $tabContentContainer.append($content);
+
+ // 记录到内存
+ $title._index = tabIndex;
+ tabTitleArr.push($title);
+ tabContentArr.push($content);
+
+ // 设置 active 项
+ if (tabIndex === 0) {
+ $title._active = true;
+ $title.addClass('w-e-active');
+ } else {
+ $content.hide();
+ }
+
+ // 绑定 tab 的事件
+ $title.on('click', function (e) {
+ if ($title._active) {
+ return;
+ }
+ // 隐藏所有的 tab
+ tabTitleArr.forEach(function ($title) {
+ $title._active = false;
+ $title.removeClass('w-e-active');
+ });
+ tabContentArr.forEach(function ($content) {
+ $content.hide();
+ });
+
+ // 显示当前的 tab
+ $title._active = true;
+ $title.addClass('w-e-active');
+ $content.show();
+ });
+ });
+
+ // 绑定关闭事件
+ $container.on('click', function (e) {
+ // 点击时阻止冒泡
+ e.stopPropagation();
+ });
+ $body.on('click', function (e) {
+ _this.hide();
+ });
+
+ // 添加到 DOM
+ $textContainerElem.append($container);
+
+ // 绑定 opt 的事件,只有添加到 DOM 之后才能绑定成功
+ tabs.forEach(function (tab, index) {
+ if (!tab) {
+ return;
+ }
+ var events = tab.events || [];
+ events.forEach(function (event) {
+ var selector = event.selector;
+ var type = event.type;
+ var fn = event.fn || emptyFn;
+ var $content = tabContentArr[index];
+ $content.find(selector).on(type, function (e) {
+ e.stopPropagation();
+ var needToHide = fn(e);
+ // 执行完事件之后,是否要关闭 panel
+ if (needToHide) {
+ _this.hide();
+ }
+ });
+ });
+ });
+
+ // focus 第一个 elem
+ var $inputs = $container.find('input[type=text],textarea');
+ if ($inputs.length) {
+ $inputs.get(0).focus();
+ }
+
+ // 添加到属性
+ this.$container = $container;
+
+ // 隐藏其他 panel
+ this._hideOtherPanels();
+ // 记录该 menu 已经创建了 panel
+ _isCreatedPanelMenus.push(menu);
+ },
+
+ // 隐藏(移除DOM)
+ hide: function hide() {
+ var menu = this.menu;
+ var $container = this.$container;
+ if ($container) {
+ $container.remove();
+ }
+
+ // 将该 menu 记录中移除
+ _isCreatedPanelMenus = _isCreatedPanelMenus.filter(function (item) {
+ if (item === menu) {
+ return false;
+ } else {
+ return true;
+ }
+ });
+ },
+
+ // 一个 panel 展示时,隐藏其他 panel
+ _hideOtherPanels: function _hideOtherPanels() {
+ if (!_isCreatedPanelMenus.length) {
+ return;
+ }
+ _isCreatedPanelMenus.forEach(function (menu) {
+ var panel = menu.panel || {};
+ if (panel.hide) {
+ panel.hide();
+ }
+ });
+ }
+};
+
+/*
+ menu - link
+*/
+// 构造函数
+function Link(editor) {
+ this.editor = editor;
+ this.$elem = $('');
+ this.type = 'panel';
+
+ // 当前是否 active 状态
+ this._active = false;
+}
+
+// 原型
+Link.prototype = {
+ constructor: Link,
+
+ // 点击事件
+ onClick: function onClick(e) {
+ var editor = this.editor;
+ var $linkelem = void 0;
+
+ if (this._active) {
+ // 当前选区在链接里面
+ $linkelem = editor.selection.getSelectionContainerElem();
+ if (!$linkelem) {
+ return;
+ }
+ // 将该元素都包含在选取之内,以便后面整体替换
+ editor.selection.createRangeByElem($linkelem);
+ editor.selection.restoreSelection();
+ // 显示 panel
+ this._createPanel($linkelem.text(), $linkelem.attr('href'));
+ } else {
+ // 当前选区不在链接里面
+ if (editor.selection.isSelectionEmpty()) {
+ // 选区是空的,未选中内容
+ this._createPanel('', '');
+ } else {
+ // 选中内容了
+ this._createPanel(editor.selection.getSelectionText(), '');
+ }
+ }
+ },
+
+ // 创建 panel
+ _createPanel: function _createPanel(text, link) {
+ var _this = this;
+
+ // panel 中需要用到的id
+ var inputLinkId = getRandom('input-link');
+ var inputTextId = getRandom('input-text');
+ var btnOkId = getRandom('btn-ok');
+ var btnDelId = getRandom('btn-del');
+
+ // 是否显示“删除链接”
+ var delBtnDisplay = this._active ? 'inline-block' : 'none';
+
+ // 初始化并显示 panel
+ var panel = new Panel(this, {
+ width: 300,
+ // panel 中可包含多个 tab
+ tabs: [{
+ // tab 的标题
+ title: '链接',
+ // 模板
+ tpl: '
',
+ // 事件绑定
+ events: [
+ // 插入链接
+ {
+ selector: '#' + btnOkId,
+ type: 'click',
+ fn: function fn() {
+ // 执行插入链接
+ var $link = $('#' + inputLinkId);
+ var $text = $('#' + inputTextId);
+ var link = $link.val();
+ var text = $text.val();
+ _this._insertLink(text, link);
+
+ // 返回 true,表示该事件执行完之后,panel 要关闭。否则 panel 不会关闭
+ return true;
+ }
+ },
+ // 删除链接
+ {
+ selector: '#' + btnDelId,
+ type: 'click',
+ fn: function fn() {
+ // 执行删除链接
+ _this._delLink();
+
+ // 返回 true,表示该事件执行完之后,panel 要关闭。否则 panel 不会关闭
+ return true;
+ }
+ }]
+ } // tab end
+ ] // tabs end
+ });
+
+ // 显示 panel
+ panel.show();
+
+ // 记录属性
+ this.panel = panel;
+ },
+
+ // 删除当前链接
+ _delLink: function _delLink() {
+ if (!this._active) {
+ return;
+ }
+ var editor = this.editor;
+ var $selectionELem = editor.selection.getSelectionContainerElem();
+ if (!$selectionELem) {
+ return;
+ }
+ var selectionText = editor.selection.getSelectionText();
+ editor.cmd.do('insertHTML', '
' + selectionText + ' ');
+ },
+
+ // 插入链接
+ _insertLink: function _insertLink(text, link) {
+ var editor = this.editor;
+ var config = editor.config;
+ var linkCheck = config.linkCheck;
+ var checkResult = true; // 默认为 true
+ if (linkCheck && typeof linkCheck === 'function') {
+ checkResult = linkCheck(text, link);
+ }
+ if (checkResult === true) {
+ editor.cmd.do('insertHTML', '
' + text + ' ');
+ } else {
+ alert(checkResult);
+ }
+ },
+
+ // 试图改变 active 状态
+ tryChangeActive: function tryChangeActive(e) {
+ var editor = this.editor;
+ var $elem = this.$elem;
+ var $selectionELem = editor.selection.getSelectionContainerElem();
+ if (!$selectionELem) {
+ return;
+ }
+ if ($selectionELem.getNodeName() === 'A') {
+ this._active = true;
+ $elem.addClass('w-e-active');
+ } else {
+ this._active = false;
+ $elem.removeClass('w-e-active');
+ }
+ }
+};
+
+/*
+ italic-menu
+*/
+// 构造函数
+function Italic(editor) {
+ this.editor = editor;
+ this.$elem = $('');
+ this.type = 'click';
+
+ // 当前是否 active 状态
+ this._active = false;
+}
+
+// 原型
+Italic.prototype = {
+ constructor: Italic,
+
+ // 点击事件
+ onClick: function onClick(e) {
+ // 点击菜单将触发这里
+
+ var editor = this.editor;
+ var isSeleEmpty = editor.selection.isSelectionEmpty();
+
+ if (isSeleEmpty) {
+ // 选区是空的,插入并选中一个“空白”
+ editor.selection.createEmptyRange();
+ }
+
+ // 执行 italic 命令
+ editor.cmd.do('italic');
+
+ if (isSeleEmpty) {
+ // 需要将选取折叠起来
+ editor.selection.collapseRange();
+ editor.selection.restoreSelection();
+ }
+ },
+
+ // 试图改变 active 状态
+ tryChangeActive: function tryChangeActive(e) {
+ var editor = this.editor;
+ var $elem = this.$elem;
+ if (editor.cmd.queryCommandState('italic')) {
+ this._active = true;
+ $elem.addClass('w-e-active');
+ } else {
+ this._active = false;
+ $elem.removeClass('w-e-active');
+ }
+ }
+};
+
+/*
+ redo-menu
+*/
+// 构造函数
+function Redo(editor) {
+ this.editor = editor;
+ this.$elem = $('');
+ this.type = 'click';
+
+ // 当前是否 active 状态
+ this._active = false;
+}
+
+// 原型
+Redo.prototype = {
+ constructor: Redo,
+
+ // 点击事件
+ onClick: function onClick(e) {
+ // 点击菜单将触发这里
+
+ var editor = this.editor;
+
+ // 执行 redo 命令
+ editor.cmd.do('redo');
+ }
+};
+
+/*
+ strikeThrough-menu
+*/
+// 构造函数
+function StrikeThrough(editor) {
+ this.editor = editor;
+ this.$elem = $('');
+ this.type = 'click';
+
+ // 当前是否 active 状态
+ this._active = false;
+}
+
+// 原型
+StrikeThrough.prototype = {
+ constructor: StrikeThrough,
+
+ // 点击事件
+ onClick: function onClick(e) {
+ // 点击菜单将触发这里
+
+ var editor = this.editor;
+ var isSeleEmpty = editor.selection.isSelectionEmpty();
+
+ if (isSeleEmpty) {
+ // 选区是空的,插入并选中一个“空白”
+ editor.selection.createEmptyRange();
+ }
+
+ // 执行 strikeThrough 命令
+ editor.cmd.do('strikeThrough');
+
+ if (isSeleEmpty) {
+ // 需要将选取折叠起来
+ editor.selection.collapseRange();
+ editor.selection.restoreSelection();
+ }
+ },
+
+ // 试图改变 active 状态
+ tryChangeActive: function tryChangeActive(e) {
+ var editor = this.editor;
+ var $elem = this.$elem;
+ if (editor.cmd.queryCommandState('strikeThrough')) {
+ this._active = true;
+ $elem.addClass('w-e-active');
+ } else {
+ this._active = false;
+ $elem.removeClass('w-e-active');
+ }
+ }
+};
+
+/*
+ underline-menu
+*/
+// 构造函数
+function Underline(editor) {
+ this.editor = editor;
+ this.$elem = $('');
+ this.type = 'click';
+
+ // 当前是否 active 状态
+ this._active = false;
+}
+
+// 原型
+Underline.prototype = {
+ constructor: Underline,
+
+ // 点击事件
+ onClick: function onClick(e) {
+ // 点击菜单将触发这里
+
+ var editor = this.editor;
+ var isSeleEmpty = editor.selection.isSelectionEmpty();
+
+ if (isSeleEmpty) {
+ // 选区是空的,插入并选中一个“空白”
+ editor.selection.createEmptyRange();
+ }
+
+ // 执行 underline 命令
+ editor.cmd.do('underline');
+
+ if (isSeleEmpty) {
+ // 需要将选取折叠起来
+ editor.selection.collapseRange();
+ editor.selection.restoreSelection();
+ }
+ },
+
+ // 试图改变 active 状态
+ tryChangeActive: function tryChangeActive(e) {
+ var editor = this.editor;
+ var $elem = this.$elem;
+ if (editor.cmd.queryCommandState('underline')) {
+ this._active = true;
+ $elem.addClass('w-e-active');
+ } else {
+ this._active = false;
+ $elem.removeClass('w-e-active');
+ }
+ }
+};
+
+/*
+ undo-menu
+*/
+// 构造函数
+function Undo(editor) {
+ this.editor = editor;
+ this.$elem = $('');
+ this.type = 'click';
+
+ // 当前是否 active 状态
+ this._active = false;
+}
+
+// 原型
+Undo.prototype = {
+ constructor: Undo,
+
+ // 点击事件
+ onClick: function onClick(e) {
+ // 点击菜单将触发这里
+
+ var editor = this.editor;
+
+ // 执行 undo 命令
+ editor.cmd.do('undo');
+ }
+};
+
+/*
+ menu - list
+*/
+// 构造函数
+function List(editor) {
+ var _this = this;
+
+ this.editor = editor;
+ this.$elem = $('');
+ this.type = 'droplist';
+
+ // 当前是否 active 状态
+ this._active = false;
+
+ // 初始化 droplist
+ this.droplist = new DropList(this, {
+ width: 120,
+ $title: $('
设置列表
'),
+ type: 'list', // droplist 以列表形式展示
+ list: [{ $elem: $('
有序列表'), value: 'insertOrderedList' }, { $elem: $('
无序列表'), value: 'insertUnorderedList' }],
+ onClick: function onClick(value) {
+ // 注意 this 是指向当前的 List 对象
+ _this._command(value);
+ }
+ });
+}
+
+// 原型
+List.prototype = {
+ constructor: List,
+
+ // 执行命令
+ _command: function _command(value) {
+ var editor = this.editor;
+ var $textElem = editor.$textElem;
+ editor.selection.restoreSelection();
+ if (editor.cmd.queryCommandState(value)) {
+ return;
+ }
+ editor.cmd.do(value);
+
+ // 验证列表是否被包裹在
之内
+ var $selectionElem = editor.selection.getSelectionContainerElem();
+ if ($selectionElem.getNodeName() === 'LI') {
+ $selectionElem = $selectionElem.parent();
+ }
+ if (/^ol|ul$/i.test($selectionElem.getNodeName()) === false) {
+ return;
+ }
+ if ($selectionElem.equal($textElem)) {
+ // 证明是顶级标签,没有被
包裹
+ return;
+ }
+ var $parent = $selectionElem.parent();
+ if ($parent.equal($textElem)) {
+ // $parent 是顶级标签,不能删除
+ return;
+ }
+
+ $selectionElem.insertAfter($parent);
+ $parent.remove();
+ },
+
+ // 试图改变 active 状态
+ tryChangeActive: function tryChangeActive(e) {
+ var editor = this.editor;
+ var $elem = this.$elem;
+ if (editor.cmd.queryCommandState('insertUnOrderedList') || editor.cmd.queryCommandState('insertOrderedList')) {
+ this._active = true;
+ $elem.addClass('w-e-active');
+ } else {
+ this._active = false;
+ $elem.removeClass('w-e-active');
+ }
+ }
+};
+
+/*
+ menu - justify
+*/
+// 构造函数
+function Justify(editor) {
+ var _this = this;
+
+ this.editor = editor;
+ this.$elem = $('
');
+ this.type = 'droplist';
+
+ // 当前是否 active 状态
+ this._active = false;
+
+ // 初始化 droplist
+ this.droplist = new DropList(this, {
+ width: 100,
+ $title: $('
对齐方式
'),
+ type: 'list', // droplist 以列表形式展示
+ list: [{ $elem: $('
靠左'), value: 'justifyLeft' }, { $elem: $('
居中'), value: 'justifyCenter' }, { $elem: $('
靠右'), value: 'justifyRight' }],
+ onClick: function onClick(value) {
+ // 注意 this 是指向当前的 List 对象
+ _this._command(value);
+ }
+ });
+}
+
+// 原型
+Justify.prototype = {
+ constructor: Justify,
+
+ // 执行命令
+ _command: function _command(value) {
+ var editor = this.editor;
+ editor.cmd.do(value);
+ }
+};
+
+/*
+ menu - Forecolor
+*/
+// 构造函数
+function ForeColor(editor) {
+ var _this = this;
+
+ this.editor = editor;
+ this.$elem = $('');
+ this.type = 'droplist';
+
+ // 获取配置的颜色
+ var config = editor.config;
+ var colors = config.colors || [];
+
+ // 当前是否 active 状态
+ this._active = false;
+
+ // 初始化 droplist
+ this.droplist = new DropList(this, {
+ width: 120,
+ $title: $('
文字颜色
'),
+ type: 'inline-block', // droplist 内容以 block 形式展示
+ list: colors.map(function (color) {
+ return { $elem: $('
'), value: color };
+ }),
+ onClick: function onClick(value) {
+ // 注意 this 是指向当前的 ForeColor 对象
+ _this._command(value);
+ }
+ });
+}
+
+// 原型
+ForeColor.prototype = {
+ constructor: ForeColor,
+
+ // 执行命令
+ _command: function _command(value) {
+ var editor = this.editor;
+ editor.cmd.do('foreColor', value);
+ }
+};
+
+/*
+ menu - BackColor
+*/
+// 构造函数
+function BackColor(editor) {
+ var _this = this;
+
+ this.editor = editor;
+ this.$elem = $('');
+ this.type = 'droplist';
+
+ // 获取配置的颜色
+ var config = editor.config;
+ var colors = config.colors || [];
+
+ // 当前是否 active 状态
+ this._active = false;
+
+ // 初始化 droplist
+ this.droplist = new DropList(this, {
+ width: 120,
+ $title: $('
背景色
'),
+ type: 'inline-block', // droplist 内容以 block 形式展示
+ list: colors.map(function (color) {
+ return { $elem: $('
'), value: color };
+ }),
+ onClick: function onClick(value) {
+ // 注意 this 是指向当前的 BackColor 对象
+ _this._command(value);
+ }
+ });
+}
+
+// 原型
+BackColor.prototype = {
+ constructor: BackColor,
+
+ // 执行命令
+ _command: function _command(value) {
+ var editor = this.editor;
+ editor.cmd.do('backColor', value);
+ }
+};
+
+/*
+ menu - quote
+*/
+// 构造函数
+function Quote(editor) {
+ this.editor = editor;
+ this.$elem = $('');
+ this.type = 'click';
+
+ // 当前是否 active 状态
+ this._active = false;
+}
+
+// 原型
+Quote.prototype = {
+ constructor: Quote,
+
+ onClick: function onClick(e) {
+ var editor = this.editor;
+ var $selectionElem = editor.selection.getSelectionContainerElem();
+ var nodeName = $selectionElem.getNodeName();
+
+ if (!UA.isIE()) {
+ if (nodeName === 'BLOCKQUOTE') {
+ // 撤销 quote
+ editor.cmd.do('formatBlock', '
');
+ } else {
+ // 转换为 quote
+ editor.cmd.do('formatBlock', '
');
+ }
+ return;
+ }
+
+ // IE 中不支持 formatBlock ,要用其他方式兼容
+ var content = void 0,
+ $targetELem = void 0;
+ if (nodeName === 'P') {
+ // 将 P 转换为 quote
+ content = $selectionElem.text();
+ $targetELem = $('' + content + ' ');
+ $targetELem.insertAfter($selectionElem);
+ $selectionElem.remove();
+ return;
+ }
+ if (nodeName === 'BLOCKQUOTE') {
+ // 撤销 quote
+ content = $selectionElem.text();
+ $targetELem = $('' + content + '
');
+ $targetELem.insertAfter($selectionElem);
+ $selectionElem.remove();
+ }
+ },
+
+ tryChangeActive: function tryChangeActive(e) {
+ var editor = this.editor;
+ var $elem = this.$elem;
+ var reg = /^BLOCKQUOTE$/i;
+ var cmdValue = editor.cmd.queryCommandValue('formatBlock');
+ if (reg.test(cmdValue)) {
+ this._active = true;
+ $elem.addClass('w-e-active');
+ } else {
+ this._active = false;
+ $elem.removeClass('w-e-active');
+ }
+ }
+};
+
+/*
+ menu - code
+*/
+// 构造函数
+function Code(editor) {
+ this.editor = editor;
+ this.$elem = $('');
+ this.type = 'panel';
+
+ // 当前是否 active 状态
+ this._active = false;
+}
+
+// 原型
+Code.prototype = {
+ constructor: Code,
+
+ onClick: function onClick(e) {
+ var editor = this.editor;
+ var $startElem = editor.selection.getSelectionStartElem();
+ var $endElem = editor.selection.getSelectionEndElem();
+ var isSeleEmpty = editor.selection.isSelectionEmpty();
+ var selectionText = editor.selection.getSelectionText();
+ var $code = void 0;
+
+ if (!$startElem.equal($endElem)) {
+ // 跨元素选择,不做处理
+ editor.selection.restoreSelection();
+ return;
+ }
+ if (!isSeleEmpty) {
+ // 选取不是空,用 包裹即可
+ $code = $('' + selectionText + '
');
+ editor.cmd.do('insertElem', $code);
+ editor.selection.createRangeByElem($code, false);
+ editor.selection.restoreSelection();
+ return;
+ }
+
+ // 选取是空,且没有夸元素选择,则插入
+ if (this._active) {
+ // 选中状态,将编辑内容
+ this._createPanel($startElem.html());
+ } else {
+ // 未选中状态,将创建内容
+ this._createPanel();
+ }
+ },
+
+ _createPanel: function _createPanel(value) {
+ var _this = this;
+
+ // value - 要编辑的内容
+ value = value || '';
+ var type = !value ? 'new' : 'edit';
+ var textId = getRandom('texxt');
+ var btnId = getRandom('btn');
+
+ var panel = new Panel(this, {
+ width: 500,
+ // 一个 Panel 包含多个 tab
+ tabs: [{
+ // 标题
+ title: '插入代码',
+ // 模板
+ tpl: '\n
\n
\n \u63D2\u5165 \n
\n
',
+ // 事件绑定
+ events: [
+ // 插入代码
+ {
+ selector: '#' + btnId,
+ type: 'click',
+ fn: function fn() {
+ var $text = $('#' + textId);
+ var text = $text.val() || $text.html();
+ text = replaceHtmlSymbol(text);
+ if (type === 'new') {
+ // 新插入
+ _this._insertCode(text);
+ } else {
+ // 编辑更新
+ _this._updateCode(text);
+ }
+
+ // 返回 true,表示该事件执行完之后,panel 要关闭。否则 panel 不会关闭
+ return true;
+ }
+ }]
+ } // first tab end
+ ] // tabs end
+ }); // new Panel end
+
+ // 显示 panel
+ panel.show();
+
+ // 记录属性
+ this.panel = panel;
+ },
+
+ // 插入代码
+ _insertCode: function _insertCode(value) {
+ var editor = this.editor;
+ editor.cmd.do('insertHTML', '
' + value + '
');
+ },
+
+ // 更新代码
+ _updateCode: function _updateCode(value) {
+ var editor = this.editor;
+ var $selectionELem = editor.selection.getSelectionContainerElem();
+ if (!$selectionELem) {
+ return;
+ }
+ $selectionELem.html(value);
+ editor.selection.restoreSelection();
+ },
+
+ // 试图改变 active 状态
+ tryChangeActive: function tryChangeActive(e) {
+ var editor = this.editor;
+ var $elem = this.$elem;
+ var $selectionELem = editor.selection.getSelectionContainerElem();
+ if (!$selectionELem) {
+ return;
+ }
+ var $parentElem = $selectionELem.parent();
+ if ($selectionELem.getNodeName() === 'CODE' && $parentElem.getNodeName() === 'PRE') {
+ this._active = true;
+ $elem.addClass('w-e-active');
+ } else {
+ this._active = false;
+ $elem.removeClass('w-e-active');
+ }
+ }
+};
+
+/*
+ menu - emoticon
+*/
+// 构造函数
+function Emoticon(editor) {
+ this.editor = editor;
+ this.$elem = $('');
+ this.type = 'panel';
+
+ // 当前是否 active 状态
+ this._active = false;
+}
+
+// 原型
+Emoticon.prototype = {
+ constructor: Emoticon,
+
+ onClick: function onClick() {
+ this._createPanel();
+ },
+
+ _createPanel: function _createPanel() {
+ var _this = this;
+
+ var editor = this.editor;
+ var config = editor.config;
+ // 获取表情配置
+ var emotions = config.emotions || [];
+
+ // 创建表情 dropPanel 的配置
+ var tabConfig = [];
+ emotions.forEach(function (emotData) {
+ var emotType = emotData.type;
+ var content = emotData.content || [];
+
+ // 这一组表情最终拼接出来的 html
+ var faceHtml = '';
+
+ // emoji 表情
+ if (emotType === 'emoji') {
+ content.forEach(function (item) {
+ if (item) {
+ faceHtml += '
' + item + ' ';
+ }
+ });
+ }
+ // 图片表情
+ if (emotType === 'image') {
+ content.forEach(function (item) {
+ var src = item.src;
+ var alt = item.alt;
+ if (src) {
+ // 加一个 data-w-e 属性,点击图片的时候不再提示编辑图片
+ faceHtml += '
';
+ }
+ });
+ }
+
+ tabConfig.push({
+ title: emotData.title,
+ tpl: '
' + faceHtml + '
',
+ events: [{
+ selector: 'span.w-e-item',
+ type: 'click',
+ fn: function fn(e) {
+ var target = e.target;
+ var $target = $(target);
+ var nodeName = $target.getNodeName();
+
+ var insertHtml = void 0;
+ if (nodeName === 'IMG') {
+ // 插入图片
+ insertHtml = $target.parent().html();
+ } else {
+ // 插入 emoji
+ insertHtml = '
' + $target.html() + ' ';
+ }
+
+ _this._insert(insertHtml);
+ // 返回 true,表示该事件执行完之后,panel 要关闭。否则 panel 不会关闭
+ return true;
+ }
+ }]
+ });
+ });
+
+ var panel = new Panel(this, {
+ width: 300,
+ height: 200,
+ // 一个 Panel 包含多个 tab
+ tabs: tabConfig
+ });
+
+ // 显示 panel
+ panel.show();
+
+ // 记录属性
+ this.panel = panel;
+ },
+
+ // 插入表情
+ _insert: function _insert(emotHtml) {
+ var editor = this.editor;
+ editor.cmd.do('insertHTML', emotHtml);
+ }
+};
+
+/*
+ menu - table
+*/
+// 构造函数
+function Table(editor) {
+ this.editor = editor;
+ this.$elem = $('');
+ this.type = 'panel';
+
+ // 当前是否 active 状态
+ this._active = false;
+}
+
+// 原型
+Table.prototype = {
+ constructor: Table,
+
+ onClick: function onClick() {
+ if (this._active) {
+ // 编辑现有表格
+ this._createEditPanel();
+ } else {
+ // 插入新表格
+ this._createInsertPanel();
+ }
+ },
+
+ // 创建插入新表格的 panel
+ _createInsertPanel: function _createInsertPanel() {
+ var _this = this;
+
+ // 用到的 id
+ var btnInsertId = getRandom('btn');
+ var textRowNum = getRandom('row');
+ var textColNum = getRandom('col');
+
+ var panel = new Panel(this, {
+ width: 250,
+ // panel 包含多个 tab
+ tabs: [{
+ // 标题
+ title: '插入表格',
+ // 模板
+ tpl: '
',
+ // 事件绑定
+ events: [{
+ // 点击按钮,插入表格
+ selector: '#' + btnInsertId,
+ type: 'click',
+ fn: function fn() {
+ var rowNum = parseInt($('#' + textRowNum).val());
+ var colNum = parseInt($('#' + textColNum).val());
+
+ if (rowNum && colNum && rowNum > 0 && colNum > 0) {
+ // form 数据有效
+ _this._insert(rowNum, colNum);
+ }
+
+ // 返回 true,表示该事件执行完之后,panel 要关闭。否则 panel 不会关闭
+ return true;
+ }
+ }]
+ } // first tab end
+ ] // tabs end
+ }); // panel end
+
+ // 展示 panel
+ panel.show();
+
+ // 记录属性
+ this.panel = panel;
+ },
+
+ // 插入表格
+ _insert: function _insert(rowNum, colNum) {
+ // 拼接 table 模板
+ var r = void 0,
+ c = void 0;
+ var html = '
';
+ for (r = 0; r < rowNum; r++) {
+ html += '';
+ if (r === 0) {
+ for (c = 0; c < colNum; c++) {
+ html += ' ';
+ }
+ } else {
+ for (c = 0; c < colNum; c++) {
+ html += ' ';
+ }
+ }
+ html += ' ';
+ }
+ html += '
';
+
+ // 执行命令
+ var editor = this.editor;
+ editor.cmd.do('insertHTML', html);
+
+ // 防止 firefox 下出现 resize 的控制点
+ editor.cmd.do('enableObjectResizing', false);
+ editor.cmd.do('enableInlineTableEditing', false);
+ },
+
+ // 创建编辑表格的 panel
+ _createEditPanel: function _createEditPanel() {
+ var _this2 = this;
+
+ // 可用的 id
+ var addRowBtnId = getRandom('add-row');
+ var addColBtnId = getRandom('add-col');
+ var delRowBtnId = getRandom('del-row');
+ var delColBtnId = getRandom('del-col');
+ var delTableBtnId = getRandom('del-table');
+
+ // 创建 panel 对象
+ var panel = new Panel(this, {
+ width: 320,
+ // panel 包含多个 tab
+ tabs: [{
+ // 标题
+ title: '编辑表格',
+ // 模板
+ tpl: '
\n
\n \u589E\u52A0\u884C \n \u5220\u9664\u884C \n \u589E\u52A0\u5217 \n \u5220\u9664\u5217 \n
\n
\n \u5220\u9664\u8868\u683C \n \n
',
+ // 事件绑定
+ events: [{
+ // 增加行
+ selector: '#' + addRowBtnId,
+ type: 'click',
+ fn: function fn() {
+ _this2._addRow();
+ // 返回 true,表示该事件执行完之后,panel 要关闭。否则 panel 不会关闭
+ return true;
+ }
+ }, {
+ // 增加列
+ selector: '#' + addColBtnId,
+ type: 'click',
+ fn: function fn() {
+ _this2._addCol();
+ // 返回 true,表示该事件执行完之后,panel 要关闭。否则 panel 不会关闭
+ return true;
+ }
+ }, {
+ // 删除行
+ selector: '#' + delRowBtnId,
+ type: 'click',
+ fn: function fn() {
+ _this2._delRow();
+ // 返回 true,表示该事件执行完之后,panel 要关闭。否则 panel 不会关闭
+ return true;
+ }
+ }, {
+ // 删除列
+ selector: '#' + delColBtnId,
+ type: 'click',
+ fn: function fn() {
+ _this2._delCol();
+ // 返回 true,表示该事件执行完之后,panel 要关闭。否则 panel 不会关闭
+ return true;
+ }
+ }, {
+ // 删除表格
+ selector: '#' + delTableBtnId,
+ type: 'click',
+ fn: function fn() {
+ _this2._delTable();
+ // 返回 true,表示该事件执行完之后,panel 要关闭。否则 panel 不会关闭
+ return true;
+ }
+ }]
+ }]
+ });
+ // 显示 panel
+ panel.show();
+ },
+
+ // 获取选中的单元格的位置信息
+ _getLocationData: function _getLocationData() {
+ var result = {};
+ var editor = this.editor;
+ var $selectionELem = editor.selection.getSelectionContainerElem();
+ if (!$selectionELem) {
+ return;
+ }
+ var nodeName = $selectionELem.getNodeName();
+ if (nodeName !== 'TD' && nodeName !== 'TH') {
+ return;
+ }
+
+ // 获取 td index
+ var $tr = $selectionELem.parent();
+ var $tds = $tr.children();
+ var tdLength = $tds.length;
+ $tds.forEach(function (td, index) {
+ if (td === $selectionELem[0]) {
+ // 记录并跳出循环
+ result.td = {
+ index: index,
+ elem: td,
+ length: tdLength
+ };
+ return false;
+ }
+ });
+
+ // 获取 tr index
+ var $tbody = $tr.parent();
+ var $trs = $tbody.children();
+ var trLength = $trs.length;
+ $trs.forEach(function (tr, index) {
+ if (tr === $tr[0]) {
+ // 记录并跳出循环
+ result.tr = {
+ index: index,
+ elem: tr,
+ length: trLength
+ };
+ return false;
+ }
+ });
+
+ // 返回结果
+ return result;
+ },
+
+ // 增加行
+ _addRow: function _addRow() {
+ // 获取当前单元格的位置信息
+ var locationData = this._getLocationData();
+ if (!locationData) {
+ return;
+ }
+ var trData = locationData.tr;
+ var $currentTr = $(trData.elem);
+ var tdData = locationData.td;
+ var tdLength = tdData.length;
+
+ // 拼接即将插入的字符串
+ var newTr = document.createElement('tr');
+ var tpl = '',
+ i = void 0;
+ for (i = 0; i < tdLength; i++) {
+ tpl += '
';
+ }
+ newTr.innerHTML = tpl;
+ // 插入
+ $(newTr).insertAfter($currentTr);
+ },
+
+ // 增加列
+ _addCol: function _addCol() {
+ // 获取当前单元格的位置信息
+ var locationData = this._getLocationData();
+ if (!locationData) {
+ return;
+ }
+ var trData = locationData.tr;
+ var tdData = locationData.td;
+ var tdIndex = tdData.index;
+ var $currentTr = $(trData.elem);
+ var $trParent = $currentTr.parent();
+ var $trs = $trParent.children();
+
+ // 遍历所有行
+ $trs.forEach(function (tr) {
+ var $tr = $(tr);
+ var $tds = $tr.children();
+ var $currentTd = $tds.get(tdIndex);
+ var name = $currentTd.getNodeName().toLowerCase();
+
+ // new 一个 td,并插入
+ var newTd = document.createElement(name);
+ $(newTd).insertAfter($currentTd);
+ });
+ },
+
+ // 删除行
+ _delRow: function _delRow() {
+ // 获取当前单元格的位置信息
+ var locationData = this._getLocationData();
+ if (!locationData) {
+ return;
+ }
+ var trData = locationData.tr;
+ var $currentTr = $(trData.elem);
+ $currentTr.remove();
+ },
+
+ // 删除列
+ _delCol: function _delCol() {
+ // 获取当前单元格的位置信息
+ var locationData = this._getLocationData();
+ if (!locationData) {
+ return;
+ }
+ var trData = locationData.tr;
+ var tdData = locationData.td;
+ var tdIndex = tdData.index;
+ var $currentTr = $(trData.elem);
+ var $trParent = $currentTr.parent();
+ var $trs = $trParent.children();
+
+ // 遍历所有行
+ $trs.forEach(function (tr) {
+ var $tr = $(tr);
+ var $tds = $tr.children();
+ var $currentTd = $tds.get(tdIndex);
+ // 删除
+ $currentTd.remove();
+ });
+ },
+
+ // 删除表格
+ _delTable: function _delTable() {
+ var editor = this.editor;
+ var $selectionELem = editor.selection.getSelectionContainerElem();
+ if (!$selectionELem) {
+ return;
+ }
+ var $table = $selectionELem.parentUntil('table');
+ if (!$table) {
+ return;
+ }
+ $table.remove();
+ },
+
+ // 试图改变 active 状态
+ tryChangeActive: function tryChangeActive(e) {
+ var editor = this.editor;
+ var $elem = this.$elem;
+ var $selectionELem = editor.selection.getSelectionContainerElem();
+ if (!$selectionELem) {
+ return;
+ }
+ var nodeName = $selectionELem.getNodeName();
+ if (nodeName === 'TD' || nodeName === 'TH') {
+ this._active = true;
+ $elem.addClass('w-e-active');
+ } else {
+ this._active = false;
+ $elem.removeClass('w-e-active');
+ }
+ }
+};
+
+/*
+ menu - video
+*/
+// 构造函数
+function Video(editor) {
+ this.editor = editor;
+ this.$elem = $('');
+ this.type = 'panel';
+
+ // 当前是否 active 状态
+ this._active = false;
+}
+
+// 原型
+Video.prototype = {
+ constructor: Video,
+
+ onClick: function onClick() {
+ this._createPanel();
+ },
+
+ _createPanel: function _createPanel() {
+ var _this = this;
+
+ // 创建 id
+ var textValId = getRandom('text-val');
+ var btnId = getRandom('btn');
+
+ // 创建 panel
+ var panel = new Panel(this, {
+ width: 350,
+ // 一个 panel 多个 tab
+ tabs: [{
+ // 标题
+ title: '插入视频',
+ // 模板
+ tpl: '
\n
\n
\n \u63D2\u5165 \n
\n
',
+ // 事件绑定
+ events: [{
+ selector: '#' + btnId,
+ type: 'click',
+ fn: function fn() {
+ var $text = $('#' + textValId);
+ var val = $text.val().trim();
+
+ // 测试用视频地址
+ //
+
+ if (val) {
+ // 插入视频
+ _this._insert(val);
+ }
+
+ // 返回 true,表示该事件执行完之后,panel 要关闭。否则 panel 不会关闭
+ return true;
+ }
+ }]
+ } // first tab end
+ ] // tabs end
+ }); // panel end
+
+ // 显示 panel
+ panel.show();
+
+ // 记录属性
+ this.panel = panel;
+ },
+
+ // 插入视频
+ _insert: function _insert(val) {
+ var editor = this.editor;
+ editor.cmd.do('insertHTML', val + '
');
+ }
+};
+
+/*
+ menu - img
+*/
+// 构造函数
+function Image(editor) {
+ this.editor = editor;
+ var imgMenuId = getRandom('w-e-img');
+ this.$elem = $('');
+ editor.imgMenuId = imgMenuId;
+ this.type = 'panel';
+
+ // 当前是否 active 状态
+ this._active = false;
+}
+
+// 原型
+Image.prototype = {
+ constructor: Image,
+
+ onClick: function onClick() {
+ var editor = this.editor;
+ var config = editor.config;
+ if (config.qiniu) {
+ return;
+ }
+ if (this._active) {
+ this._createEditPanel();
+ } else {
+ this._createInsertPanel();
+ }
+ },
+
+ _createEditPanel: function _createEditPanel() {
+ var editor = this.editor;
+
+ // id
+ var width30 = getRandom('width-30');
+ var width50 = getRandom('width-50');
+ var width100 = getRandom('width-100');
+ var delBtn = getRandom('del-btn');
+
+ // tab 配置
+ var tabsConfig = [{
+ title: '编辑图片',
+ tpl: '
\n
\n \u6700\u5927\u5BBD\u5EA6\uFF1A \n 30% \n 50% \n 100% \n
\n
\n \u5220\u9664\u56FE\u7247 \n \n
',
+ events: [{
+ selector: '#' + width30,
+ type: 'click',
+ fn: function fn() {
+ var $img = editor._selectedImg;
+ if ($img) {
+ $img.css('max-width', '30%');
+ }
+ // 返回 true,表示该事件执行完之后,panel 要关闭。否则 panel 不会关闭
+ return true;
+ }
+ }, {
+ selector: '#' + width50,
+ type: 'click',
+ fn: function fn() {
+ var $img = editor._selectedImg;
+ if ($img) {
+ $img.css('max-width', '50%');
+ }
+ // 返回 true,表示该事件执行完之后,panel 要关闭。否则 panel 不会关闭
+ return true;
+ }
+ }, {
+ selector: '#' + width100,
+ type: 'click',
+ fn: function fn() {
+ var $img = editor._selectedImg;
+ if ($img) {
+ $img.css('max-width', '100%');
+ }
+ // 返回 true,表示该事件执行完之后,panel 要关闭。否则 panel 不会关闭
+ return true;
+ }
+ }, {
+ selector: '#' + delBtn,
+ type: 'click',
+ fn: function fn() {
+ var $img = editor._selectedImg;
+ if ($img) {
+ $img.remove();
+ }
+ // 返回 true,表示该事件执行完之后,panel 要关闭。否则 panel 不会关闭
+ return true;
+ }
+ }]
+ }];
+
+ // 创建 panel 并显示
+ var panel = new Panel(this, {
+ width: 300,
+ tabs: tabsConfig
+ });
+ panel.show();
+
+ // 记录属性
+ this.panel = panel;
+ },
+
+ _createInsertPanel: function _createInsertPanel() {
+ var editor = this.editor;
+ var uploadImg = editor.uploadImg;
+ var config = editor.config;
+
+ // id
+ var upTriggerId = getRandom('up-trigger');
+ var upFileId = getRandom('up-file');
+ var linkUrlId = getRandom('link-url');
+ var linkBtnId = getRandom('link-btn');
+
+ // tabs 的配置
+ var tabsConfig = [{
+ title: '上传图片',
+ tpl: '
',
+ events: [{
+ // 触发选择图片
+ selector: '#' + upTriggerId,
+ type: 'click',
+ fn: function fn() {
+ var $file = $('#' + upFileId);
+ var fileElem = $file[0];
+ if (fileElem) {
+ fileElem.click();
+ } else {
+ // 返回 true 可关闭 panel
+ return true;
+ }
+ }
+ }, {
+ // 选择图片完毕
+ selector: '#' + upFileId,
+ type: 'change',
+ fn: function fn() {
+ var $file = $('#' + upFileId);
+ var fileElem = $file[0];
+ if (!fileElem) {
+ // 返回 true 可关闭 panel
+ return true;
+ }
+
+ // 获取选中的 file 对象列表
+ var fileList = fileElem.files;
+ if (fileList.length) {
+ uploadImg.uploadImg(fileList);
+ }
+
+ // 返回 true 可关闭 panel
+ return true;
+ }
+ }]
+ }, // first tab end
+ {
+ title: '网络图片',
+ tpl: '
\n
\n
\n \u63D2\u5165 \n
\n
',
+ events: [{
+ selector: '#' + linkBtnId,
+ type: 'click',
+ fn: function fn() {
+ var $linkUrl = $('#' + linkUrlId);
+ var url = $linkUrl.val().trim();
+
+ if (url) {
+ uploadImg.insertLinkImg(url);
+ }
+
+ // 返回 true 表示函数执行结束之后关闭 panel
+ return true;
+ }
+ }]
+ } // second tab end
+ ]; // tabs end
+
+ // 判断 tabs 的显示
+ var tabsConfigResult = [];
+ if ((config.uploadImgShowBase64 || config.uploadImgServer || config.customUploadImg) && window.FileReader) {
+ // 显示“上传图片”
+ tabsConfigResult.push(tabsConfig[0]);
+ }
+ if (config.showLinkImg) {
+ // 显示“网络图片”
+ tabsConfigResult.push(tabsConfig[1]);
+ }
+
+ // 创建 panel 并显示
+ var panel = new Panel(this, {
+ width: 300,
+ tabs: tabsConfigResult
+ });
+ panel.show();
+
+ // 记录属性
+ this.panel = panel;
+ },
+
+ // 试图改变 active 状态
+ tryChangeActive: function tryChangeActive(e) {
+ var editor = this.editor;
+ var $elem = this.$elem;
+ if (editor._selectedImg) {
+ this._active = true;
+ $elem.addClass('w-e-active');
+ } else {
+ this._active = false;
+ $elem.removeClass('w-e-active');
+ }
+ }
+};
+
+/*
+ 所有菜单的汇总
+*/
+
+// 存储菜单的构造函数
+var MenuConstructors = {};
+
+MenuConstructors.bold = Bold;
+
+MenuConstructors.head = Head;
+
+MenuConstructors.link = Link;
+
+MenuConstructors.italic = Italic;
+
+MenuConstructors.redo = Redo;
+
+MenuConstructors.strikeThrough = StrikeThrough;
+
+MenuConstructors.underline = Underline;
+
+MenuConstructors.undo = Undo;
+
+MenuConstructors.list = List;
+
+MenuConstructors.justify = Justify;
+
+MenuConstructors.foreColor = ForeColor;
+
+MenuConstructors.backColor = BackColor;
+
+MenuConstructors.quote = Quote;
+
+MenuConstructors.code = Code;
+
+MenuConstructors.emoticon = Emoticon;
+
+MenuConstructors.table = Table;
+
+MenuConstructors.video = Video;
+
+MenuConstructors.image = Image;
+
+/*
+ 菜单集合
+*/
+// 构造函数
+function Menus(editor) {
+ this.editor = editor;
+ this.menus = {};
+}
+
+// 修改原型
+Menus.prototype = {
+ constructor: Menus,
+
+ // 初始化菜单
+ init: function init() {
+ var _this = this;
+
+ var editor = this.editor;
+ var config = editor.config || {};
+ var configMenus = config.menus || []; // 获取配置中的菜单
+
+ // 根据配置信息,创建菜单
+ configMenus.forEach(function (menuKey) {
+ var MenuConstructor = MenuConstructors[menuKey];
+ if (MenuConstructor && typeof MenuConstructor === 'function') {
+ // 创建单个菜单
+ _this.menus[menuKey] = new MenuConstructor(editor);
+ }
+ });
+
+ // 添加到菜单栏
+ this._addToToolbar();
+
+ // 绑定事件
+ this._bindEvent();
+ },
+
+ // 添加到菜单栏
+ _addToToolbar: function _addToToolbar() {
+ var editor = this.editor;
+ var $toolbarElem = editor.$toolbarElem;
+ var menus = this.menus;
+ var config = editor.config;
+ // config.zIndex 是配置的编辑区域的 z-index,菜单的 z-index 得在其基础上 +1
+ var zIndex = config.zIndex + 1;
+ objForEach(menus, function (key, menu) {
+ var $elem = menu.$elem;
+ if ($elem) {
+ // 设置 z-index
+ $elem.css('z-index', zIndex);
+ $toolbarElem.append($elem);
+ }
+ });
+ },
+
+ // 绑定菜单 click mouseenter 事件
+ _bindEvent: function _bindEvent() {
+ var menus = this.menus;
+ var editor = this.editor;
+ objForEach(menus, function (key, menu) {
+ var type = menu.type;
+ if (!type) {
+ return;
+ }
+ var $elem = menu.$elem;
+ var droplist = menu.droplist;
+ var panel = menu.panel;
+
+ // 点击类型,例如 bold
+ if (type === 'click' && menu.onClick) {
+ $elem.on('click', function (e) {
+ if (editor.selection.getRange() == null) {
+ return;
+ }
+ menu.onClick(e);
+ });
+ }
+
+ // 下拉框,例如 head
+ if (type === 'droplist' && droplist) {
+ $elem.on('mouseenter', function (e) {
+ if (editor.selection.getRange() == null) {
+ return;
+ }
+ // 显示
+ droplist.showTimeoutId = setTimeout(function () {
+ droplist.show();
+ }, 200);
+ }).on('mouseleave', function (e) {
+ // 隐藏
+ droplist.hideTimeoutId = setTimeout(function () {
+ droplist.hide();
+ }, 0);
+ });
+ }
+
+ // 弹框类型,例如 link
+ if (type === 'panel' && menu.onClick) {
+ $elem.on('click', function (e) {
+ e.stopPropagation();
+ if (editor.selection.getRange() == null) {
+ return;
+ }
+ // 在自定义事件中显示 panel
+ menu.onClick(e);
+ });
+ }
+ });
+ },
+
+ // 尝试修改菜单状态
+ changeActive: function changeActive() {
+ var menus = this.menus;
+ objForEach(menus, function (key, menu) {
+ if (menu.tryChangeActive) {
+ setTimeout(function () {
+ menu.tryChangeActive();
+ }, 100);
+ }
+ });
+ }
+};
+
+/*
+ 粘贴信息的处理
+*/
+
+// 获取粘贴的纯文本
+function getPasteText(e) {
+ var clipboardData = e.clipboardData || e.originalEvent && e.originalEvent.clipboardData;
+ var pasteText = void 0;
+ if (clipboardData == null) {
+ pasteText = window.clipboardData && window.clipboardData.getData('text');
+ } else {
+ pasteText = clipboardData.getData('text/plain');
+ }
+
+ return replaceHtmlSymbol(pasteText);
+}
+
+// 获取粘贴的html
+function getPasteHtml(e, filterStyle) {
+ var clipboardData = e.clipboardData || e.originalEvent && e.originalEvent.clipboardData;
+ var pasteText = void 0,
+ pasteHtml = void 0;
+ if (clipboardData == null) {
+ pasteText = window.clipboardData && window.clipboardData.getData('text');
+ } else {
+ pasteText = clipboardData.getData('text/plain');
+ pasteHtml = clipboardData.getData('text/html');
+ }
+ if (!pasteHtml && pasteText) {
+ pasteHtml = '
' + replaceHtmlSymbol(pasteText) + '
';
+ }
+ if (!pasteHtml) {
+ return;
+ }
+
+ // 过滤word中状态过来的无用字符
+ var docSplitHtml = pasteHtml.split('');
+ if (docSplitHtml.length === 2) {
+ pasteHtml = docSplitHtml[0];
+ }
+
+ // 过滤无用标签
+ pasteHtml = pasteHtml.replace(/<(meta|script|link).+?>/igm, '');
+ // 去掉注释
+ pasteHtml = pasteHtml.replace(//mg, '');
+ // 过滤 data-xxx 属性
+ pasteHtml = pasteHtml.replace(/\s?data-.+?=('|").+?('|")/igm, '');
+
+ if (filterStyle) {
+ // 过滤样式
+ pasteHtml = pasteHtml.replace(/\s?(class|style)=('|").+?('|")/igm, '');
+ } else {
+ // 保留样式
+ pasteHtml = pasteHtml.replace(/\s?class=('|").+?('|")/igm, '');
+ }
+
+ return pasteHtml;
+}
+
+// 获取粘贴的图片文件
+function getPasteImgs(e) {
+ var result = [];
+ var txt = getPasteText(e);
+ if (txt) {
+ // 有文字,就忽略图片
+ return result;
+ }
+
+ var clipboardData = e.clipboardData || e.originalEvent && e.originalEvent.clipboardData || {};
+ var items = clipboardData.items;
+ if (!items) {
+ return result;
+ }
+
+ objForEach(items, function (key, value) {
+ var type = value.type;
+ if (/image/i.test(type)) {
+ result.push(value.getAsFile());
+ }
+ });
+
+ return result;
+}
+
+/*
+ 编辑区域
+*/
+
+// 获取一个 elem.childNodes 的 JSON 数据
+function getChildrenJSON($elem) {
+ var result = [];
+ var $children = $elem.childNodes() || []; // 注意 childNodes() 可以获取文本节点
+ $children.forEach(function (curElem) {
+ var elemResult = void 0;
+ var nodeType = curElem.nodeType;
+
+ // 文本节点
+ if (nodeType === 3) {
+ elemResult = curElem.textContent;
+ }
+
+ // 普通 DOM 节点
+ if (nodeType === 1) {
+ elemResult = {};
+
+ // tag
+ elemResult.tag = curElem.nodeName.toLowerCase();
+ // attr
+ var attrData = [];
+ var attrList = curElem.attributes || {};
+ var attrListLength = attrList.length || 0;
+ for (var i = 0; i < attrListLength; i++) {
+ var attr = attrList[i];
+ attrData.push({
+ name: attr.name,
+ value: attr.value
+ });
+ }
+ elemResult.attrs = attrData;
+ // children(递归)
+ elemResult.children = getChildrenJSON($(curElem));
+ }
+
+ result.push(elemResult);
+ });
+ return result;
+}
+
+// 构造函数
+function Text(editor) {
+ this.editor = editor;
+}
+
+// 修改原型
+Text.prototype = {
+ constructor: Text,
+
+ // 初始化
+ init: function init() {
+ // 绑定事件
+ this._bindEvent();
+ },
+
+ // 清空内容
+ clear: function clear() {
+ this.html('
');
+ },
+
+ // 获取 设置 html
+ html: function html(val) {
+ var editor = this.editor;
+ var $textElem = editor.$textElem;
+ var html = void 0;
+ if (val == null) {
+ html = $textElem.html();
+ // 未选中任何内容的时候点击“加粗”或者“斜体”等按钮,就得需要一个空的占位符 ,这里替换掉
+ html = html.replace(/\u200b/gm, '');
+ return html;
+ } else {
+ $textElem.html(val);
+
+ // 初始化选取,将光标定位到内容尾部
+ editor.initSelection();
+ }
+ },
+
+ // 获取 JSON
+ getJSON: function getJSON() {
+ var editor = this.editor;
+ var $textElem = editor.$textElem;
+ return getChildrenJSON($textElem);
+ },
+
+ // 获取 设置 text
+ text: function text(val) {
+ var editor = this.editor;
+ var $textElem = editor.$textElem;
+ var text = void 0;
+ if (val == null) {
+ text = $textElem.text();
+ // 未选中任何内容的时候点击“加粗”或者“斜体”等按钮,就得需要一个空的占位符 ,这里替换掉
+ text = text.replace(/\u200b/gm, '');
+ return text;
+ } else {
+ $textElem.text('
' + val + '
');
+
+ // 初始化选取,将光标定位到内容尾部
+ editor.initSelection();
+ }
+ },
+
+ // 追加内容
+ append: function append(html) {
+ var editor = this.editor;
+ var $textElem = editor.$textElem;
+ $textElem.append($(html));
+
+ // 初始化选取,将光标定位到内容尾部
+ editor.initSelection();
+ },
+
+ // 绑定事件
+ _bindEvent: function _bindEvent() {
+ // 实时保存选取
+ this._saveRangeRealTime();
+
+ // 按回车建时的特殊处理
+ this._enterKeyHandle();
+
+ // 清空时保留
+ this._clearHandle();
+
+ // 粘贴事件(粘贴文字,粘贴图片)
+ this._pasteHandle();
+
+ // tab 特殊处理
+ this._tabHandle();
+
+ // img 点击
+ this._imgHandle();
+
+ // 拖拽事件
+ this._dragHandle();
+ },
+
+ // 实时保存选取
+ _saveRangeRealTime: function _saveRangeRealTime() {
+ var editor = this.editor;
+ var $textElem = editor.$textElem;
+
+ // 保存当前的选区
+ function saveRange(e) {
+ // 随时保存选区
+ editor.selection.saveRange();
+ // 更新按钮 ative 状态
+ editor.menus.changeActive();
+ }
+ // 按键后保存
+ $textElem.on('keyup', saveRange);
+ $textElem.on('mousedown', function (e) {
+ // mousedown 状态下,鼠标滑动到编辑区域外面,也需要保存选区
+ $textElem.on('mouseleave', saveRange);
+ });
+ $textElem.on('mouseup', function (e) {
+ saveRange();
+ // 在编辑器区域之内完成点击,取消鼠标滑动到编辑区外面的事件
+ $textElem.off('mouseleave', saveRange);
+ });
+ },
+
+ // 按回车键时的特殊处理
+ _enterKeyHandle: function _enterKeyHandle() {
+ var editor = this.editor;
+ var $textElem = editor.$textElem;
+
+ function insertEmptyP($selectionElem) {
+ var $p = $('
');
+ $p.insertBefore($selectionElem);
+ editor.selection.createRangeByElem($p, true);
+ editor.selection.restoreSelection();
+ $selectionElem.remove();
+ }
+
+ // 将回车之后生成的非
的顶级标签,改为
+ function pHandle(e) {
+ var $selectionElem = editor.selection.getSelectionContainerElem();
+ var $parentElem = $selectionElem.parent();
+
+ if ($parentElem.html() === '
') {
+ // 回车之前光标所在一个
.....
,忽然回车生成一个空的
+ // 而且继续回车跳不出去,因此只能特殊处理
+ insertEmptyP($selectionElem);
+ return;
+ }
+
+ if (!$parentElem.equal($textElem)) {
+ // 不是顶级标签
+ return;
+ }
+
+ var nodeName = $selectionElem.getNodeName();
+ if (nodeName === 'P') {
+ // 当前的标签是 P ,不用做处理
+ return;
+ }
+
+ if ($selectionElem.text()) {
+ // 有内容,不做处理
+ return;
+ }
+
+ // 插入
,并将选取定位到
,删除当前标签
+ insertEmptyP($selectionElem);
+ }
+
+ $textElem.on('keyup', function (e) {
+ if (e.keyCode !== 13) {
+ // 不是回车键
+ return;
+ }
+ // 将回车之后生成的非
的顶级标签,改为
+ pHandle(e);
+ });
+
+ //
回车时 特殊处理
+ function codeHandle(e) {
+ var $selectionElem = editor.selection.getSelectionContainerElem();
+ if (!$selectionElem) {
+ return;
+ }
+ var $parentElem = $selectionElem.parent();
+ var selectionNodeName = $selectionElem.getNodeName();
+ var parentNodeName = $parentElem.getNodeName();
+
+ if (selectionNodeName !== 'CODE' || parentNodeName !== 'PRE') {
+ // 不符合要求 忽略
+ return;
+ }
+
+ if (!editor.cmd.queryCommandSupported('insertHTML')) {
+ // 必须原生支持 insertHTML 命令
+ return;
+ }
+
+ // 处理:光标定位到代码末尾,联系点击两次回车,即跳出代码块
+ if (editor._willBreakCode === true) {
+ // 此时可以跳出代码块
+ // 插入
,并将选取定位到
+ var $p = $('
');
+ $p.insertAfter($parentElem);
+ editor.selection.createRangeByElem($p, true);
+ editor.selection.restoreSelection();
+
+ // 修改状态
+ editor._willBreakCode = false;
+
+ e.preventDefault();
+ return;
+ }
+
+ var _startOffset = editor.selection.getRange().startOffset;
+
+ // 处理:回车时,不能插入
而是插入 \n ,因为是在 pre 标签里面
+ editor.cmd.do('insertHTML', '\n');
+ editor.selection.saveRange();
+ if (editor.selection.getRange().startOffset === _startOffset) {
+ // 没起作用,再来一遍
+ editor.cmd.do('insertHTML', '\n');
+ }
+
+ var codeLength = $selectionElem.html().length;
+ if (editor.selection.getRange().startOffset + 1 === codeLength) {
+ // 说明光标在代码最后的位置,执行了回车操作
+ // 记录下来,以便下次回车时候跳出 code
+ editor._willBreakCode = true;
+ }
+
+ // 阻止默认行为
+ e.preventDefault();
+ }
+
+ $textElem.on('keydown', function (e) {
+ if (e.keyCode !== 13) {
+ // 不是回车键
+ // 取消即将跳转代码块的记录
+ editor._willBreakCode = false;
+ return;
+ }
+ //
回车时 特殊处理
+ codeHandle(e);
+ });
+ },
+
+ // 清空时保留
+ _clearHandle: function _clearHandle() {
+ var editor = this.editor;
+ var $textElem = editor.$textElem;
+
+ $textElem.on('keydown', function (e) {
+ if (e.keyCode !== 8) {
+ return;
+ }
+ var txtHtml = $textElem.html().toLowerCase().trim();
+ if (txtHtml === '
') {
+ // 最后剩下一个空行,就不再删除了
+ e.preventDefault();
+ return;
+ }
+ });
+
+ $textElem.on('keyup', function (e) {
+ if (e.keyCode !== 8) {
+ return;
+ }
+ var $p = void 0;
+ var txtHtml = $textElem.html().toLowerCase().trim();
+
+ // firefox 时用 txtHtml === '
' 判断,其他用 !txtHtml 判断
+ if (!txtHtml || txtHtml === '
') {
+ // 内容空了
+ $p = $('
');
+ $textElem.html(''); // 一定要先清空,否则在 firefox 下有问题
+ $textElem.append($p);
+ editor.selection.createRangeByElem($p, false, true);
+ editor.selection.restoreSelection();
+ }
+ });
+ },
+
+ // 粘贴事件(粘贴文字 粘贴图片)
+ _pasteHandle: function _pasteHandle() {
+ var editor = this.editor;
+ var config = editor.config;
+ var pasteFilterStyle = config.pasteFilterStyle;
+ var pasteTextHandle = config.pasteTextHandle;
+ var $textElem = editor.$textElem;
+
+ // 粘贴图片、文本的事件,每次只能执行一个
+ // 判断该次粘贴事件是否可以执行
+ var pasteTime = 0;
+ function canDo() {
+ var now = Date.now();
+ var flag = false;
+ if (now - pasteTime >= 500) {
+ // 间隔大于 500 ms ,可以执行
+ flag = true;
+ }
+ pasteTime = now;
+ return flag;
+ }
+ function resetTime() {
+ pasteTime = 0;
+ }
+
+ // 粘贴文字
+ $textElem.on('paste', function (e) {
+ if (UA.isIE()) {
+ return;
+ } else {
+ // 阻止默认行为,使用 execCommand 的粘贴命令
+ e.preventDefault();
+ }
+
+ // 粘贴图片和文本,只能同时使用一个
+ if (!canDo()) {
+ return;
+ }
+
+ // 获取粘贴的文字
+ var pasteHtml = getPasteHtml(e, pasteFilterStyle);
+ var pasteText = getPasteText(e);
+ pasteText = pasteText.replace(/\n/gm, '
');
+
+ var $selectionElem = editor.selection.getSelectionContainerElem();
+ if (!$selectionElem) {
+ return;
+ }
+ var nodeName = $selectionElem.getNodeName();
+
+ // code 中只能粘贴纯文本
+ if (nodeName === 'CODE' || nodeName === 'PRE') {
+ if (pasteTextHandle && isFunction(pasteTextHandle)) {
+ // 用户自定义过滤处理粘贴内容
+ pasteText = '' + (pasteTextHandle(pasteText) || '');
+ }
+ editor.cmd.do('insertHTML', '
' + pasteText + '
');
+ return;
+ }
+
+ // 先放开注释,有问题再追查 ————
+ // // 表格中忽略,可能会出现异常问题
+ // if (nodeName === 'TD' || nodeName === 'TH') {
+ // return
+ // }
+
+ if (!pasteHtml) {
+ // 没有内容,可继续执行下面的图片粘贴
+ resetTime();
+ return;
+ }
+ try {
+ // firefox 中,获取的 pasteHtml 可能是没有
包裹的
+ // 因此执行 insertHTML 会报错
+ if (pasteTextHandle && isFunction(pasteTextHandle)) {
+ // 用户自定义过滤处理粘贴内容
+ pasteHtml = '' + (pasteTextHandle(pasteHtml) || '');
+ }
+ editor.cmd.do('insertHTML', pasteHtml);
+ } catch (ex) {
+ // 此时使用 pasteText 来兼容一下
+ if (pasteTextHandle && isFunction(pasteTextHandle)) {
+ // 用户自定义过滤处理粘贴内容
+ pasteText = '' + (pasteTextHandle(pasteText) || '');
+ }
+ editor.cmd.do('insertHTML', '' + pasteText + '
');
+ }
+ });
+
+ // 粘贴图片
+ $textElem.on('paste', function (e) {
+ if (UA.isIE()) {
+ return;
+ } else {
+ e.preventDefault();
+ }
+
+ // 粘贴图片和文本,只能同时使用一个
+ if (!canDo()) {
+ return;
+ }
+
+ // 获取粘贴的图片
+ var pasteFiles = getPasteImgs(e);
+ if (!pasteFiles || !pasteFiles.length) {
+ return;
+ }
+
+ // 获取当前的元素
+ var $selectionElem = editor.selection.getSelectionContainerElem();
+ if (!$selectionElem) {
+ return;
+ }
+ var nodeName = $selectionElem.getNodeName();
+
+ // code 中粘贴忽略
+ if (nodeName === 'CODE' || nodeName === 'PRE') {
+ return;
+ }
+
+ // 上传图片
+ var uploadImg = editor.uploadImg;
+ uploadImg.uploadImg(pasteFiles);
+ });
+ },
+
+ // tab 特殊处理
+ _tabHandle: function _tabHandle() {
+ var editor = this.editor;
+ var $textElem = editor.$textElem;
+
+ $textElem.on('keydown', function (e) {
+ if (e.keyCode !== 9) {
+ return;
+ }
+ if (!editor.cmd.queryCommandSupported('insertHTML')) {
+ // 必须原生支持 insertHTML 命令
+ return;
+ }
+ var $selectionElem = editor.selection.getSelectionContainerElem();
+ if (!$selectionElem) {
+ return;
+ }
+ var $parentElem = $selectionElem.parent();
+ var selectionNodeName = $selectionElem.getNodeName();
+ var parentNodeName = $parentElem.getNodeName();
+
+ if (selectionNodeName === 'CODE' && parentNodeName === 'PRE') {
+ // 里面
+ editor.cmd.do('insertHTML', ' ');
+ } else {
+ // 普通文字
+ editor.cmd.do('insertHTML', ' ');
+ }
+
+ e.preventDefault();
+ });
+ },
+
+ // img 点击
+ _imgHandle: function _imgHandle() {
+ var editor = this.editor;
+ var $textElem = editor.$textElem;
+
+ // 为图片增加 selected 样式
+ $textElem.on('click', 'img', function (e) {
+ var img = this;
+ var $img = $(img);
+
+ if ($img.attr('data-w-e') === '1') {
+ // 是表情图片,忽略
+ return;
+ }
+
+ // 记录当前点击过的图片
+ editor._selectedImg = $img;
+
+ // 修改选区并 restore ,防止用户此时点击退格键,会删除其他内容
+ editor.selection.createRangeByElem($img);
+ editor.selection.restoreSelection();
+ });
+
+ // 去掉图片的 selected 样式
+ $textElem.on('click keyup', function (e) {
+ if (e.target.matches('img')) {
+ // 点击的是图片,忽略
+ return;
+ }
+ // 删除记录
+ editor._selectedImg = null;
+ });
+ },
+
+ // 拖拽事件
+ _dragHandle: function _dragHandle() {
+ var editor = this.editor;
+
+ // 禁用 document 拖拽事件
+ var $document = $(document);
+ $document.on('dragleave drop dragenter dragover', function (e) {
+ e.preventDefault();
+ });
+
+ // 添加编辑区域拖拽事件
+ var $textElem = editor.$textElem;
+ $textElem.on('drop', function (e) {
+ e.preventDefault();
+ var files = e.dataTransfer && e.dataTransfer.files;
+ if (!files || !files.length) {
+ return;
+ }
+
+ // 上传图片
+ var uploadImg = editor.uploadImg;
+ uploadImg.uploadImg(files);
+ });
+ }
+};
+
+/*
+ 命令,封装 document.execCommand
+*/
+
+// 构造函数
+function Command(editor) {
+ this.editor = editor;
+}
+
+// 修改原型
+Command.prototype = {
+ constructor: Command,
+
+ // 执行命令
+ do: function _do(name, value) {
+ var editor = this.editor;
+
+ // 使用 styleWithCSS
+ if (!editor._useStyleWithCSS) {
+ document.execCommand('styleWithCSS', null, true);
+ editor._useStyleWithCSS = true;
+ }
+
+ // 如果无选区,忽略
+ if (!editor.selection.getRange()) {
+ return;
+ }
+
+ // 恢复选取
+ editor.selection.restoreSelection();
+
+ // 执行
+ var _name = '_' + name;
+ if (this[_name]) {
+ // 有自定义事件
+ this[_name](value);
+ } else {
+ // 默认 command
+ this._execCommand(name, value);
+ }
+
+ // 修改菜单状态
+ editor.menus.changeActive();
+
+ // 最后,恢复选取保证光标在原来的位置闪烁
+ editor.selection.saveRange();
+ editor.selection.restoreSelection();
+
+ // 触发 onchange
+ editor.change && editor.change();
+ },
+
+ // 自定义 insertHTML 事件
+ _insertHTML: function _insertHTML(html) {
+ var editor = this.editor;
+ var range = editor.selection.getRange();
+
+ if (this.queryCommandSupported('insertHTML')) {
+ // W3C
+ this._execCommand('insertHTML', html);
+ } else if (range.insertNode) {
+ // IE
+ range.deleteContents();
+ range.insertNode($(html)[0]);
+ } else if (range.pasteHTML) {
+ // IE <= 10
+ range.pasteHTML(html);
+ }
+ },
+
+ // 插入 elem
+ _insertElem: function _insertElem($elem) {
+ var editor = this.editor;
+ var range = editor.selection.getRange();
+
+ if (range.insertNode) {
+ range.deleteContents();
+ range.insertNode($elem[0]);
+ }
+ },
+
+ // 封装 execCommand
+ _execCommand: function _execCommand(name, value) {
+ document.execCommand(name, false, value);
+ },
+
+ // 封装 document.queryCommandValue
+ queryCommandValue: function queryCommandValue(name) {
+ return document.queryCommandValue(name);
+ },
+
+ // 封装 document.queryCommandState
+ queryCommandState: function queryCommandState(name) {
+ return document.queryCommandState(name);
+ },
+
+ // 封装 document.queryCommandSupported
+ queryCommandSupported: function queryCommandSupported(name) {
+ return document.queryCommandSupported(name);
+ }
+};
+
+/*
+ selection range API
+*/
+
+// 构造函数
+function API(editor) {
+ this.editor = editor;
+ this._currentRange = null;
+}
+
+// 修改原型
+API.prototype = {
+ constructor: API,
+
+ // 获取 range 对象
+ getRange: function getRange() {
+ return this._currentRange;
+ },
+
+ // 保存选区
+ saveRange: function saveRange(_range) {
+ if (_range) {
+ // 保存已有选区
+ this._currentRange = _range;
+ return;
+ }
+
+ // 获取当前的选区
+ var selection = window.getSelection();
+ if (selection.rangeCount === 0) {
+ return;
+ }
+ var range = selection.getRangeAt(0);
+
+ // 判断选区内容是否在编辑内容之内
+ var $containerElem = this.getSelectionContainerElem(range);
+ if (!$containerElem) {
+ return;
+ }
+ var editor = this.editor;
+ var $textElem = editor.$textElem;
+ if ($textElem.isContain($containerElem)) {
+ // 是编辑内容之内的
+ this._currentRange = range;
+ }
+ },
+
+ // 折叠选区
+ collapseRange: function collapseRange(toStart) {
+ if (toStart == null) {
+ // 默认为 false
+ toStart = false;
+ }
+ var range = this._currentRange;
+ if (range) {
+ range.collapse(toStart);
+ }
+ },
+
+ // 选中区域的文字
+ getSelectionText: function getSelectionText() {
+ var range = this._currentRange;
+ if (range) {
+ return this._currentRange.toString();
+ } else {
+ return '';
+ }
+ },
+
+ // 选区的 $Elem
+ getSelectionContainerElem: function getSelectionContainerElem(range) {
+ range = range || this._currentRange;
+ var elem = void 0;
+ if (range) {
+ elem = range.commonAncestorContainer;
+ return $(elem.nodeType === 1 ? elem : elem.parentNode);
+ }
+ },
+ getSelectionStartElem: function getSelectionStartElem(range) {
+ range = range || this._currentRange;
+ var elem = void 0;
+ if (range) {
+ elem = range.startContainer;
+ return $(elem.nodeType === 1 ? elem : elem.parentNode);
+ }
+ },
+ getSelectionEndElem: function getSelectionEndElem(range) {
+ range = range || this._currentRange;
+ var elem = void 0;
+ if (range) {
+ elem = range.endContainer;
+ return $(elem.nodeType === 1 ? elem : elem.parentNode);
+ }
+ },
+
+ // 选区是否为空
+ isSelectionEmpty: function isSelectionEmpty() {
+ var range = this._currentRange;
+ if (range && range.startContainer) {
+ if (range.startContainer === range.endContainer) {
+ if (range.startOffset === range.endOffset) {
+ return true;
+ }
+ }
+ }
+ return false;
+ },
+
+ // 恢复选区
+ restoreSelection: function restoreSelection() {
+ var selection = window.getSelection();
+ selection.removeAllRanges();
+ selection.addRange(this._currentRange);
+ },
+
+ // 创建一个空白(即 字符)选区
+ createEmptyRange: function createEmptyRange() {
+ var editor = this.editor;
+ var range = this.getRange();
+ var $elem = void 0;
+
+ if (!range) {
+ // 当前无 range
+ return;
+ }
+ if (!this.isSelectionEmpty()) {
+ // 当前选区必须没有内容才可以
+ return;
+ }
+
+ try {
+ // 目前只支持 webkit 内核
+ if (UA.isWebkit()) {
+ // 插入
+ editor.cmd.do('insertHTML', '');
+ // 修改 offset 位置
+ range.setEnd(range.endContainer, range.endOffset + 1);
+ // 存储
+ this.saveRange(range);
+ } else {
+ $elem = $(' ');
+ editor.cmd.do('insertElem', $elem);
+ this.createRangeByElem($elem, true);
+ }
+ } catch (ex) {
+ // 部分情况下会报错,兼容一下
+ }
+ },
+
+ // 根据 $Elem 设置选区
+ createRangeByElem: function createRangeByElem($elem, toStart, isContent) {
+ // $elem - 经过封装的 elem
+ // toStart - true 开始位置,false 结束位置
+ // isContent - 是否选中Elem的内容
+ if (!$elem.length) {
+ return;
+ }
+
+ var elem = $elem[0];
+ var range = document.createRange();
+
+ if (isContent) {
+ range.selectNodeContents(elem);
+ } else {
+ range.selectNode(elem);
+ }
+
+ if (typeof toStart === 'boolean') {
+ range.collapse(toStart);
+ }
+
+ // 存储 range
+ this.saveRange(range);
+ }
+};
+
+/*
+ 上传进度条
+*/
+
+function Progress(editor) {
+ this.editor = editor;
+ this._time = 0;
+ this._isShow = false;
+ this._isRender = false;
+ this._timeoutId = 0;
+ this.$textContainer = editor.$textContainerElem;
+ this.$bar = $('
');
+}
+
+Progress.prototype = {
+ constructor: Progress,
+
+ show: function show(progress) {
+ var _this = this;
+
+ // 状态处理
+ if (this._isShow) {
+ return;
+ }
+ this._isShow = true;
+
+ // 渲染
+ var $bar = this.$bar;
+ if (!this._isRender) {
+ var $textContainer = this.$textContainer;
+ $textContainer.append($bar);
+ } else {
+ this._isRender = true;
+ }
+
+ // 改变进度(节流,100ms 渲染一次)
+ if (Date.now() - this._time > 100) {
+ if (progress <= 1) {
+ $bar.css('width', progress * 100 + '%');
+ this._time = Date.now();
+ }
+ }
+
+ // 隐藏
+ var timeoutId = this._timeoutId;
+ if (timeoutId) {
+ clearTimeout(timeoutId);
+ }
+ timeoutId = setTimeout(function () {
+ _this._hide();
+ }, 500);
+ },
+
+ _hide: function _hide() {
+ var $bar = this.$bar;
+ $bar.remove();
+
+ // 修改状态
+ this._time = 0;
+ this._isShow = false;
+ this._isRender = false;
+ }
+};
+
+var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
+ return typeof obj;
+} : function (obj) {
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
+};
+
+/*
+ 上传图片
+*/
+
+// 构造函数
+function UploadImg(editor) {
+ this.editor = editor;
+}
+
+// 原型
+UploadImg.prototype = {
+ constructor: UploadImg,
+
+ // 根据 debug 弹出不同的信息
+ _alert: function _alert(alertInfo, debugInfo) {
+ var editor = this.editor;
+ var debug = editor.config.debug;
+ var customAlert = editor.config.customAlert;
+
+ if (debug) {
+ throw new Error('wangEditor: ' + (debugInfo || alertInfo));
+ } else {
+ if (customAlert && typeof customAlert === 'function') {
+ customAlert(alertInfo);
+ } else {
+ alert(alertInfo);
+ }
+ }
+ },
+
+ // 根据链接插入图片
+ insertLinkImg: function insertLinkImg(link) {
+ var _this2 = this;
+
+ if (!link) {
+ return;
+ }
+ var editor = this.editor;
+ var config = editor.config;
+
+ // 校验格式
+ var linkImgCheck = config.linkImgCheck;
+ var checkResult = void 0;
+ if (linkImgCheck && typeof linkImgCheck === 'function') {
+ checkResult = linkImgCheck(link);
+ if (typeof checkResult === 'string') {
+ // 校验失败,提示信息
+ alert(checkResult);
+ return;
+ }
+ }
+
+ editor.cmd.do('insertHTML', ' ');
+
+ // 验证图片 url 是否有效,无效的话给出提示
+ var img = document.createElement('img');
+ img.onload = function () {
+ var callback = config.linkImgCallback;
+ if (callback && typeof callback === 'function') {
+ callback(link);
+ }
+
+ img = null;
+ };
+ img.onerror = function () {
+ img = null;
+ // 无法成功下载图片
+ _this2._alert('插入图片错误', 'wangEditor: \u63D2\u5165\u56FE\u7247\u51FA\u9519\uFF0C\u56FE\u7247\u94FE\u63A5\u662F "' + link + '"\uFF0C\u4E0B\u8F7D\u8BE5\u94FE\u63A5\u5931\u8D25');
+ return;
+ };
+ img.onabort = function () {
+ img = null;
+ };
+ img.src = link;
+ },
+
+ // 上传图片
+ uploadImg: function uploadImg(files) {
+ var _this3 = this;
+
+ if (!files || !files.length) {
+ return;
+ }
+
+ // ------------------------------ 获取配置信息 ------------------------------
+ var editor = this.editor;
+ var config = editor.config;
+ var uploadImgServer = config.uploadImgServer;
+ var uploadImgShowBase64 = config.uploadImgShowBase64;
+
+ var maxSize = config.uploadImgMaxSize;
+ var maxSizeM = maxSize / 1024 / 1024;
+ var maxLength = config.uploadImgMaxLength || 10000;
+ var uploadFileName = config.uploadFileName || '';
+ var uploadImgParams = config.uploadImgParams || {};
+ var uploadImgParamsWithUrl = config.uploadImgParamsWithUrl;
+ var uploadImgHeaders = config.uploadImgHeaders || {};
+ var hooks = config.uploadImgHooks || {};
+ var timeout = config.uploadImgTimeout || 3000;
+ var withCredentials = config.withCredentials;
+ if (withCredentials == null) {
+ withCredentials = false;
+ }
+ var customUploadImg = config.customUploadImg;
+
+ if (!customUploadImg) {
+ // 没有 customUploadImg 的情况下,需要如下两个配置才能继续进行图片上传
+ if (!uploadImgServer && !uploadImgShowBase64) {
+ return;
+ }
+ }
+
+ // ------------------------------ 验证文件信息 ------------------------------
+ var resultFiles = [];
+ var errInfo = [];
+ arrForEach(files, function (file) {
+ var name = file.name;
+ var size = file.size;
+
+ // chrome 低版本 name === undefined
+ if (!name || !size) {
+ return;
+ }
+
+ if (/\.(jpg|jpeg|png|bmp|gif)$/i.test(name) === false) {
+ // 后缀名不合法,不是图片
+ errInfo.push('\u3010' + name + '\u3011\u4E0D\u662F\u56FE\u7247');
+ return;
+ }
+ if (maxSize < size) {
+ // 上传图片过大
+ errInfo.push('\u3010' + name + '\u3011\u5927\u4E8E ' + maxSizeM + 'M');
+ return;
+ }
+
+ // 验证通过的加入结果列表
+ resultFiles.push(file);
+ });
+ // 抛出验证信息
+ if (errInfo.length) {
+ this._alert('图片验证未通过: \n' + errInfo.join('\n'));
+ return;
+ }
+ if (resultFiles.length > maxLength) {
+ this._alert('一次最多上传' + maxLength + '张图片');
+ return;
+ }
+
+ // ------------------------------ 自定义上传 ------------------------------
+ if (customUploadImg && typeof customUploadImg === 'function') {
+ customUploadImg(resultFiles, this.insertLinkImg.bind(this));
+
+ // 阻止以下代码执行
+ return;
+ }
+
+ // 添加图片数据
+ var formdata = new FormData();
+ arrForEach(resultFiles, function (file) {
+ var name = uploadFileName || file.name;
+ formdata.append(name, file);
+ });
+
+ // ------------------------------ 上传图片 ------------------------------
+ if (uploadImgServer && typeof uploadImgServer === 'string') {
+ // 添加参数
+ var uploadImgServerArr = uploadImgServer.split('#');
+ uploadImgServer = uploadImgServerArr[0];
+ var uploadImgServerHash = uploadImgServerArr[1] || '';
+ objForEach(uploadImgParams, function (key, val) {
+ val = encodeURIComponent(val);
+
+ // 第一,将参数拼接到 url 中
+ if (uploadImgParamsWithUrl) {
+ if (uploadImgServer.indexOf('?') > 0) {
+ uploadImgServer += '&';
+ } else {
+ uploadImgServer += '?';
+ }
+ uploadImgServer = uploadImgServer + key + '=' + val;
+ }
+
+ // 第二,将参数添加到 formdata 中
+ formdata.append(key, val);
+ });
+ if (uploadImgServerHash) {
+ uploadImgServer += '#' + uploadImgServerHash;
+ }
+
+ // 定义 xhr
+ var xhr = new XMLHttpRequest();
+ xhr.open('POST', uploadImgServer);
+
+ // 设置超时
+ xhr.timeout = timeout;
+ xhr.ontimeout = function () {
+ // hook - timeout
+ if (hooks.timeout && typeof hooks.timeout === 'function') {
+ hooks.timeout(xhr, editor);
+ }
+
+ _this3._alert('上传图片超时');
+ };
+
+ // 监控 progress
+ if (xhr.upload) {
+ xhr.upload.onprogress = function (e) {
+ var percent = void 0;
+ // 进度条
+ var progressBar = new Progress(editor);
+ if (e.lengthComputable) {
+ percent = e.loaded / e.total;
+ progressBar.show(percent);
+ }
+ };
+ }
+
+ // 返回数据
+ xhr.onreadystatechange = function () {
+ var result = void 0;
+ if (xhr.readyState === 4) {
+ if (xhr.status < 200 || xhr.status >= 300) {
+ // hook - error
+ if (hooks.error && typeof hooks.error === 'function') {
+ hooks.error(xhr, editor);
+ }
+
+ // xhr 返回状态错误
+ _this3._alert('上传图片发生错误', '\u4E0A\u4F20\u56FE\u7247\u53D1\u751F\u9519\u8BEF\uFF0C\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001\u662F ' + xhr.status);
+ return;
+ }
+
+ result = xhr.responseText;
+ if ((typeof result === 'undefined' ? 'undefined' : _typeof(result)) !== 'object') {
+ try {
+ result = JSON.parse(result);
+ } catch (ex) {
+ // hook - fail
+ if (hooks.fail && typeof hooks.fail === 'function') {
+ hooks.fail(xhr, editor, result);
+ }
+
+ _this3._alert('上传图片失败', '上传图片返回结果错误,返回结果是: ' + result);
+ return;
+ }
+ }
+ if (!hooks.customInsert && result.errno != '0') {
+ // hook - fail
+ if (hooks.fail && typeof hooks.fail === 'function') {
+ hooks.fail(xhr, editor, result);
+ }
+
+ // 数据错误
+ _this3._alert('上传图片失败', '上传图片返回结果错误,返回结果 errno=' + result.errno);
+ } else {
+ if (hooks.customInsert && typeof hooks.customInsert === 'function') {
+ // 使用者自定义插入方法
+ hooks.customInsert(_this3.insertLinkImg.bind(_this3), result, editor);
+ } else {
+ // 将图片插入编辑器
+ var data = result.data || [];
+ data.forEach(function (link) {
+ _this3.insertLinkImg(link);
+ });
+ }
+
+ // hook - success
+ if (hooks.success && typeof hooks.success === 'function') {
+ hooks.success(xhr, editor, result);
+ }
+ }
+ }
+ };
+
+ // hook - before
+ if (hooks.before && typeof hooks.before === 'function') {
+ var beforeResult = hooks.before(xhr, editor, resultFiles);
+ if (beforeResult && (typeof beforeResult === 'undefined' ? 'undefined' : _typeof(beforeResult)) === 'object') {
+ if (beforeResult.prevent) {
+ // 如果返回的结果是 {prevent: true, msg: 'xxxx'} 则表示用户放弃上传
+ this._alert(beforeResult.msg);
+ return;
+ }
+ }
+ }
+
+ // 自定义 headers
+ objForEach(uploadImgHeaders, function (key, val) {
+ xhr.setRequestHeader(key, val);
+ });
+
+ // 跨域传 cookie
+ xhr.withCredentials = withCredentials;
+
+ // 发送请求
+ xhr.send(formdata);
+
+ // 注意,要 return 。不去操作接下来的 base64 显示方式
+ return;
+ }
+
+ // ------------------------------ 显示 base64 格式 ------------------------------
+ if (uploadImgShowBase64) {
+ arrForEach(files, function (file) {
+ var _this = _this3;
+ var reader = new FileReader();
+ reader.readAsDataURL(file);
+ reader.onload = function () {
+ _this.insertLinkImg(this.result);
+ };
+ });
+ }
+ }
+};
+
+/*
+ 编辑器构造函数
+*/
+
+// id,累加
+var editorId = 1;
+
+// 构造函数
+function Editor(toolbarSelector, textSelector) {
+ if (toolbarSelector == null) {
+ // 没有传入任何参数,报错
+ throw new Error('错误:初始化编辑器时候未传入任何参数,请查阅文档');
+ }
+ // id,用以区分单个页面不同的编辑器对象
+ this.id = 'wangEditor-' + editorId++;
+
+ this.toolbarSelector = toolbarSelector;
+ this.textSelector = textSelector;
+
+ // 自定义配置
+ this.customConfig = {};
+}
+
+// 修改原型
+Editor.prototype = {
+ constructor: Editor,
+
+ // 初始化配置
+ _initConfig: function _initConfig() {
+ // _config 是默认配置,this.customConfig 是用户自定义配置,将它们 merge 之后再赋值
+ var target = {};
+ this.config = Object.assign(target, config, this.customConfig);
+
+ // 将语言配置,生成正则表达式
+ var langConfig = this.config.lang || {};
+ var langArgs = [];
+ objForEach(langConfig, function (key, val) {
+ // key 即需要生成正则表达式的规则,如“插入链接”
+ // val 即需要被替换成的语言,如“insert link”
+ langArgs.push({
+ reg: new RegExp(key, 'img'),
+ val: val
+
+ });
+ });
+ this.config.langArgs = langArgs;
+ },
+
+ // 初始化 DOM
+ _initDom: function _initDom() {
+ var _this = this;
+
+ var toolbarSelector = this.toolbarSelector;
+ var $toolbarSelector = $(toolbarSelector);
+ var textSelector = this.textSelector;
+
+ var config$$1 = this.config;
+ var zIndex = config$$1.zIndex;
+
+ // 定义变量
+ var $toolbarElem = void 0,
+ $textContainerElem = void 0,
+ $textElem = void 0,
+ $children = void 0;
+
+ if (textSelector == null) {
+ // 只传入一个参数,即是容器的选择器或元素,toolbar 和 text 的元素自行创建
+ $toolbarElem = $('
');
+ $textContainerElem = $('
');
+
+ // 将编辑器区域原有的内容,暂存起来
+ $children = $toolbarSelector.children();
+
+ // 添加到 DOM 结构中
+ $toolbarSelector.append($toolbarElem).append($textContainerElem);
+
+ // 自行创建的,需要配置默认的样式
+ $toolbarElem.css('background-color', '#f1f1f1').css('border', '1px solid #ccc');
+ $textContainerElem.css('border', '1px solid #ccc').css('border-top', 'none').css('height', '300px');
+ } else {
+ // toolbar 和 text 的选择器都有值,记录属性
+ $toolbarElem = $toolbarSelector;
+ $textContainerElem = $(textSelector);
+ // 将编辑器区域原有的内容,暂存起来
+ $children = $textContainerElem.children();
+ }
+
+ // 编辑区域
+ $textElem = $('
');
+ $textElem.attr('contenteditable', 'true').css('width', '100%').css('height', '100%');
+
+ // 初始化编辑区域内容
+ if ($children && $children.length) {
+ $textElem.append($children);
+ } else {
+ $textElem.append($('
'));
+ }
+
+ // 编辑区域加入DOM
+ $textContainerElem.append($textElem);
+
+ // 设置通用的 class
+ $toolbarElem.addClass('w-e-toolbar');
+ $textContainerElem.addClass('w-e-text-container');
+ $textContainerElem.css('z-index', zIndex);
+ $textElem.addClass('w-e-text');
+
+ // 添加 ID
+ var toolbarElemId = getRandom('toolbar-elem');
+ $toolbarElem.attr('id', toolbarElemId);
+ var textElemId = getRandom('text-elem');
+ $textElem.attr('id', textElemId);
+
+ // 记录属性
+ this.$toolbarElem = $toolbarElem;
+ this.$textContainerElem = $textContainerElem;
+ this.$textElem = $textElem;
+ this.toolbarElemId = toolbarElemId;
+ this.textElemId = textElemId;
+
+ // 记录输入法的开始和结束
+ var compositionEnd = true;
+ $textContainerElem.on('compositionstart', function () {
+ // 输入法开始输入
+ compositionEnd = false;
+ });
+ $textContainerElem.on('compositionend', function () {
+ // 输入法结束输入
+ compositionEnd = true;
+ });
+
+ // 绑定 onchange
+ $textContainerElem.on('click keyup', function () {
+ // 输入法结束才出发 onchange
+ compositionEnd && _this.change && _this.change();
+ });
+ $toolbarElem.on('click', function () {
+ this.change && this.change();
+ });
+
+ //绑定 onfocus 与 onblur 事件
+ if (config$$1.onfocus || config$$1.onblur) {
+ // 当前编辑器是否是焦点状态
+ this.isFocus = false;
+
+ $(document).on('click', function (e) {
+ //判断当前点击元素是否在编辑器内
+ var isChild = $textElem.isContain($(e.target));
+
+ //判断当前点击元素是否为工具栏
+ var isToolbar = $toolbarElem.isContain($(e.target));
+ var isMenu = $toolbarElem[0] == e.target ? true : false;
+
+ if (!isChild) {
+ //若为选择工具栏中的功能,则不视为成blur操作
+ if (isToolbar && !isMenu) {
+ return;
+ }
+
+ if (_this.isFocus) {
+ _this.onblur && _this.onblur();
+ }
+ _this.isFocus = false;
+ } else {
+ if (!_this.isFocus) {
+ _this.onfocus && _this.onfocus();
+ }
+ _this.isFocus = true;
+ }
+ });
+ }
+ },
+
+ // 封装 command
+ _initCommand: function _initCommand() {
+ this.cmd = new Command(this);
+ },
+
+ // 封装 selection range API
+ _initSelectionAPI: function _initSelectionAPI() {
+ this.selection = new API(this);
+ },
+
+ // 添加图片上传
+ _initUploadImg: function _initUploadImg() {
+ this.uploadImg = new UploadImg(this);
+ },
+
+ // 初始化菜单
+ _initMenus: function _initMenus() {
+ this.menus = new Menus(this);
+ this.menus.init();
+ },
+
+ // 添加 text 区域
+ _initText: function _initText() {
+ this.txt = new Text(this);
+ this.txt.init();
+ },
+
+ // 初始化选区,将光标定位到内容尾部
+ initSelection: function initSelection(newLine) {
+ var $textElem = this.$textElem;
+ var $children = $textElem.children();
+ if (!$children.length) {
+ // 如果编辑器区域无内容,添加一个空行,重新设置选区
+ $textElem.append($('
'));
+ this.initSelection();
+ return;
+ }
+
+ var $last = $children.last();
+
+ if (newLine) {
+ // 新增一个空行
+ var html = $last.html().toLowerCase();
+ var nodeName = $last.getNodeName();
+ if (html !== ' ' && html !== ' ' || nodeName !== 'P') {
+ // 最后一个元素不是
,添加一个空行,重新设置选区
+ $textElem.append($('
'));
+ this.initSelection();
+ return;
+ }
+ }
+
+ this.selection.createRangeByElem($last, false, true);
+ this.selection.restoreSelection();
+ },
+
+ // 绑定事件
+ _bindEvent: function _bindEvent() {
+ // -------- 绑定 onchange 事件 --------
+ var onChangeTimeoutId = 0;
+ var beforeChangeHtml = this.txt.html();
+ var config$$1 = this.config;
+
+ // onchange 触发延迟时间
+ var onchangeTimeout = config$$1.onchangeTimeout;
+ onchangeTimeout = parseInt(onchangeTimeout, 10);
+ if (!onchangeTimeout || onchangeTimeout <= 0) {
+ onchangeTimeout = 200;
+ }
+
+ var onchange = config$$1.onchange;
+ if (onchange && typeof onchange === 'function') {
+ // 触发 change 的有三个场景:
+ // 1. $textContainerElem.on('click keyup')
+ // 2. $toolbarElem.on('click')
+ // 3. editor.cmd.do()
+ this.change = function () {
+ // 判断是否有变化
+ var currentHtml = this.txt.html();
+
+ if (currentHtml.length === beforeChangeHtml.length) {
+ // 需要比较每一个字符
+ if (currentHtml === beforeChangeHtml) {
+ return;
+ }
+ }
+
+ // 执行,使用节流
+ if (onChangeTimeoutId) {
+ clearTimeout(onChangeTimeoutId);
+ }
+ onChangeTimeoutId = setTimeout(function () {
+ // 触发配置的 onchange 函数
+ onchange(currentHtml);
+ beforeChangeHtml = currentHtml;
+ }, onchangeTimeout);
+ };
+ }
+
+ // -------- 绑定 onblur 事件 --------
+ var onblur = config$$1.onblur;
+ if (onblur && typeof onblur === 'function') {
+ this.onblur = function () {
+ var currentHtml = this.txt.html();
+ onblur(currentHtml);
+ };
+ }
+
+ // -------- 绑定 onfocus 事件 --------
+ var onfocus = config$$1.onfocus;
+ if (onfocus && typeof onfocus === 'function') {
+ this.onfocus = function () {
+ onfocus();
+ };
+ }
+ },
+
+ // 创建编辑器
+ create: function create() {
+ // 初始化配置信息
+ this._initConfig();
+
+ // 初始化 DOM
+ this._initDom();
+
+ // 封装 command API
+ this._initCommand();
+
+ // 封装 selection range API
+ this._initSelectionAPI();
+
+ // 添加 text
+ this._initText();
+
+ // 初始化菜单
+ this._initMenus();
+
+ // 添加 图片上传
+ this._initUploadImg();
+
+ // 初始化选区,将光标定位到内容尾部
+ this.initSelection(true);
+
+ // 绑定事件
+ this._bindEvent();
+ },
+
+ // 解绑所有事件(暂时不对外开放)
+ _offAllEvent: function _offAllEvent() {
+ $.offAll();
+ }
+};
+
+// 检验是否浏览器环境
+try {
+ document;
+} catch (ex) {
+ throw new Error('请在浏览器环境下运行');
+}
+
+// polyfill
+polyfill();
+
+// 这里的 `inlinecss` 将被替换成 css 代码的内容,详情可去 ./gulpfile.js 中搜索 `inlinecss` 关键字
+var inlinecss = '.w-e-toolbar,.w-e-text-container,.w-e-menu-panel { padding: 0; margin: 0; box-sizing: border-box;}.w-e-toolbar *,.w-e-text-container *,.w-e-menu-panel * { padding: 0; margin: 0; box-sizing: border-box;}.w-e-clear-fix:after { content: ""; display: table; clear: both;}.w-e-toolbar .w-e-droplist { position: absolute; left: 0; top: 0; background-color: #fff; border: 1px solid #f1f1f1; border-right-color: #ccc; border-bottom-color: #ccc;}.w-e-toolbar .w-e-droplist .w-e-dp-title { text-align: center; color: #999; line-height: 2; border-bottom: 1px solid #f1f1f1; font-size: 13px;}.w-e-toolbar .w-e-droplist ul.w-e-list { list-style: none; line-height: 1;}.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item { color: #333; padding: 5px 0;}.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover { background-color: #f1f1f1;}.w-e-toolbar .w-e-droplist ul.w-e-block { list-style: none; text-align: left; padding: 5px;}.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item { display: inline-block; *display: inline; *zoom: 1; padding: 3px 5px;}.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover { background-color: #f1f1f1;}@font-face { font-family: \'w-e-icon\'; src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAABXAAAsAAAAAFXQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIPAmNtYXAAAAFoAAAA9AAAAPRAxxN6Z2FzcAAAAlwAAAAIAAAACAAAABBnbHlmAAACZAAAEHwAABB8kRGt5WhlYWQAABLgAAAANgAAADYN4rlyaGhlYQAAExgAAAAkAAAAJAfEA99obXR4AAATPAAAAHwAAAB8cAcDvGxvY2EAABO4AAAAQAAAAEAx8jYEbWF4cAAAE/gAAAAgAAAAIAAqALZuYW1lAAAUGAAAAYYAAAGGmUoJ+3Bvc3QAABWgAAAAIAAAACAAAwAAAAMD3AGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA8fwDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEANgAAAAyACAABAASAAEAIOkG6Q3pEulH6Wbpd+m56bvpxunL6d/qDepl6mjqcep58A3wFPEg8dzx/P/9//8AAAAAACDpBukN6RLpR+ll6Xfpuem76cbpy+nf6g3qYupo6nHqd/AN8BTxIPHc8fz//f//AAH/4xb+FvgW9BbAFqMWkxZSFlEWRxZDFjAWAxWvFa0VpRWgEA0QBw78DkEOIgADAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAH//wAPAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAIAAP/ABAADwAAEABMAAAE3AScBAy4BJxM3ASMBAyUBNQEHAYCAAcBA/kCfFzsyY4ABgMD+gMACgAGA/oBOAUBAAcBA/kD+nTI7FwERTgGA/oD9gMABgMD+gIAABAAAAAAEAAOAABAAIQAtADQAAAE4ATEROAExITgBMRE4ATEhNSEiBhURFBYzITI2NRE0JiMHFAYjIiY1NDYzMhYTITUTATM3A8D8gAOA/IAaJiYaA4AaJiYagDgoKDg4KCg4QP0A4AEAQOADQP0AAwBAJhr9ABomJhoDABom4Cg4OCgoODj9uIABgP7AwAAAAgAAAEAEAANAACgALAAAAS4DIyIOAgcOAxUUHgIXHgMzMj4CNz4DNTQuAicBEQ0BA9U2cXZ5Pz95dnE2Cw8LBgYLDws2cXZ5Pz95dnE2Cw8LBgYLDwv9qwFA/sADIAgMCAQECAwIKVRZWy8vW1lUKQgMCAQECAwIKVRZWy8vW1lUKf3gAYDAwAAAAAACAMD/wANAA8AAEwAfAAABIg4CFRQeAjEwPgI1NC4CAyImNTQ2MzIWFRQGAgBCdVcyZHhkZHhkMld1QlBwcFBQcHADwDJXdUJ4+syCgsz6eEJ1VzL+AHBQUHBwUFBwAAABAAAAAAQAA4AAIQAAASIOAgcnESEnPgEzMh4CFRQOAgcXPgM1NC4CIwIANWRcUiOWAYCQNYtQUItpPBIiMB5VKEAtGFCLu2oDgBUnNyOW/oCQNDw8aYtQK1FJQRpgI1ZibDlqu4tQAAEAAAAABAADgAAgAAATFB4CFzcuAzU0PgIzMhYXByERBy4DIyIOAgAYLUAoVR4wIhI8aYtQUIs1kAGAliNSXGQ1aruLUAGAOWxiViNgGkFJUStQi2k8PDSQAYCWIzcnFVCLuwACAAAAQAQBAwAAHgA9AAATMh4CFRQOAiMiLgI1JzQ+AjMVIgYHDgEHPgEhMh4CFRQOAiMiLgI1JzQ+AjMVIgYHDgEHPgHhLlI9IyM9Ui4uUj0jAUZ6o11AdS0JEAcIEgJJLlI9IyM9Ui4uUj0jAUZ6o11AdS0JEAcIEgIAIz1SLi5SPSMjPVIuIF2jekaAMC4IEwoCASM9Ui4uUj0jIz1SLiBdo3pGgDAuCBMKAgEAAAYAQP/ABAADwAADAAcACwARAB0AKQAAJSEVIREhFSERIRUhJxEjNSM1ExUzFSM1NzUjNTMVFREjNTM1IzUzNSM1AYACgP2AAoD9gAKA/YDAQEBAgMCAgMDAgICAgICAAgCAAgCAwP8AwED98jJAkjwyQJLu/sBAQEBAQAAGAAD/wAQAA8AAAwAHAAsAFwAjAC8AAAEhFSERIRUhESEVIQE0NjMyFhUUBiMiJhE0NjMyFhUUBiMiJhE0NjMyFhUUBiMiJgGAAoD9gAKA/YACgP2A/oBLNTVLSzU1S0s1NUtLNTVLSzU1S0s1NUsDgID/AID/AIADQDVLSzU1S0v+tTVLSzU1S0v+tTVLSzU1S0sAAwAAAAAEAAOgAAMADQAUAAA3IRUhJRUhNRMhFSE1ISUJASMRIxEABAD8AAQA/ACAAQABAAEA/WABIAEg4IBAQMBAQAEAgIDAASD+4P8AAQAAAAAAAgBT/8wDrQO0AC8AXAAAASImJy4BNDY/AT4BMzIWFx4BFAYPAQYiJyY0PwE2NCcuASMiBg8BBhQXFhQHDgEjAyImJy4BNDY/ATYyFxYUDwEGFBceATMyNj8BNjQnJjQ3NjIXHgEUBg8BDgEjAbgKEwgjJCQjwCNZMTFZIyMkJCNYDywPDw9YKSkUMxwcMxTAKSkPDwgTCrgxWSMjJCQjWA8sDw8PWCkpFDMcHDMUwCkpDw8PKxAjJCQjwCNZMQFECAckWl5aJMAiJSUiJFpeWiRXEBAPKw9YKXQpFBUVFMApdCkPKxAHCP6IJSIkWl5aJFcQEA8rD1gpdCkUFRUUwCl0KQ8rEA8PJFpeWiTAIiUAAAAABQAA/8AEAAPAABMAJwA7AEcAUwAABTI+AjU0LgIjIg4CFRQeAhMyHgIVFA4CIyIuAjU0PgITMj4CNw4DIyIuAiceAyc0NjMyFhUUBiMiJiU0NjMyFhUUBiMiJgIAaruLUFCLu2pqu4tQUIu7alaYcUFBcZhWVphxQUFxmFYrVVFMIwU3Vm8/P29WNwUjTFFV1SUbGyUlGxslAYAlGxslJRsbJUBQi7tqaruLUFCLu2pqu4tQA6BBcZhWVphxQUFxmFZWmHFB/gkMFSAUQ3RWMTFWdEMUIBUM9yg4OCgoODgoKDg4KCg4OAAAAAADAAD/wAQAA8AAEwAnADMAAAEiDgIVFB4CMzI+AjU0LgIDIi4CNTQ+AjMyHgIVFA4CEwcnBxcHFzcXNyc3AgBqu4tQUIu7amq7i1BQi7tqVphxQUFxmFZWmHFBQXGYSqCgYKCgYKCgYKCgA8BQi7tqaruLUFCLu2pqu4tQ/GBBcZhWVphxQUFxmFZWmHFBAqCgoGCgoGCgoGCgoAADAMAAAANAA4AAEgAbACQAAAE+ATU0LgIjIREhMj4CNTQmATMyFhUUBisBEyMRMzIWFRQGAsQcIChGXTX+wAGANV1GKET+hGUqPDwpZp+fnyw+PgHbIlQvNV1GKPyAKEZdNUZ0AUZLNTVL/oABAEs1NUsAAAIAwAAAA0ADgAAbAB8AAAEzERQOAiMiLgI1ETMRFBYXHgEzMjY3PgE1ASEVIQLAgDJXdUJCdVcygBsYHEkoKEkcGBv+AAKA/YADgP5gPGlOLS1OaTwBoP5gHjgXGBsbGBc4Hv6ggAAAAQCAAAADgAOAAAsAAAEVIwEzFSE1MwEjNQOAgP7AgP5AgAFAgAOAQP0AQEADAEAAAQAAAAAEAAOAAD0AAAEVIx4BFRQGBw4BIyImJy4BNTMUFjMyNjU0JiMhNSEuAScuATU0Njc+ATMyFhceARUjNCYjIgYVFBYzMhYXBADrFRY1MCxxPj5xLDA1gHJOTnJyTv4AASwCBAEwNTUwLHE+PnEsMDWAck5OcnJOO24rAcBAHUEiNWIkISQkISRiNTRMTDQ0TEABAwEkYjU1YiQhJCQhJGI1NExMNDRMIR8AAAAHAAD/wAQAA8AAAwAHAAsADwATABsAIwAAEzMVIzczFSMlMxUjNzMVIyUzFSMDEyETMxMhEwEDIQMjAyEDAICAwMDAAQCAgMDAwAEAgIAQEP0AECAQAoAQ/UAQAwAQIBD9gBABwEBAQEBAQEBAQAJA/kABwP6AAYD8AAGA/oABQP7AAAAKAAAAAAQAA4AAAwAHAAsADwATABcAGwAfACMAJwAAExEhEQE1IRUdASE1ARUhNSMVITURIRUhJSEVIRE1IRUBIRUhITUhFQAEAP2AAQD/AAEA/wBA/wABAP8AAoABAP8AAQD8gAEA/wACgAEAA4D8gAOA/cDAwEDAwAIAwMDAwP8AwMDAAQDAwP7AwMDAAAAFAAAAAAQAA4AAAwAHAAsADwATAAATIRUhFSEVIREhFSERIRUhESEVIQAEAPwAAoD9gAKA/YAEAPwABAD8AAOAgECA/wCAAUCA/wCAAAAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEXIRUhESEVIQMhFSERIRUhAAQA/ADAAoD9gAKA/YDABAD8AAQA/AADgIBAgP8AgAFAgP8AgAAABQAAAAAEAAOAAAMABwALAA8AEwAAEyEVIQUhFSERIRUhASEVIREhFSEABAD8AAGAAoD9gAKA/YD+gAQA/AAEAPwAA4CAQID/AIABQID/AIAAAAAAAQA/AD8C5gLmACwAACUUDwEGIyIvAQcGIyIvASY1ND8BJyY1ND8BNjMyHwE3NjMyHwEWFRQPARcWFQLmEE4QFxcQqKgQFxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQwxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQEE4QFxcQqKgQFwAAAAYAAAAAAyUDbgAUACgAPABNAFUAggAAAREUBwYrASInJjURNDc2OwEyFxYVMxEUBwYrASInJjURNDc2OwEyFxYXERQHBisBIicmNRE0NzY7ATIXFhMRIREUFxYXFjMhMjc2NzY1ASEnJicjBgcFFRQHBisBERQHBiMhIicmNREjIicmPQE0NzY7ATc2NzY7ATIXFh8BMzIXFhUBJQYFCCQIBQYGBQgkCAUGkgUFCCUIBQUFBQglCAUFkgUFCCUIBQUFBQglCAUFSf4ABAQFBAIB2wIEBAQE/oABABsEBrUGBAH3BgUINxobJv4lJhsbNwgFBQUFCLEoCBcWF7cXFhYJKLAIBQYCEv63CAUFBQUIAUkIBQYGBQj+twgFBQUFCAFJCAUGBgUI/rcIBQUFBQgBSQgFBgYF/lsCHf3jDQsKBQUFBQoLDQJmQwUCAgVVJAgGBf3jMCIjISIvAiAFBggkCAUFYBUPDw8PFWAFBQgAAgAHAEkDtwKvABoALgAACQEGIyIvASY1ND8BJyY1ND8BNjMyFwEWFRQHARUUBwYjISInJj0BNDc2MyEyFxYBTv72BgcIBR0GBuHhBgYdBQgHBgEKBgYCaQUFCP3bCAUFBQUIAiUIBQUBhf72BgYcBggHBuDhBgcHBh0FBf71BQgHBv77JQgFBQUFCCUIBQUFBQAAAAEAIwAAA90DbgCzAAAlIicmIyIHBiMiJyY1NDc2NzY3Njc2PQE0JyYjISIHBh0BFBcWFxYzFhcWFRQHBiMiJyYjIgcGIyInJjU0NzY3Njc2NzY9ARE0NTQ1NCc0JyYnJicmJyYnJiMiJyY1NDc2MzIXFjMyNzYzMhcWFRQHBiMGBwYHBh0BFBcWMyEyNzY9ATQnJicmJyY1NDc2MzIXFjMyNzYzMhcWFRQHBgciBwYHBhURFBcWFxYXMhcWFRQHBiMDwRkzMhoZMjMZDQgHCQoNDBEQChIBBxX+fhYHARUJEhMODgwLBwcOGzU1GhgxMRgNBwcJCQsMEA8JEgECAQIDBAQFCBIRDQ0KCwcHDho1NRoYMDEYDgcHCQoMDRAQCBQBBw8BkA4HARQKFxcPDgcHDhkzMhkZMTEZDgcHCgoNDRARCBQUCRERDg0KCwcHDgACAgICDAsPEQkJAQEDAwUMROAMBQMDBQzUUQ0GAQIBCAgSDwwNAgICAgwMDhEICQECAwMFDUUhAdACDQ0ICA4OCgoLCwcHAwYBAQgIEg8MDQICAgINDA8RCAgBAgEGDFC2DAcBAQcMtlAMBgEBBgcWDwwNAgICAg0MDxEICAEBAgYNT/3mRAwGAgIBCQgRDwwNAAACAAD/twP/A7cAEwA5AAABMhcWFRQHAgcGIyInJjU0NwE2MwEWFxYfARYHBiMiJyYnJicmNRYXFhcWFxYzMjc2NzY3Njc2NzY3A5soHh4avkw3RUg0NDUBbSEp/fgXJicvAQJMTHtHNjYhIRARBBMUEBASEQkXCA8SExUVHR0eHikDtxsaKCQz/plGNDU0SUkwAUsf/bErHx8NKHpNTBobLi86OkQDDw4LCwoKFiUbGhERCgsEBAIAAQAAAAAAANox8glfDzz1AAsEAAAAAADVYbp/AAAAANVhun8AAP+3BAEDwAAAAAgAAgAAAAAAAAABAAADwP/AAAAEAAAA//8EAQABAAAAAAAAAAAAAAAAAAAAHwQAAAAAAAAAAAAAAAIAAAAEAAAABAAAAAQAAAAEAADABAAAAAQAAAAEAAAABAAAQAQAAAAEAAAABAAAUwQAAAAEAAAABAAAwAQAAMAEAACABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAAAyUAPwMlAAADvgAHBAAAIwP/AAAAAAAAAAoAFAAeAEwAlADaAQoBPgFwAcgCBgJQAnoDBAN6A8gEAgQ2BE4EpgToBTAFWAWABaoF7gamBvAH4gg+AAEAAAAfALQACgAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) format(\'truetype\'); font-weight: normal; font-style: normal;}[class^="w-e-icon-"],[class*=" w-e-icon-"] { /* use !important to prevent issues with browser extensions that change fonts */ font-family: \'w-e-icon\' !important; speak: none; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1; /* Better Font Rendering =========== */ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;}.w-e-icon-close:before { content: "\\f00d";}.w-e-icon-upload2:before { content: "\\e9c6";}.w-e-icon-trash-o:before { content: "\\f014";}.w-e-icon-header:before { content: "\\f1dc";}.w-e-icon-pencil2:before { content: "\\e906";}.w-e-icon-paint-brush:before { content: "\\f1fc";}.w-e-icon-image:before { content: "\\e90d";}.w-e-icon-play:before { content: "\\e912";}.w-e-icon-location:before { content: "\\e947";}.w-e-icon-undo:before { content: "\\e965";}.w-e-icon-redo:before { content: "\\e966";}.w-e-icon-quotes-left:before { content: "\\e977";}.w-e-icon-list-numbered:before { content: "\\e9b9";}.w-e-icon-list2:before { content: "\\e9bb";}.w-e-icon-link:before { content: "\\e9cb";}.w-e-icon-happy:before { content: "\\e9df";}.w-e-icon-bold:before { content: "\\ea62";}.w-e-icon-underline:before { content: "\\ea63";}.w-e-icon-italic:before { content: "\\ea64";}.w-e-icon-strikethrough:before { content: "\\ea65";}.w-e-icon-table2:before { content: "\\ea71";}.w-e-icon-paragraph-left:before { content: "\\ea77";}.w-e-icon-paragraph-center:before { content: "\\ea78";}.w-e-icon-paragraph-right:before { content: "\\ea79";}.w-e-icon-terminal:before { content: "\\f120";}.w-e-icon-page-break:before { content: "\\ea68";}.w-e-icon-cancel-circle:before { content: "\\ea0d";}.w-e-toolbar { display: -webkit-box; display: -ms-flexbox; display: flex; padding: 0 5px; /* flex-wrap: wrap; */ /* 单个菜单 */}.w-e-toolbar .w-e-menu { position: relative; text-align: center; padding: 5px 10px; cursor: pointer;}.w-e-toolbar .w-e-menu i { color: #999;}.w-e-toolbar .w-e-menu:hover i { color: #333;}.w-e-toolbar .w-e-active i { color: #1e88e5;}.w-e-toolbar .w-e-active:hover i { color: #1e88e5;}.w-e-text-container .w-e-panel-container { position: absolute; top: 0; left: 50%; border: 1px solid #ccc; border-top: 0; box-shadow: 1px 1px 2px #ccc; color: #333; background-color: #fff; /* 为 emotion panel 定制的样式 */ /* 上传图片的 panel 定制样式 */}.w-e-text-container .w-e-panel-container .w-e-panel-close { position: absolute; right: 0; top: 0; padding: 5px; margin: 2px 5px 0 0; cursor: pointer; color: #999;}.w-e-text-container .w-e-panel-container .w-e-panel-close:hover { color: #333;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-title { list-style: none; display: -webkit-box; display: -ms-flexbox; display: flex; font-size: 14px; margin: 2px 10px 0 10px; border-bottom: 1px solid #f1f1f1;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-title .w-e-item { padding: 3px 5px; color: #999; cursor: pointer; margin: 0 3px; position: relative; top: 1px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-title .w-e-active { color: #333; border-bottom: 1px solid #333; cursor: default; font-weight: 700;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content { padding: 10px 15px 10px 15px; font-size: 16px; /* 输入框的样式 */ /* 按钮的样式 */}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input:focus,.w-e-text-container .w-e-panel-container .w-e-panel-tab-content textarea:focus,.w-e-text-container .w-e-panel-container .w-e-panel-tab-content button:focus { outline: none;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content textarea { width: 100%; border: 1px solid #ccc; padding: 5px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content textarea:focus { border-color: #1e88e5;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text] { border: none; border-bottom: 1px solid #ccc; font-size: 14px; height: 20px; color: #333; text-align: left;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text].small { width: 30px; text-align: center;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text].block { display: block; width: 100%; margin: 10px 0;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus { border-bottom: 2px solid #1e88e5;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button { font-size: 14px; color: #1e88e5; border: none; padding: 5px 10px; background-color: #fff; cursor: pointer; border-radius: 3px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left { float: left; margin-right: 10px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right { float: right; margin-left: 10px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray { color: #999;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red { color: #c24f4a;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover { background-color: #f1f1f1;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after { content: ""; display: table; clear: both;}.w-e-text-container .w-e-panel-container .w-e-emoticon-container .w-e-item { cursor: pointer; font-size: 18px; padding: 0 3px; display: inline-block; *display: inline; *zoom: 1;}.w-e-text-container .w-e-panel-container .w-e-up-img-container { text-align: center;}.w-e-text-container .w-e-panel-container .w-e-up-img-container .w-e-up-btn { display: inline-block; *display: inline; *zoom: 1; color: #999; cursor: pointer; font-size: 60px; line-height: 1;}.w-e-text-container .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover { color: #333;}.w-e-text-container { position: relative;}.w-e-text-container .w-e-progress { position: absolute; background-color: #1e88e5; bottom: 0; left: 0; height: 1px;}.w-e-text { padding: 0 10px; overflow-y: scroll;}.w-e-text p,.w-e-text h1,.w-e-text h2,.w-e-text h3,.w-e-text h4,.w-e-text h5,.w-e-text table,.w-e-text pre { margin: 10px 0; line-height: 1.5;}.w-e-text ul,.w-e-text ol { margin: 10px 0 10px 20px;}.w-e-text blockquote { display: block; border-left: 8px solid #d0e5f2; padding: 5px 10px; margin: 10px 0; line-height: 1.4; font-size: 100%; background-color: #f1f1f1;}.w-e-text code { display: inline-block; *display: inline; *zoom: 1; background-color: #f1f1f1; border-radius: 3px; padding: 3px 5px; margin: 0 3px;}.w-e-text pre code { display: block;}.w-e-text table { border-top: 1px solid #ccc; border-left: 1px solid #ccc;}.w-e-text table td,.w-e-text table th { border-bottom: 1px solid #ccc; border-right: 1px solid #ccc; padding: 3px 5px;}.w-e-text table th { border-bottom: 2px solid #ccc; text-align: center;}.w-e-text:focus { outline: none;}.w-e-text img { cursor: pointer;}.w-e-text img:hover { box-shadow: 0 0 5px #333;}';
+
+// 将 css 代码添加到