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/11/03 11:08] 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 and ETA time. It is due to land on Mars on (times and countdown timer based on NASA's timer):\\ 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):\\
Line 14: Line 14:
  
 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. 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('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);
Line 26: Line 38:
 document.getElementById('pdt').innerHTML = launch_date.toLocaleTimeString([],ldopts).toLowerCase()+' PT'; document.getElementById('pdt').innerHTML = launch_date.toLocaleTimeString([],ldopts).toLowerCase()+' PT';
  
-launch_date = new Date('2021-02-18 16:43:39 -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()+' AWT '+rfdate(launch_date); document.getElementById('awst').innerHTML = launch_date.toLocaleTimeString([],ldopts).toLowerCase()+' AWT '+rfdate(launch_date);
Line 47: 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.1604401737.txt.gz · Last modified: 2020/11/03 11:08 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