Import legacy nurinda.co.id website
This commit is contained in:
1 parent
3f59bb9038
commit
6e21646ac4
13389 files changed
+3246690
No files matched your search
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* UpSolution Element: Message
|
||||
*/
|
||||
( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
$.fn.usMessage = function() {
|
||||
return this.each( function() {
|
||||
var $this = $( this ),
|
||||
$closer = $this.find( '.w-message-close' );
|
||||
$closer.click( function() {
|
||||
$this.wrap( '<div></div>' );
|
||||
var $wrapper = $this.parent();
|
||||
$wrapper.css( { overflow: 'hidden', height: $this.outerHeight( true ) } );
|
||||
$wrapper.performCSSTransition( {
|
||||
height: 0
|
||||
}, 300, function() {
|
||||
$wrapper.remove();
|
||||
$us.$canvas.trigger( 'contentChange' );
|
||||
}, 'cubic-bezier(.4,0,.2,1)' );
|
||||
} );
|
||||
} );
|
||||
};
|
||||
|
||||
$( function() {
|
||||
$( '.w-message' ).usMessage();
|
||||
} );
|
||||
} )( jQuery );
|
||||
Reference in new issue
Block a user