# wp-coder/2.3.1/assets/js/admin.js

WP Coder – Insert &amp; Manage Code Snippets, version 2.3.1. 54 lines.

- Page: https://pluginprobe.com/plugins/wp-coder/2.3.1/code/assets/js/admin.js
- Raw: https://pluginprobe.com/plugins/wp-coder/2.3.1/raw/assets/js/admin.js
- Modified: 2019-07-08T08:22:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wp-coder/2.3.1/code/assets/js/admin.js#L10-L20`.

```javascript
jQuery(document).ready(function($) {	
	//* Include colorpicker
	
	$('.wow-plugin .tab-nav li:first').addClass('select'); 
	$('.wow-plugin .tab-panels>div').hide().filter(':first').show();    
	$('.wow-plugin .tab-nav a').click(function(){
		$('.wow-plugin .tab-panels>div').hide().filter(this.hash).show(); 
		$('.wow-plugin .tab-nav li').removeClass('select');
		$(this).parent().addClass('select');
		return (false); 
	})	
	$('.wow-plugin input:checkbox:checked').each(function(){
		var str = $(this).attr("id");
		var check = str.replace("wow_", "");
		$( "input[name='param["+check+"]']" ).val(1);	
		});
	
	$('.wow-plugin input[type="checkbox"]').change(function () {
		var str = $(this).attr("id");
		var check = str.replace("wow_", "");
		if($(this).prop('checked')){			
			$( "input[name='param["+check+"]']" ).val(1);			
		}
		else {
			$( "input[name='param["+check+"]']" ).val(0);
		}
	});	
	
	wow_attach_tooltips($(".wow-help"));	

});


function wow_attach_tooltips(selector) {
    selector.tooltip({
        content: function() {
            return jQuery(this).prop("title")
        },
        tooltipClass: "wow-ui-tooltip",
        position: {
            my: "center top",
            at: "center bottom+10",
            collision: "flipfit"
        },
        hide: {
            duration: 200
        },
        show: {
            duration: 200
        }
    })
}


```
