PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/mytube.pm/wp-content/plugins/remove-footer-credit/assets/js/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/mytube.pm/wp-content/plugins/remove-footer-credit/assets/js/plugin-install.js |
(function( wp, $ ) { 'use strict'; if ( ! wp ) { return; } function activatePlugin( url, el ) { var message = el.data( 'message' ); $.ajax( { async: true, type: 'GET', dataType: 'html', url: url, success: function() { el.removeClass( 'rfc-updating' ); el.text( message ); } } ); } $( function() { $( document ).on( 'click', '.rfc-plugin-button', function( event ) { var action = $( this ).data( 'action' ), url = $( this ).attr( 'href' ), slug = $( this ).data( 'slug' ); event.preventDefault(); if ( 'install' === action ) { $( this ).addClass( 'rfc-updating disabled' ); wp.updates.installPlugin( { slug: slug } ); } else if ( 'activate' === action ) { $( this ).addClass( 'rfc-updating disabled' ); activatePlugin( url, $( this ) ); } } ); $( document ).on( 'wp-plugin-install-success', function( response, data ) { var el = $( '.rfc-plugin-button[data-slug="' + data.slug + '"]' ); event.preventDefault(); activatePlugin( data.activateUrl, el ); } ); } ); })( window.wp, jQuery );