Guest User

код на jquerry

a guest
Dec 18th, 2020
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $("#submit").click(function(){
  2.             var resp = fetch("/api/login", {
  3.                 method: "POST",
  4.                 body: JSON.stringify({
  5.                     login: $("#login").val(),
  6.                     password: $("#password").val()
  7.                 })
  8.             }).json()
  9.             if(resp.status == "success"){
  10.                 window.location = "https://onlinemektep.org"
  11.             }else{
  12.                 alert("error")
  13.             }
  14.         })
Advertisement
Add Comment
Please, Sign In to add comment