fix: move `build directory to resources/shop`

This commit is contained in:
Valentin Lab
2025-10-04 10:00:24 +02:00
parent 34fc1c33bf
commit 7a189abf0b
93 changed files with 26 additions and 25 deletions

View File

@@ -0,0 +1,42 @@
function initIcheck(selector)
{
var selector = (typeof(selector) != 'undefined') ? selector : '.iCheck';
console.log('initIcheck');
$(selector).each(function(){
// var each element .iCheck
var $this = $(this),
skin = $this.attr('data-skin'),
color = $this.attr('data-color'),
checkbox, radio, insert = '';
if (skin === undefined) {
checkbox = 'icheckbox_minimal';
radio = 'iradio_minimal';
} else {
checkbox = 'icheckbox_' + skin;
radio = 'iradio_' + skin;
}
if (color !== undefined) {
checkbox = checkbox + '-' + color;
radio = radio + '-' + color;
}
// handle iCheck skin 'line'
if (skin == 'line') {
var label = $this.next(),
label_text = label.text();
insert = '<div class="icheck_line-icon"></div>' + label_text;
label.remove();
}
// initialize
$this.iCheck({
checkboxClass: checkbox,
radioClass: radio,
insert: insert,
increaseArea: '30%' // optional
});
});
}