{"size": 1784, "ext": "js", "max_stars_repo_path": "main/script/rover.js", "max_stars_repo_name": "fredysomy/NasaAPI", "max_stars_repo_stars_event_min_datetime": "2020-07-11T03:12:25.000Z", "max_stars_repo_stars_event_max_datetime": "2021-01-13T16:27:02.000Z", "max_issues_repo_path": "main/script/rover.js", "max_issues_repo_name": "fredysomy/SpaceInfo", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "main/script/rover.js", "max_forks_repo_name": "fredysomy/SpaceInfo", "max_forks_repo_forks_event_min_datetime": "2020-07-08T06:49:44.000Z", "max_forks_repo_forks_event_max_datetime": "2020-07-08T06:49:44.000Z"}
{"max_stars_count": 6, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 34.9803921569, "max_line_length": 145, "alphanum_fraction": 0.5347533632}
function getpic() {
  var rov=document.getElementById("rover").value;
  var s=sool.value;
 
  var url=`https://api.nasa.gov/mars-photos/api/v1/rovers/${rov}/photos?earth_date=${s}&page=1&api_key=4iWhuYckFgwjufu2vCPzb3OB5B5gdqUeXw2PJvF3`;
  document.getElementById("div11").innerHTML="";
  
  fetch(url)
  .then(resp =>resp.json())
  .then(data =>{
          var array=data[Object.keys(data)[0]]
        
         
          for(i=0;i<array.length;i++){
            
              var divm=document.getElementById("div11");
              var divi=document.createElement("div");
               var hr=document.createElement("a");
              divi.style.cssText='width:280px;height:300px;margin:0%;';
              var divi1=document.createElement("div");
              divi1.style.cssText='width:260px;height:250px;margin:5px;';
              var im=document.createElement("img");
              var para1=document.createElement("p");
              var para2=document.createElement("p");
              var para3=document.createElement("p");
              para1.style.cssText='font-size:15px;color:white;';
              para2.style.cssText='font-size:15px;color:white;';
              para3.style.cssText='font-size:15px;color:white;';
              data1=array[i];
             
              var x=data1.img_src
              
              var eardate=data1.earth_date
              im.setAttribute("src",x);
              hr.setAttribute("href",x);

              im.style.cssText='background-size: cover;width:100%;height:100%;';
             
               hr.appendChild(im);
              divi1.appendChild(hr);
              
              divi.appendChild(divi1);
              divm.appendChild(divi);
          }
          
        
          
        
       } );
      }
