|
url = p.url || "http://server1.wikisky.org/v2?ra="+(p.ra/15)+"&de="+(p.dec)+"&zoom=6&img_source=DSS2"; |
|
img = p.img || 'http://server7.sky-map.org/imgcut?survey=DSS2&w=128&h=128&ra='+(p.ra/15)+'&de='+p.dec+'&angle=0.25&output=PNG'; |
When using Messier Objects on your page, IF the thumbnails DO NOT appear when moused over, then it is most likely that your server does not allow linking to an unsecured page. Here is a fix:
The code for the Virtual Sky is not adapted for secure servers, in this section: lines 2934 and 2935 in the virtualsky.js file needed to have HTTP changed to HTTPS - since I am running on a secure HTTPS server, I don't think it would matter on a local server like a pi (unless you are running it as a secure server).
Change to:
url = p.url || "https://server1.wikisky.org/v2?ra="+(p.ra/15)+"&de="+(p.dec)+"&zoom=6&img_source=DSS2";
img = p.img || 'https://server7.sky-map.org/imgcut?survey=DSS2&w=128&h=128&ra='+(p.ra/15)+'&de='+p.dec+'&angle=0.25&output=PNG';
VirtualSky/virtualsky.js
Line 3455 in 8632b5c
VirtualSky/virtualsky.js
Line 3456 in 8632b5c
When using Messier Objects on your page, IF the thumbnails DO NOT appear when moused over, then it is most likely that your server does not allow linking to an unsecured page. Here is a fix:
The code for the Virtual Sky is not adapted for secure servers, in this section: lines 2934 and 2935 in the virtualsky.js file needed to have HTTP changed to HTTPS - since I am running on a secure HTTPS server, I don't think it would matter on a local server like a pi (unless you are running it as a secure server).
Change to: