{"id":3290,"date":"2015-01-02T00:25:08","date_gmt":"2015-01-01T15:25:08","guid":{"rendered":"https:\/\/artsat.jp\/?page_id=3290"},"modified":"2023-03-05T10:26:22","modified_gmt":"2023-03-05T01:26:22","slug":"celestial","status":"publish","type":"page","link":"https:\/\/artsat.jp\/en\/project\/despatch\/celestial","title":{"rendered":"Celestial Sphere"},"content":{"rendered":"<h2><a style=\"display: none;\" id=\"fullscreen\">View in fullscreen<\/a><\/h2>\r\n<object style=\"display: none;\" id=\"sphere\" width=\"600\" height=\"480\" data=\"https:\/\/www.lizard-tail.com\/isana\/starlitnight\/\" type=\"text\/html\" text=\"DESPATCH\"><\/object>\r\n<script>\r\n\t\t\tfunction map(lat, lon) {\r\n\t\t\t\tvar time = ~~((new Date()).getTime() \/ 1000);\r\n\t\t\t\tvar alt = 0;\r\n\t\t\t\tvar url = 'https:\/\/api.artsat.jp\/despatch\/pass.json?time=' + time + ';lat=' + lat + ';lon=' + lon + ';alt=' + alt;\r\n\t\t\t\t\tconsole.log(url);\r\n\t\t\t\t$.get(url, {}, function(data) {\r\n\t\t\t\t\tvar azi = data[0].tca.azimuth;\r\n\t\t\t\t\tvar ele = data[0].tca.elevation;\r\n\t\t\t\t\tvar d = data[0].tca.declination;\r\n\t\t\t\t\tvar r = data[0].tca.right_ascension \/ 15.0;\r\n\t\t\t\t\tvar date = new Date(data[0].tca.time*1000);\r\n\t\t\t\t\tvar t = date.toISOString().replace(\/[-T:]|\\.\\w+$\/g, '');\r\n                                        var a = String.fromCharCode(38);\r\n\t\t\t\t\tvar url = 'https:\/\/www.lizard-tail.com\/isana\/starlitnight\/?' + a + 'l=' + lat + ',' + lon + a + 't=' + t + a + 'scl=1.50' + a +'azi=' + azi + a + 'alt=' + ele + a + 'marker=' + r + ',' + d;\r\n\t\t\t\t\tconsole.log(url);\r\n\t\t\t\t\t$('#sphere').show().attr('data', url + ',ARTSAT-DESPATCH' + encodeURIComponent('(' + date.toUTCString() + ')'));\r\n                                        $('#fullscreen').show().attr('href', url + a + 'spobj=artsat2_despatch')\r\n\t\t\t\t\t\r\n\t\t\t\t}, 'json');\r\n\t\t\t}\r\n \t\t\t\tif (navigator.geolocation) {\r\n        \t\t\t\tnavigator.geolocation.getCurrentPosition(function(pos){\r\n\t\t\t\t\t\tmap(pos.coords.latitude, pos.coords.longitude);\r\n        \t\t\t\t}, function(){\r\n\t\t\t\t\t\tmap(35.1651617, 136.9697258);\r\n\t\t\t\t\t});\r\n      \t\t\t\t}\t\r\n\r\n<\/script>\r\nPowered by <a href=\"https:\/\/www.lizard-tail.com\/isana\/starlitnight\/\">Starlit Night \/ Isana Kashiwai<\/a>","protected":false},"excerpt":{"rendered":"<p>View in fullscreen Powered by Starlit Night \/ Isana Kashiwai<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":1683,"menu_order":4,"comment_status":"open","ping_status":"open","template":"page-project.php","meta":{"footnotes":""},"translation":{"provider":"WPGlobus","version":"2.12.2","language":"en","enabled_languages":["ja","en"],"languages":{"ja":{"title":true,"content":true,"excerpt":false},"en":{"title":false,"content":true,"excerpt":false}}},"_links":{"self":[{"href":"https:\/\/artsat.jp\/en\/wp-json\/wp\/v2\/pages\/3290"}],"collection":[{"href":"https:\/\/artsat.jp\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/artsat.jp\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/artsat.jp\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/artsat.jp\/en\/wp-json\/wp\/v2\/comments?post=3290"}],"version-history":[{"count":1,"href":"https:\/\/artsat.jp\/en\/wp-json\/wp\/v2\/pages\/3290\/revisions"}],"predecessor-version":[{"id":3709,"href":"https:\/\/artsat.jp\/en\/wp-json\/wp\/v2\/pages\/3290\/revisions\/3709"}],"up":[{"embeddable":true,"href":"https:\/\/artsat.jp\/en\/wp-json\/wp\/v2\/pages\/1683"}],"wp:attachment":[{"href":"https:\/\/artsat.jp\/en\/wp-json\/wp\/v2\/media?parent=3290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}