Skip to content

Thumbnails not appearing when moused over on Messier Objects #89

@creinemann

Description

@creinemann

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';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions