![]() Server : Apache/2 System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 User : gositeme ( 1004) PHP Version : 8.2.29 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/gositeme/domains/gositeme.com/public_html/wp-content/cache/wpfc-minified/2ek6mhlz/ |
(function($){
$.fn.niceSelect=function(method){
if(typeof method=='string'){
if(method=='update'){
this.each(function(){
var $select=$(this);
var $dropdown=$(this).next('.nice-select');
var open=$dropdown.hasClass('open');
if($dropdown.length){
$dropdown.remove();
create_nice_select($select);
if(open){
$select.next().trigger('click');
}}
});
}else if(method=='destroy'){
this.each(function(){
var $select=$(this);
var $dropdown=$(this).next('.nice-select');
if($dropdown.length){
$dropdown.remove();
$select.css('display', '');
}});
if($('.nice-select').length==0){
$(document).off('.nice_select');
}}else{
console.log('Method "' + method + '" does not exist.')
}
return this;
}
this.hide();
this.each(function(){
var $select=$(this);
if(!$select.next().hasClass('nice-select')){
create_nice_select($select);
}});
function create_nice_select($select){
$select.after($('<div></div>')
.addClass('nice-select')
.addClass($select.attr('class')||'')
.addClass($select.attr('disabled') ? 'disabled':'')
.attr('tabindex', $select.attr('disabled') ? null:'0')
.html('<span class="current"></span><ul class="list"></ul>')
);
var $dropdown=$select.next();
var $options=$select.find('option');
var $selected=$select.find('option:selected');
$dropdown.find('.current').html($selected.data('display')|| $selected.text());
$options.each(function(i){
var $option=$(this);
var display=$option.data('display');
$dropdown.find('ul').append($('<li></li>')
.attr('data-value', $option.val())
.attr('data-display', (display||null))
.addClass('option' +
($option.is(':selected') ? ' selected':'') +
($option.is(':disabled') ? ' disabled':''))
.html($option.text())
);
});
}
$(document).off('.nice_select');
$(document).on('click.nice_select', '.nice-select', function(event){
var $dropdown=$(this);
$('.nice-select').not($dropdown).removeClass('open');
$dropdown.toggleClass('open');
if($dropdown.hasClass('open')){
$dropdown.find('.option');
$dropdown.find('.focus').removeClass('focus');
$dropdown.find('.selected').addClass('focus');
}else{
$dropdown.focus();
}});
$(document).on('click.nice_select', function(event){
if($(event.target).closest('.nice-select').length===0){
$('.nice-select').removeClass('open').find('.option');
}});
$(document).on('click.nice_select', '.nice-select .option:not(.disabled)', function(event){
var $option=$(this);
var $dropdown=$option.closest('.nice-select');
$dropdown.find('.selected').removeClass('selected');
$option.addClass('selected');
var text=$option.data('display')||$option.text();
$dropdown.find('.current').text(text);
$dropdown.prev('select').val($option.data('value')).trigger('change');
});
$(document).on('keydown.nice_select', '.nice-select', function(event){
var $dropdown=$(this);
var $focused_option=$($dropdown.find('.focus')||$dropdown.find('.list .option.selected'));
if(event.keyCode==32||event.keyCode==13){
if($dropdown.hasClass('open')){
$focused_option.trigger('click');
}else{
$dropdown.trigger('click');
}
return false;
}else if(event.keyCode==40){
if(!$dropdown.hasClass('open')){
$dropdown.trigger('click');
}else{
var $next=$focused_option.nextAll('.option:not(.disabled)').first();
if($next.length > 0){
$dropdown.find('.focus').removeClass('focus');
$next.addClass('focus');
}}
return false;
}else if(event.keyCode==38){
if(!$dropdown.hasClass('open')){
$dropdown.trigger('click');
}else{
var $prev=$focused_option.prevAll('.option:not(.disabled)').first();
if($prev.length > 0){
$dropdown.find('.focus').removeClass('focus');
$prev.addClass('focus');
}}
return false;
}else if(event.keyCode==27){
if($dropdown.hasClass('open')){
$dropdown.trigger('click');
}}else if(event.keyCode==9){
if($dropdown.hasClass('open')){
return false;
}}
});
var style=document.createElement('a').style;
style.cssText='pointer-events:auto';
if(style.pointerEvents!=='auto'){
$('html').addClass('no-csspointerevents');
}
return this;
};}(jQuery));