diff --git a/en/tools/explore/javascript/explore.js b/en/tools/explore/javascript/explore.js index 1667466..43d6dca 100644 --- a/en/tools/explore/javascript/explore.js +++ b/en/tools/explore/javascript/explore.js @@ -69,4 +69,16 @@ function findOtherNames(thera, thedec) { alert("Error: Could not resolve coordinates."); } }); -} \ No newline at end of file +} + +// KNOWN BROKEN LINKS +// Add "comingsoon" and "broken_link" class to known broken Domain Names. +(function ($) { + $(document).ready(function(){ + var $dns = ["https://dr13.sdss.org" , "https://sas.sdss.org", "http://dr13.sdss.org" , "http://sas.sdss.org" ]; + $dns.forEach( function( elem, indx, arr){ + $('a[href^="'+elem+'"]').addClass("broken_link"); + $('a[href^="'+elem+'"]').addClass("comingsoon"); + }); + }); +})(jQuery);