One Hat Cyber Team
Your IP :
3.142.142.113
Server IP :
192.145.235.60
Server :
Linux ngx365.inmotionhosting.com 5.14.0-427.33.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 30 09:45:56 EDT 2024 x86_64
Server Software :
Apache
PHP Version :
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
centos12
/
bizcento.com
/
public
/
assets
/
js
/
View File Name :
seller-contact.js
"use strict"; $('body').on('submit', '#sellerContactForm', function (e) { e.preventDefault(); let sellerContactForm = document.getElementById('sellerContactForm'); $('.request-loader').addClass('show'); var url = $(this).attr('action'); var method = $(this).attr('method'); let fd = new FormData(sellerContactForm); $.ajax({ url: url, method: method, data: fd, contentType: false, processData: false, success: function (data) { $('.request-loader').removeClass('show'); $('.em').each(function () { $(this).html(''); }); if (data == 'success') { location.reload(); } }, error: function (error) { $('.em').each(function () { $(this).html(''); }); for (let x in error.responseJSON.errors) { document.getElementById('err_' + x).innerHTML = error.responseJSON.errors[x][0]; } $('.request-loader').removeClass('show'); } }) });