# uji-countdown/1.2/js/prev.countdown.js

Uji Countdown, version 1.2. 44 lines.

- Page: https://pluginprobe.com/plugins/uji-countdown/1.2/code/js/prev.countdown.js
- Raw: https://pluginprobe.com/plugins/uji-countdown/1.2/raw/js/prev.countdown.js
- Modified: 2013-07-04T09:07:14+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/uji-countdown/1.2/code/js/prev.countdown.js#L10-L20`.

```javascript
jQuery(function($) {
	init();
	jQuery('#ujic_txt').change(function() {
		if(jQuery('#ujic_txt').is(":checked")){
			jQuery('.countdown_txt').css("display","block");
		}else{
			jQuery('.countdown_txt').css("display","none");	
		}
	});
	
	$('#ujic_txt_sz').change(function() {
		var size = jQuery('#ujic_txt_sz').val();
		jQuery( '.countdown_amount').css("font", size+"px/1.5 'Open Sans Condensed',sans-serif");
	});	
	
});

function init(){
		/*-----box color---*/
		var color_down = jQuery( '#ujic_col_dw' ).val();
		var color_up = jQuery( '#ujic_col_up' ).val();			
		jQuery( '.countdown_amount').css("background-image", "linear-gradient(bottom, "+color_down+" 50%, "+color_up+" 50%)");
		jQuery( '.countdown_amount').css("background-image", "-o-linear-gradient(bottom, "+color_down+" 50%, "+color_up+" 50%)");
		jQuery( '.countdown_amount').css("background-image", "-moz-linear-gradient(bottom, "+color_down+" 50%, "+color_up+" 50%)");
		jQuery( '.countdown_amount').css("background-image", "-webkit-linear-gradient(bottom, "+color_down+" 50%, "+color_up+" 50%)");
		jQuery( '.countdown_amount').css("background-image", "-ms-linear-gradient(bottom, "+color_down+" 50%, "+color_up+" 50%)");
		jQuery( '.countdown_amount').css("filter", "progid:DXImageTransform.Microsoft.Gradient(startColorstr='"+color_down+"', endColorstr='"+color_up+"')");
		/*-----text color---*/
		var color_txt = jQuery( '#ujic_col_txt' ).val();
		var color_sw = jQuery( '#ujic_col_sw' ).val();	
		
		jQuery('.countdown_amount').css("color", color_txt);
		jQuery('.countdown_amount').css("text-shadow",'1px 1px 1px ' + color_sw);
		/*-----display time label text---*/
		if(jQuery('#ujic_txt').is(":checked")){
			
			jQuery('.countdown_txt').css("display","block");
		}else{
			jQuery('.countdown_txt').css("display","none");	
		}
		/*-----font size---*/
		var size = jQuery('#ujic_txt_sz').val();
		jQuery( '.countdown_amount').css("font", size+"px/1.5 'Open Sans Condensed',sans-serif");
}
```
