43 lines
1.2 KiB
JavaScript
43 lines
1.2 KiB
JavaScript
(function($) {
|
|
'use strict';
|
|
$(function() {
|
|
$('.icheck input').iCheck({
|
|
checkboxClass: 'icheckbox_minimal-blue',
|
|
radioClass: 'iradio_minimal',
|
|
increaseArea: '20%'
|
|
});
|
|
$('.icheck-square input').iCheck({
|
|
checkboxClass: 'icheckbox_square-blue',
|
|
radioClass: 'iradio_square',
|
|
increaseArea: '20%'
|
|
});
|
|
$('.icheck-flat input').iCheck({
|
|
checkboxClass: 'icheckbox_flat-blue',
|
|
radioClass: 'iradio_flat',
|
|
increaseArea: '20%'
|
|
});
|
|
var icheckLineArray = $('.icheck-line input');
|
|
for (var i = 0; i < icheckLineArray.length; i++) {
|
|
var self = $(icheckLineArray[i]);
|
|
var label = self.next();
|
|
var label_text = label.text();
|
|
|
|
label.remove();
|
|
self.iCheck({
|
|
checkboxClass: 'icheckbox_line-blue',
|
|
radioClass: 'iradio_line',
|
|
insert: '<div class="icheck_line-icon"></div>' + label_text
|
|
});
|
|
}
|
|
$('.icheck-polaris input').iCheck({
|
|
checkboxClass: 'icheckbox_polaris',
|
|
radioClass: 'iradio_polaris',
|
|
increaseArea: '20%'
|
|
});
|
|
$('.icheck-futurico input').iCheck({
|
|
checkboxClass: 'icheckbox_futurico',
|
|
radioClass: 'iradio_futurico',
|
|
increaseArea: '20%'
|
|
});
|
|
});
|
|
})(jQuery); |