Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thumbnails not appearing when moused over on Messier Objects #89

Open
creinemann opened this issue Jan 27, 2022 · 2 comments
Open

Thumbnails not appearing when moused over on Messier Objects #89

creinemann opened this issue Jan 27, 2022 · 2 comments

Comments

@creinemann
Copy link

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';
@creinemann
Copy link
Author

appears that the issue may be on the https://server7.sky-map.org site after all, not having an SSL certificate. Short-term fix? Change your browser settings on your local browser, in this case, Chrome. Under Settings - Security and Privacy->Site Settings, I added server7.sky-map.org to the allowed images setting. Of course, this would only work on your browser on any other site using the server7.sky-map.org in the virtualsky.js file.

@slowe
Copy link
Owner

slowe commented Nov 2, 2022

@creinemann Thanks for pointing this out. As you say, sky-map.org don't have an SSL certificate so there isn't really much that can be done from a VirtualSky perspective other than remove the feature entirely. Let's hope sky-map.org make the switch at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants