Created
May 10, 2017 20:20
-
-
Save josePhoenix/2c8b7c0fb762b23a8c955a7ed20fdc29 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -iL http://mast.stsci.edu/ | |
HTTP/1.1 301 Moved Permanently | |
Content-Type: text/html; charset=UTF-8 | |
Location: portal/Mashup/Clients/Mast/Portal.html | |
Server: Microsoft-IIS/8.5 | |
X-Powered-By: ASP.NET | |
Access-Control-Allow-Origin: * | |
Access-Control-Allow-Headers: x-requested-with | |
Date: Wed, 10 May 2017 20:17:51 GMT | |
Content-Length: 161 | |
Set-Cookie: Mast_F5_Cookie=2985994114.20480.0000; path=/ | |
HTTP/1.1 301 Moved Permanently | |
Content-Type: text/html; charset=UTF-8 | |
Location: https://mast.stsci.edu/portal/Mashup/Clients/Mast/Portal.html | |
Server: Microsoft-IIS/8.5 | |
X-Powered-By: ASP.NET | |
Access-Control-Allow-Origin: * | |
Access-Control-Allow-Headers: x-requested-with | |
Date: Wed, 10 May 2017 20:17:51 GMT | |
Content-Length: 184 | |
Set-Cookie: Mast_F5_Cookie=2985994114.20480.0000; path=/ | |
HTTP/1.1 200 OK | |
Content-Type: text/html | |
Last-Modified: Thu, 04 Aug 2016 13:31:04 GMT | |
Accept-Ranges: bytes | |
ETag: "bdcd217354eed11:0" | |
Server: Microsoft-IIS/8.5 | |
X-Powered-By: ASP.NET | |
Access-Control-Allow-Origin: * | |
Access-Control-Allow-Headers: x-requested-with | |
Date: Wed, 10 May 2017 20:17:52 GMT | |
Content-Length: 5588 | |
Vary: Accept-Encoding | |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html5/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>MAST Portal</title> | |
<!-- Start timing this load. --> | |
<script type="text/javascript"> | |
window.STSCI_startTime = new Date().getTime(); | |
</script> | |
<!-- The JavaScript for the SAMP. --> | |
<script type="text/javascript" src="../Shared/samp.js"></script> | |
<script type="text/javascript" src="../Shared/flXHR.js"></script> | |
<!-- Initialize ExtJS and our local libraries. --> | |
<script type="text/javascript" src="../Shared/InitializeJavaScript.js"></script> | |
<!-- Needed for Album View --> | |
<!--<link rel="stylesheet" type="text/css" href="../Shared/css/data-view.css" /> | |
--> | |
<!-- The JavaScript for the AstroView. --> | |
<link rel="stylesheet" type="text/css" href="../AstroView/jo/css/jo2.css"> | |
<script type="text/javascript" src="../AstroView/jo/js/jo.js"></script> | |
<script type="text/javascript" src="../AstroView/Three/build/Three.js"></script> | |
<script type="text/javascript" src="../AstroView/AstroView.js"></script> | |
<!-- Initialize this application. --> | |
<link rel="stylesheet" type="text/css" href="../Shared/css/customStyles.css" /> | |
<link rel="shortcut icon" type="image/png" href="data/images/mastlogo_thumb.png" /> | |
<link rel="icon" type="image/png" href="data/images/mastlogo_thumb.png" /> | |
<!-- Google Analytics : Define loadAnalytics() called below --> | |
<script type="text/javascript" src="../Shared/InitializeAnalytics.js"></script> | |
<!-- Start this application. --> | |
<script type="text/javascript"> | |
Ext.onReady(function() { | |
Ext.create('Mast.Bootstrap', { | |
mainDiv: 'portalDiv' | |
}); | |
loadAnalytics(); | |
}, this); | |
</script> | |
<style> | |
.info { | |
top: 0px; | |
left: 0px; | |
width: 100%; | |
height: 100%; | |
position: fixed; | |
z-index: 9996 !important; | |
} | |
.infoBG { | |
background: rgba(0, 0, 0, 0.33333); | |
position: fixed; | |
} | |
.infoBGTop { | |
top: 0px; | |
left: 0px; | |
width: 100%; | |
height: 11px; | |
z-index: 9997 !important; | |
} | |
.infoBGLeft { | |
top: 11px; | |
left: 0px; | |
width: 40px; | |
height: 60px; | |
z-index: 9997 !important; | |
} | |
.infoBGRight { | |
top: 11px; | |
left: 520px; | |
width: 100%; | |
height: 60px; | |
z-index: 9997 !important; | |
} | |
.infoBGBottom { | |
top: 71px; | |
left: 0px; | |
width: 100%; | |
height: 100%; | |
z-index: 9997 !important; | |
} | |
.infoFG { | |
position: fixed; | |
top: 120px; | |
left: 600px; | |
margin-top: -75px; | |
margin-left: -175px; | |
width: 350px; | |
height: 145px; | |
background-color: #00008B; | |
color: white; | |
font-size: large; | |
padding: 12px !important; | |
border-radius: 25px; | |
border: 5px solid #87CEFA !important; | |
z-index: 9999 !important; | |
} | |
.infoOkButton { | |
position: fixed; | |
top: 230px; | |
left: 800px; | |
margin-top: -75px; | |
margin-left: -175px; | |
width: 110px; | |
height: 50px; | |
background-color: #008B00; | |
color: white; | |
font-size: large; | |
padding: 12px !important; | |
border-radius: 25px; | |
border: 2px solid #00FF00 !important; | |
z-index: 9999 !important; | |
} | |
.infoOkButton:hover { | |
background-color: #00A000; | |
} | |
.infoOkButton:active { | |
position: fixed; | |
top: 231px; | |
left: 801px; | |
} | |
.infoTarget { | |
background-image: url("data/images/infoTarget.png"); | |
width: 480px; | |
height: 60px; | |
top: 11px; | |
left: 40px; | |
position: fixed; | |
z-index: 9998 !important; | |
} | |
.hidden { | |
display: none; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="portalDiv"></div> | |
<div id="infoId" class="hidden info"> | |
<div id="infoBGTopId" class="infoBG infoBGTop"></div> | |
<div id="infoBGLeftId" class="infoBG infoBGLeft"></div> | |
<div id="infoTargetId" class="infoTarget"></div> | |
<div id="infoBGRightId" class="infoBG infoBGRight"></div> | |
<div id="infoBGBottomId" class="infoBG infoBGBottom"></div> | |
<div id="infoFGId" class="infoFG"> | |
Select <i>Virtual Observatory</i> from the collections dropdown to search data resources from around the world, or leave the default selection to search the MAST archive. | |
</div> | |
<div id="infoOkButtonId" class="infoOkButton" onclick="document.getElementById('infoId').className = 'infoId hidden';"> | |
Ok, got it! | |
</div> | |
</div> | |
<script> | |
function getCookie(cname) { | |
var name = cname + "="; | |
var ca = document.cookie.split(';'); | |
for(var i=0; i<ca.length; i++) { | |
var c = ca[i]; | |
while (c.charAt(0)==' ') c = c.substring(1); | |
if (c.indexOf(name) == 0) return c.substring(name.length,c.length); | |
} | |
return ""; | |
} | |
function setCookie(cname, cvalue, exdays) { | |
var d = new Date(); | |
d.setTime(d.getTime() + (exdays*24*60*60*1000)); | |
var expires = "expires="+d.toUTCString(); | |
document.cookie = cname + "=" + cvalue + "; " + expires; | |
} | |
if (document.referrer.indexOf("/Clients/Portal/DataDiscovery.html") > -1 || | |
document.referrer.indexOf("www.usvao.org/science-tools-services/vao-tools-services-data-discovery-tool") > -1) { | |
if (getCookie("vo-visitor-flag") != "true") { | |
document.getElementById("infoId").className = "info"; | |
setCookie("vo-visitor-flag", "true", 270) | |
} | |
} | |
</script> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment