HEX
Server: Apache/2
System: Linux sv156.hostsevenplus.com 4.18.0-553.126.1.el8_10.x86_64 #1 SMP Thu May 28 06:44:09 EDT 2026 x86_64
User: npaaenew (1145)
PHP: 8.5.0
Disabled: 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
Upload Files
File: /home/npaaenew/domains/npaae.com/public_html/wp-content/themes/bridge/js/plugins/qode-like.js
(function($) {
    "use strict";

    $(document).ready(function($){
        initQodeLike();
    });

    function initQodeLike(){
        $(document).on('click','.qode-like', function() {

            var likeLink = $(this);
            var id = $(this).attr('id');

            if(likeLink.hasClass('liked')) return false;

            var type = '';
            if(typeof likeLink.data('type') !== 'undefined') {
                type = likeLink.data('type');
            }

            var $dataToPass = {
                action: 'qode_like',
                likes_id: id,
                type: type
            }

            $.ajax({
                method: 'POST',
                url: qodeLike.ajaxurl,
                data: $dataToPass,
                success: function(data) {
                    likeLink.html(data).addClass('liked').attr('title','You already like this!');
                    likeLink.find('span').css('opacity',1);
                }
            });

            return false;
        });
    }
})(jQuery)