<script>
jQuery(document).ready(function ($) {
// razmer
$('#pa_razmer').change(function () {
var th = $(this).find(':selected').val();
if (th == 'svoj-razmer') {
$('#pa_razmer')
.parents('.value')
.append('' +
'<div class="rz_block">' +
'<div class="inprz">' +
'<label for="rz1">' +
'<span><?php echo carbon_get_theme_option("crb_breast_level" . get_lang()); ?></span> <a data-fancybox="gallery" data-caption="<?php echo carbon_get_theme_option("crb_breast_level" . get_lang()); ?>" href="/wp-content/themes/benefis/img/rz/1.jpg"><i class="fa fa-question-circle" aria-hidden="true"></i></a>' +
'</label> <input name="rz1" type="text" class="custom_rz" value="" >' +
'</div>' +
'<div class="inprz"><label for="rz28"><span><?php echo carbon_get_theme_option("crb_tutu_length" . get_lang()); ?></span> <a data-fancybox="gallery" data-caption="<?php echo carbon_get_theme_option("crb_tutu_length" . get_lang()); ?>" href="/wp-content/themes/benefis/img/rz/28.jpg"><i class="fa fa-question-circle" aria-hidden="true"></i></a></label> <input name="rz28" type="text" class="custom_rz" value="" >' +
'</div>' +
'<input name="_custom_option" type="hidden" class="custom_rz" id="allval" value="">' +
'</div>' +
'');
//.append
} else {
$('.rz_block').remove();
}
});
$('.variations_form.cart').on('submit', function () {
var name,
value,
allrz = '';
$('.inprz').each(function () {
name = $(this).find('label > span').html();
value = $(this).find('input').val();
allrz += name + ": " + value + "; ";
});
$('#allval').val(allrz);
});
});
</script>
Ноутбук Lenovo g710
Linux mint 18.3 Cinammon
Наверняка у меня есть клавиша для отключения ноутбука, по крайней мере я ее визуально не нашел.