One Hat Cyber Team
Your IP :
172.16.0.254
Server IP :
58.26.163.33
Server :
Windows NT DGPENSV2LPKMN 10.0 build 14393 (Windows Server 2016) AMD64
Server Software :
Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/7.3.25
PHP Version :
7.3.25
Buat File
|
Buat Folder
Eksekusi
Dir :
C:
/
xampp7
/
htdocs
/
edgpens
/
Edit File:
custom200630.js
$(document).ready(function(){ $(".modal-body").on("resize",function(){ $(document).trigger("resize"); }); (function($){ $.testme = function(x,y){ var typ = ''; if(x == '1') typ = "success"; else if(x == '2') typ = "warning"; else typ = "danger"; $.bootstrapGrowl("<h4><strong>Notification</strong></h4> <p>"+y+"</p>", { type: typ, delay: 3000, allow_dismiss: true, offset: {from: 'top', amount: 20} }); }; $.fn.setdatatable = function(){ App.datatables(); var no_sort = []; $(this).find("thead > tr > th").each(function(){ if($(this).hasClass("no_sorting")){ no_sort.push($(this).index()); } }); $(this).dataTable({ columnDefs: [ { orderable: false, targets: no_sort } ], pageLength: 10, lengthMenu: [[10, 20, 50], [10, 20, 50]] }); // lengthMenu: [[5, 10, 20], [5, 10, 20]] // console.log(100); return $(this); }; $.fn.setadddelete = function(){ // console.log(100); $(this).closest(".dataTables_wrapper") .find(".dataTables_length").find("label").addClass("col-xs-12 col-sm-2"); if(!$(this).hasClass("no_add_delete")){ $(this).closest(".dataTables_wrapper") .find(".dataTables_length").append("<div href='#modal-form' class='btn btn-effect-ripple btn-primary add-me'><i class='fa fa-plus'></i> ADD NEW</div>"); $(this).closest(".dataTables_wrapper") .find(".dataTables_length").append(" <div class='btn btn-effect-ripple btn-danger del-me-all'><i class='fa fa-times'></i> DELETE</div>"); } } $.fn.setadddelete2 = function(){ var modal = $(this).data("modal-target"); $(this).closest(".dataTables_wrapper") .find(".dataTables_length").find("label").addClass("col-xs-12 col-sm-2"); $(this).closest(".dataTables_wrapper") .find(".dataTables_length").append("<div href='#"+modal+"' class='btn btn-effect-ripple btn-primary add-me'>ADD</div>"); $(this).closest(".dataTables_wrapper") .find(".dataTables_length").append(" || <div href='#"+modal+"' class='btn btn-effect-ripple btn-danger' data-toggle='modal'>DELETE</div>"); } $.fn.setvalidation = function(editdata){ var this_form = $(this); var targetdata = editdata.split("|"); $.each(targetdata,function(i,v){ var target = v.split("#"); $("input[name='"+target[0]+"']").not(":checkbox, :radio").val(target[1]); $("textarea[name='"+target[0]+"']").val(target[1]); $("select[name='"+target[0]+"']").children("option[value='"+escape(target[1])+"']").prop("selected",true).trigger("change"); $("[name='"+target[0]+"'][type='radio'][value='"+escape(target[1])+"']").trigger("click"); }); // this_form.unbind(); if(!$._data(this_form.get(0), "events")){ this_form.validate({ errorClass: 'help-block animation-pullUp', // You can change the animation class for a different entrance animation - check animations page errorElement: 'div', errorPlacement: function(error, e) { e.parents('.form-group > div').append(error); }, highlight: function(e) { $(e).closest('.form-group').removeClass('has-success has-error').addClass('has-error'); $(e).closest('.help-block').remove(); }, success: function(e) { // You can use the following if you would like to highlight with green color the input after successful validation! e.closest('.form-group').removeClass('has-success has-error'); // e.closest('.form-group').removeClass('has-success has-error').addClass('has-success'); e.closest('.help-block').remove(); } }); this_form.find(".select2_custom").each(function(){ $(this).closest("div.form-control").css("padding","0px"); $(this).closest("div.form-control").css("border","none"); }); this_form.find(".validation").each(function(){ var type = $(this).data("validation"); $(this).closest("div.form-control").css("padding","0px"); $(this).closest("div.form-control").css("border","none"); if(type == "default"){ $(this).rules( "add", { required: true }); }else if(type == "default_number"){ $(this).rules( "add", { required: true, number: true }); }else if(type == "default_digit"){ $(this).rules( "add", { required: true, digits: true }); }else if(type == "password1"){ $(this).rules( "add", { required: true, minlength: 8, messages: { required: "Your password must be at least 8 characters long and must not contain all numbers or characters", minlength: jQuery.validator.format("Your password must be at least 8 characters long and must not contain all numbers or characters") } }); }else if(type == "password2"){ $(this).rules( "add", { required: true, equalTo: '#val-password', messages: { required: "Your password must be at least 8 characters long and must not contain all numbers or characters", minlength: jQuery.validator.format("Your password must be at least 8 characters long and must not contain all numbers or characters") } }); } }); } } $.fn.setvalidation2 = function(){ var this_form = $(this); if(!$._data(this_form.get(0), "events")){ this_form.validate({ errorClass: 'help-block animation-pullUp', // You can change the animation class for a different entrance animation - check animations page errorElement: 'div', errorPlacement: function(error, e) { e.parents('.form-group > div').append(error); }, highlight: function(e) { $(e).closest('.form-group').removeClass('has-success has-error').addClass('has-error'); $(e).closest('.help-block').remove(); }, success: function(e) { // You can use the following if you would like to highlight with green color the input after successful validation! e.closest('.form-group').removeClass('has-success has-error'); // e.closest('.form-group').removeClass('has-success has-error').addClass('has-success'); e.closest('.help-block').remove(); } }); this_form.find(".validation").each(function(){ var type = $(this).data("validation"); $(this).closest("div.form-control").css("padding","0px"); $(this).closest("div.form-control").css("border","none"); if(type == "default"){ $(this).rules( "add", { required: true }); }else if(type == "default_number"){ $(this).rules( "add", { required: true, number: true }); }else if(type == "default_digit"){ $(this).rules( "add", { required: true, digits: true }); } }); } } })(jQuery); });
Simpan