1/** 2 * UpSolution Element: Message 3 */ 4( function( $ ) { 5 "use strict"; 6 7 $.fn.usMessage = function() { 8 return this.each( function() { 9 var $this = $( this ), 10 $closer = $this.find( '.w-message-close' ); 11 $closer.click( function() { 12 $this.wrap( '<div></div>' ); 13 var $wrapper = $this.parent(); 14 $wrapper.css( { overflow: 'hidden', height: $this.outerHeight( true ) } ); 15 $wrapper.performCSSTransition( { 16 height: 0 17 }, 300, function() { 18 $wrapper.remove(); 19 $us.$canvas.trigger( 'contentChange' ); 20 }, 'cubic-bezier(.4,0,.2,1)' ); 21 } ); 22 } ); 23 }; 24 25 $( function() { 26 $( '.w-message' ).usMessage(); 27 } ); 28} )( jQuery );
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.