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,52 @@
|
||||
/*
|
||||
* Impreza customizations
|
||||
*
|
||||
* Here are provided differences from the framework JS
|
||||
*/
|
||||
|
||||
/* Search */
|
||||
( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
$.fn.wSearch = function() {
|
||||
return this.each( function() {
|
||||
var $this = $( this ),
|
||||
$input = $this.find( 'input[name="s"]' );
|
||||
|
||||
var show = function() {
|
||||
$this.addClass( 'active' );
|
||||
$input.trigger( 'focus' );
|
||||
};
|
||||
|
||||
var hide = function() {
|
||||
$this.removeClass( 'active' );
|
||||
$input.blur();
|
||||
};
|
||||
|
||||
$this.find( '.w-search-open' ).click( show );
|
||||
$this.find( '.w-search-close' ).click( hide );
|
||||
$input.keyup( function( e ) {
|
||||
if ( e.keyCode == 27 ) {
|
||||
hide();
|
||||
}
|
||||
} );
|
||||
|
||||
} );
|
||||
};
|
||||
|
||||
$( function() {
|
||||
jQuery( '.w-search' ).wSearch();
|
||||
} );
|
||||
} )( jQuery );
|
||||
|
||||
/* Grid */
|
||||
if ( typeof $us.WGrid === "function" ) {
|
||||
jQuery( function( $ ) {
|
||||
$( '.w-grid' ).wGrid();
|
||||
} );
|
||||
}
|
||||
|
||||
/* Tabs */
|
||||
if ( typeof $us.WTabs === "function" ) {
|
||||
jQuery( '.w-tabs' ).wTabs();
|
||||
}
|
||||
Reference in new issue
Block a user