⚝
One Hat Cyber Team
⚝
Your IP:
160.79.110.9
Server IP:
15.204.235.159
Server:
Linux srv.techlup.co.ke 4.18.0-553.5.1.el8_10.x86_64 #1 SMP Wed Jun 5 09:12:13 EDT 2024 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
home
/
tech
/
public_html
/
admin
/
js
/
View File Name :
form.js
(function ($) { "use strict"; //basicform submit $("#basicform").on('submit', function(e){ e.preventDefault(); $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); $.ajax({ type: 'POST', url: this.action, data: new FormData(this), dataType: 'json', contentType: false, cache: false, processData:false, success: function(response){ Sweet('success',response) success(response) }, error: function(xhr, status, error) { $('.errorarea').show(); $.each(xhr.responseJSON.errors, function (key, item) { Sweet('error',item) $("#errors").html("<li class='text-danger'>"+item+"</li>") }); errosresponse(xhr, status, error); } }) }); //id basicform1 when submit $("#basicform1").on('submit', function(e){ e.preventDefault(); $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); $.ajax({ type: 'POST', url: this.action, data: new FormData(this), dataType: 'json', contentType: false, cache: false, processData:false, success: function(response){ success(response) }, error: function(xhr, status, error) { $('.errorarea').show(); $.each(xhr.responseJSON.errors, function (key, item) { Sweet('error',item) $("#errors").html("<li class='text-danger'>"+item+"</li>") }); errosresponse(xhr, status, error); } }) }); $(".checkAll").on('click',function(){ $('input:checkbox').not(this).prop('checked', this.checked); }); })(jQuery);