Philip P. Ide

Author, programmer, science enthusiast, half-wit.
Life is sweet. Have you tasted it lately?

User Tools

Site Tools


blog:aardvaark:perseverance

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
blog:aardvaark:perseverance [2020/08/09 02:37] Phil Ideblog:aardvaark:perseverance [2021/01/15 10:10] (current) Phil Ide
Line 1: Line 1:
 ~~NOCACHE~~ ~~NOCACHE~~
 ====== Perseverance Rover ====== ====== Perseverance Rover ======
-<html><iframe src="/mars/countdown.html" width=820 height=370px scrolling='no' frameborder='0'></iframe></html>+<html><iframe src="/mars/countdown.php" width=820 height=370px scrolling='no' frameborder='0'></iframe></html>
 === === === ===
-Perseverance has launched succesfully and the clock is now counting flight time. It is due to land on Mars on\\+Perseverance has launched succesfully and the clock is now counting flight and ETA time. It is due to land on Mars on (times and countdown timer based on NASA's timer):\\
   * **Feb 18th 2021**.   * **Feb 18th 2021**.
   * <html><span id=cet></span></html>   * <html><span id=cet></span></html>
Line 12: Line 12:
   * <html><span id=aest></span></html>   * <html><span id=aest></span></html>
   * <html><span id=hkt></span></html>   * <html><span id=hkt></span></html>
 +
 +See also NASA's [[https://eyes.nasa.gov/apps/orrery/#/sc_perseverance|interactive map]] of the solar system and follow Perserverance and Ingenuity on the way to Mars.
 +<PHP>
 +/*
 +$xppage = file_get_contents("https://mars.nasa.gov/");
 +$apage = explode("<div data-react-class=\"HomepageCountdown\" data-react-props=\"", $xppage)[1];
 +$xpage = str_replace( "&quot;", '"', explode("\" data-react-cache-id=\"HomepageCountdown-0\"", $apage)[0] );
 +$xpage = json_decode($xpage);
 +$xpage = '{"date":"2021-02-18 14:43:00"}';
 +echo "<script>var vvdate = \"$xpage->date\";</script>";
 +*/
 +</PHP>
 <JS> <JS>
 +var vvdate = '2021-02-18 16:43:39 -0400';
 var ldopts = {hour: '2-digit', minute:'2-digit'}; var ldopts = {hour: '2-digit', minute:'2-digit'};
-launch_date = new Date('2021-02-18 15:36:02 -0400');+//launch_date = new Date('2021-02-18 15:36:02 -0400'); 
 +//launch_date = new Date('2021-02-18 16:43:39 -0400'); 
 +launch_date = new Date(vvdate);
 document.getElementById('cet').innerHTML = launch_date.toLocaleTimeString([],ldopts).toLowerCase()+' CET'; document.getElementById('cet').innerHTML = launch_date.toLocaleTimeString([],ldopts).toLowerCase()+' CET';
 launch_date.setHours(launch_date.getHours()-1); launch_date.setHours(launch_date.getHours()-1);
-document.getElementById('bst').innerHTML = launch_date.toLocaleTimeString([],ldopts).toLowerCase()+' BST';+document.getElementById('bst').innerHTML = launch_date.toLocaleTimeString([],ldopts).toLowerCase()+' GMT';
 launch_date.setHours(launch_date.getHours()-5); launch_date.setHours(launch_date.getHours()-5);
-document.getElementById('edt').innerHTML = launch_date.toLocaleTimeString([],ldopts).toLowerCase()+' EDT';+document.getElementById('edt').innerHTML = launch_date.toLocaleTimeString([],ldopts).toLowerCase()+' ET';
 launch_date.setHours(launch_date.getHours()-3); launch_date.setHours(launch_date.getHours()-3);
-document.getElementById('pdt').innerHTML = launch_date.toLocaleTimeString([],ldopts).toLowerCase()+' PDT';+document.getElementById('pdt').innerHTML = launch_date.toLocaleTimeString([],ldopts).toLowerCase()+' PT';
  
-launch_date = new Date('2021-02-18 15:36:02 -0400');+//launch_date = new Date('2021-02-18 16:43:39 -0400'); 
 +launch_date = new Date(vvdate);
 launch_date.setHours(launch_date.getHours()+8); launch_date.setHours(launch_date.getHours()+8);
-document.getElementById('awst').innerHTML = launch_date.toLocaleTimeString([],ldopts).toLowerCase()+' AWST '+rfdate(launch_date);+document.getElementById('awst').innerHTML = launch_date.toLocaleTimeString([],ldopts).toLowerCase()+' AWT '+rfdate(launch_date);
  
 launch_date.setHours(launch_date.getHours()+2); launch_date.setHours(launch_date.getHours()+2);
-document.getElementById('aest').innerHTML = launch_date.toLocaleTimeString([],ldopts).toLowerCase()+' AEST '+rfdate(launch_date);+document.getElementById('aest').innerHTML = launch_date.toLocaleTimeString([],ldopts).toLowerCase()+' AET '+rfdate(launch_date);
  
 launch_date.setHours(launch_date.getHours()+6); launch_date.setHours(launch_date.getHours()+6);
Line 44: Line 60:
 {{:blog:articles:science:mars202countdown.png?nolink&200|}} {{:blog:articles:science:mars202countdown.png?nolink&200|}}
  
-[[blog:articles:general:martian_weird_spring|Martian Spring Weirdness]] | [[blog:articles:general:orbital_shenanigans|Orbital Shenanigans]] | [[:blog:articles:info:mars_solar_conjunction|Mars Solar Conjunctions]] | [[:blog:aardvaark:mars_weather|Mars Weather]]+[[blog:articles:general:orbital_shenanigans|Orbital Shenanigans]] | [[:blog:articles:info:mars_solar_conjunction|Mars Solar Conjunctions]] | [[:blog:aardvaark:mars_weather|Mars Weather]]
  
 ~~socialite~~ ~~socialite~~
 ~~DISCUSSION~~ ~~DISCUSSION~~
  
blog/aardvaark/perseverance.1596940626.txt.gz · Last modified: 2020/08/09 02:37 by Phil Ide

Except where otherwise noted, content on this wiki is licensed under the following license: Copyright © Phil Ide
Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki