{"size": 1166, "ext": "js", "max_stars_repo_path": "profile.js", "max_stars_repo_name": "asim-nath/Blood-Buddy", "max_stars_repo_stars_event_min_datetime": "2018-12-22T04:13:22.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-26T15:58:54.000Z", "max_issues_repo_path": "profile.js", "max_issues_repo_name": "surabhiojha12/Blood-Buddy", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "profile.js", "max_forks_repo_name": "surabhiojha12/Blood-Buddy", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.8085106383, "max_line_length": 62, "alphanum_fraction": 0.6903945111}
var database=firebase.database();

var id=localStorage.getItem('id');
var sidd;

function displaypro()
{
var ref=database.ref('member');
ref.on('value',gtdata,errdata);


}
function gtdata(data){
    var jobs=data.val();
    var keys=Object.keys(jobs);
    for(var i=0;i<keys.length;i++)
{  
  var k=keys[i];
  var noo=localStorage.getItem('no');
  var lasdt=localStorage.getItem('ddt');
  var bgg=['O-','O+','A-','A+','B-','B+','AB-','AB+'];
  if(jobs[k].id==id)
{
document.getElementById('addr').innerHTML=jobs[k].add;
document.getElementById('demm').innerHTML=jobs[k].name;
document.getElementById('email').innerHTML=jobs[k].email;
document.getElementById('phone').innerHTML=jobs[k].phone;
document.getElementById('bggg').innerHTML=bgg[jobs[k].bg];
document.getElementById('dno').innerHTML=noo;
if(noo>=3)
document.getElementById("bronze").classList.remove("w3-hide");
if(noo>=5)
document.getElementById("silver").classList.remove("w3-hide");
if(noo>=8)
document.getElementById("gold").classList.remove("w3-hide");
}
}
}
function errdata(data){
    console.log(data);
}
document.addEventListener("DOMContentLoaded", function() {
   
    displaypro();
   
  });
  