HEX
Server: Apache
System: Linux cp4.skywebbox.com 5.14.0-503.15.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 28 07:25:19 EST 2024 x86_64
User: alfouzantranspor (1054)
PHP: 8.3.23
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/alfouzantranspor/public_html/wp-content/themes/digital-download/js/build/edd.js
jQuery(document).ready(function($){
    // Price detail toggle
    $(document).on('click', '.download-cart-btn', function(e) {
        // Close all price overlays
        $(".edd-download-buy-button").removeClass("show-pricing");

        var id = $(this).data('id');
        console.log(id);
        // Show the price overlay
        $("#edd_download_btn_"+id).addClass("show-pricing");
    });
    
    // Escape key closes pricing on downloads
    $(document).on( 'keyup', function(e) {
        if (e.keyCode == 27) {
            $(".edd-download-buy-button").removeClass("show-pricing");
        }
    });
    
    // Close price detail
    $(".edd-download-buy-button .btn-close").on( 'click', function() {
        // Hide the price overlay
        $(".edd-download-buy-button").removeClass("show-pricing");

        return false;
    }); 

});