spedas / bleeding_edge

IDL-based Space Physics Environment Data Analysis Software (bleeding edge)
http://www.spedas.org
Other
7 stars 0 forks source link

Online summary plots: replace FTP plot description links with HTTP(S) links #98

Closed jameswilburlewis closed 12 months ago

jameswilburlewis commented 1 year ago

When clicking on "Plot Descriptions" at the bottom of the THEMIS or SOSMAG (and possibly other?) summary plots, the Javascript code tries to follow an FTP link. But this is no longer supported by most modern browsers -- we should change this to the equivalent HTTP or HTTPS link.

    function makeDocWindow() {

            var sumType = document.getElementById("sumplotType").value;
            var subsumType = sumType.substr(0, 2);

            if (sumType == "goes") {
                var dockey = "goes/goes_plot_descriptions.docx";
            } else if (sumType == "poes") {
                var dockey = "goes/poes_plot_descriptions.docx";
            } else if (sumType == "asi") {
                var dockey = "gbo/THEMIS_All_Sky_Imager-2.pdf";
            } else {
                var dockey = "ftp://apollo.ssl.berkeley.edu/pub/THEMIS/3%20Ground%20Systems/3.2%20Science%20Operations/Science%20Operations%20Documents/THEMIS%20Summary%20Plot%20Description%20Tables";
            }
            var docWindow = window.open(dockey, "", "");

        }
nickssl commented 12 months ago

Fixed.