{"size": 851, "ext": "js", "max_stars_repo_path": "script.js", "max_stars_repo_name": "Web-Developm/Gym", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "script.js", "max_issues_repo_name": "Web-Developm/Gym", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "script.js", "max_forks_repo_name": "Web-Developm/Gym", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 18.5, "max_line_length": 75, "alphanum_fraction": 0.5581668625}

var data=[
  {
  username:"admin",
  password:"123"
},
  {
  username:"user",
  password:"123"
}
 
]

function getInfo()
{
  var username=document.getElementById("username").value;
  var password=document.getElementById("password").value;

  for(var i=0;i<data.length;i++)
    {
    if(username == data[i].username && password == data[i].password)
    {
      window.location.assign('\admin.html');
    }

    else if(username != data[i].username && password == data[i].password)
    {
      window.alert("Invalid Username");
    }

    else if(username == data[i].username && password != data[i].password)
    {
      window.alert("Invalid Password");
    }

    else if (username != data[i].username && password != data[i].password)
    {
      window.alert("Fill the details");
    }

    

    }

  }
