Current path: home/webdevt/www/schtroumpf.fr/modules/an_homeproducts/views/js/
?? Go up: /home/webdevt/www/schtroumpf.fr/modules/an_homeproducts/views
/**
* 2022 Anvanto
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 wesite only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* @author Anvanto <anvantoco@gmail.com>
* @copyright 2022 Anvanto
* @license Valid for 1 website (or project) for each purchase of license
* International Registered Trademark & Property of Anvanto
*/
(function ($, window, undefined) {
'use strict';
function showHideFields(){
var slider = $('input[name=an_hp_slider]:checked').val();
$('.js-hp-setting-load_more').hide();
$('.js-hp-setting-slider-option').hide();
if (slider == '0'){
$('.js-hp-setting-load_more').show();
} else {
$('.js-hp-setting-slider-option').show();
}
}
$(document).ready(function () {
showHideFields();
$('input[name=an_hp_slider]').on('click', function(){
showHideFields();
});
});
})(jQuery, window);