Server IP : 15.235.198.142 / Your IP : 216.73.216.208 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/yme/wp-content/plugins/ocean-extra/includes/widgets/js/ |
Upload File : |
(function($) { $(document).ready(function($){ // Hide Custom Url if image link is not set to custom url $('body').on('change', '.oceanwp-container select[id$="images_link"]', function(e){ var images_link = $(this); if ( images_link.val() != 'custom_url' ) { images_link.closest('.oceanwp-container').find('input[id$="custom_url"]').val('').parent().animate({opacity: 'hide' , height: 'hide'}, 200); } else { images_link.closest('.oceanwp-container').find('input[id$="custom_url"]').parent().animate({opacity: 'show' , height: 'show'}, 200); } }); // Modfiy options when search for is changed $('body').on('change', '.oceanwp-container input:radio[id$="search_for"]', function(e){ var search_for = $(this); if ( search_for.val() != 'username' ) { search_for.closest('.oceanwp-container').find('select[id$="images_link"] option[value="user_url"]').animate({opacity: 'hide' , height: 'hide'}, 200); search_for.closest('.oceanwp-container').find('select[id$="images_link"]').val('image_url'); search_for.closest('.oceanwp-container').find('input[id$="blocked_users"]').closest('p').animate({opacity: 'show' , height: 'show'}, 200); search_for.closest('.oceanwp-container').find('.oceanwp-header-wrap').animate({opacity: 'hide' , height: 'hide'}, 200); } else { search_for.closest('.oceanwp-container').find('select[id$="images_link"] option[value="user_url"]').animate({opacity: 'show' , height: 'show'}, 200); search_for.closest('.oceanwp-container').find('select[id$="images_link"]').val('image_url'); search_for.closest('.oceanwp-container').find('input[id$="blocked_users"]').closest('p').animate({opacity: 'hide' , height: 'hide'}, 200); search_for.closest('.oceanwp-container').find('.oceanwp-header-wrap').animate({opacity: 'show' , height: 'show'}, 200); } }); // Hide header infos if display header is not set to yesurl $('body').on('change', '.oceanwp-container select[id$="display_header"]', function(e){ var display_header = $(this); if ( display_header.val() != 'yes' ) { display_header.closest('.oceanwp-container').find('.oceanwp-display-header-options').animate({opacity: 'hide' , height: 'hide'}, 200); } else { display_header.closest('.oceanwp-container').find('.oceanwp-display-header-options').animate({opacity: 'show' , height: 'show'}, 200); } }); }); // Document Ready })(jQuery);