HEX
Server: Apache
System: Linux host.fiblib.com 5.14.0-570.58.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 29 06:24:11 EDT 2025 x86_64
User: scientificreligi (1062)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/scientificreligi/public_html/wp-content/plugins/g5plus-post-like/assets/js/admin-post.js
(function ($) {
    "use strict";
    $(document).ready(function () {
        $( '#post-like .edit-post-like' ).on('click',function (event) {
            event.preventDefault();
            if ( $( '#post-like-input-container' ).is( ":hidden" ) ) {
                $( '#post-like-input-container' ).slideDown( 'fast' );
                $( this ).hide();
            }
        });


        $( '#post-like .cancel-post-like' ).on('click',function (event) {
            event.preventDefault();
            $( '#post-like-input-container' ).slideUp( 'fast' );
            $( '#post-like .edit-post-like' ).show();
        });


        $( '#post-like .save-post-like' ).on('click',function (event) {
            $( '#post-like-input-container' ).slideUp( 'fast' );
            $( '#post-like .edit-post-like' ).show();

            var views = parseInt( $( '#post-like-input' ).val() );
            // reassign value as integer
            $( '#post-like-input' ).val( views );

            $( '#post-like-display b' ).text( views );

            return false;
        });


    });

})(jQuery);