173 lines
7.6 KiB
HTML
173 lines
7.6 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
|
<title>NCBI/NLM/NIH :: Public FTP</title>
|
|
<script type="text/javascript" src="/core/lw/2.0/js/utils.1.js"></script>
|
|
<script type="text/javascript">
|
|
utils.jsLoader.sBase = "/core/lw/2.0/js/";
|
|
|
|
//==============================================================================
|
|
utils.addEvent(window, "load", function() {
|
|
|
|
if (utils.bIsIe) utils.addClass(document.body, "is-ie");
|
|
|
|
if (top.location.href == window.location.href) {
|
|
// it runs NOT inside iframe. Show header and footer
|
|
var el = document.getElementById("ncbi-header");
|
|
if (el) el.style.display = "block";
|
|
el = document.getElementById("ncbi-footer");
|
|
if (el) el.style.display = "block";
|
|
} else {
|
|
utils.addClass(document.body, "in-frame");
|
|
}
|
|
|
|
|
|
var oTreePh = document.getElementById("aspera-web-ph");
|
|
if (oTreePh) {
|
|
|
|
var sRootNode = document.location.href.split("?")[1];
|
|
if (sRootNode == undefined || sRootNode == "") sRootNode = "/";
|
|
var oNotifier = new Notifier;
|
|
oEls = $C("expand", "class");
|
|
if (oEls) for (var i = 0; oEls.length > i; i++) new Expander(oEls[i], oNotifier, "aspera_tree_expander");
|
|
var oTree = new FaspFtp();
|
|
oTree.oPh = oTreePh;
|
|
oTree.oNotifier = oNotifier;
|
|
oTree.bUseCbx = false;
|
|
oTree.sRootNode = sRootNode;
|
|
oTree.iPageSize = 20;
|
|
oTree.iPageSizeTrigger = 50;
|
|
oTree.sCurrentAsperaVersion = "2.6";
|
|
oTree.Init();
|
|
|
|
|
|
var elCollapsButton = document.getElementById("collapse-tree_ftp");
|
|
if (elCollapsButton) {
|
|
utils.addEvent(elCollapsButton, "click", function(e) {
|
|
utils.preventDefault(e);
|
|
oTree.oNotifier.Notify(this, Gui.oMsg.TreeCollapse);
|
|
});
|
|
}
|
|
|
|
var elGetSelectedCbxsButton = document.getElementById("get-selected-cbxs");
|
|
if (oTree.bUseCbx) {
|
|
var elGetSelectedCbxsButton = document.getElementById("get-selected-cbxs");
|
|
if (elGetSelectedCbxsButton) {
|
|
utils.addEvent(elGetSelectedCbxsButton, "click", function(e) {
|
|
utils.preventDefault(e);
|
|
oTree.oNotifier.Notify(this, Gui.oMsg.TreeGetSelected);
|
|
});
|
|
}
|
|
} else {
|
|
var elParent = utils.getParent(elGetSelectedCbxsButton);
|
|
elParent.removeChild(elGetSelectedCbxsButton);
|
|
}
|
|
if (top.location.href != window.location.href) {
|
|
var t;
|
|
oNotifier.setListener(this, Gui.oMsg.TreeBuildTitle, function() {
|
|
adjustIframe();
|
|
});
|
|
|
|
oNotifier.setListener(this, Gui.oMsg.TreeClickToBranch, function() {
|
|
adjustIframe();
|
|
});
|
|
|
|
oNotifier.setListener(this, Gui.oMsg.Expander, function() {
|
|
adjustIframe();
|
|
});
|
|
|
|
function adjustIframe() {
|
|
if (t) clearTimeout(t);
|
|
t = setTimeout(function() { x_adjustIframe(); }, 100);
|
|
|
|
function x_adjustIframe() {
|
|
var iH = utils.getPageDim().h + 30;
|
|
var el = parent.document.getElementsByName("faspftp")[0];
|
|
el.style.height = iH + "px";
|
|
// console.info(iH, el.getAttribute("height"));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
});
|
|
|
|
|
|
</script>
|
|
|
|
<script type="text/javascript" src="/core/lw/2.0/js/tree.4.js"></script>
|
|
<script type="text/javascript" src="/core/lw/2.0/js/expander.1.js"></script>
|
|
<script type="text/javascript" src="asperaweb.js"></script>
|
|
<script type="text/javascript" src="asperaweb-4.js"></script>
|
|
<script type="text/javascript" src="asperawebhelper.js"></script>
|
|
|
|
|
|
<script type="text/javascript" src="faspftp.4.js"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="/core/lw/2.0/css/gui.3/expander.1.css"/>
|
|
<link rel="stylesheet" type="text/css" href="/core/lw/2.0/css/gui.3/tree.4.css"/>
|
|
<link rel="stylesheet" type="text/css" href="faspftp.4.css"/>
|
|
|
|
</head>
|
|
<body>
|
|
<noscript>
|
|
<p>
|
|
Your browser does not support JavaScript!
|
|
</p>
|
|
</noscript>
|
|
<div id="ncbi-header" style="display:none">
|
|
<a href="https://ncbi.nlm.nih.gov" accesskey="1"
|
|
title="NCBI Home (access key '1')"><span> </span><img src="/Traces/cluster/web/i/ncbi-logo-small_369_.gif" alt="NCBI" style="border:none"/></a>
|
|
</div>
|
|
|
|
<div id="content">
|
|
<div id="header"></div>
|
|
<div id="no-aspera"></div>
|
|
|
|
<div class="expand" id="setup-aspera-expand">
|
|
<a href="#" class="expand-handler">
|
|
<span id="setup-aspera"></span>
|
|
<!--span class="more">...</span>
|
|
<span class="less"></span-->
|
|
</a>
|
|
<div class="expand-body" id="setup-aspera-text">
|
|
</div>
|
|
</div>
|
|
|
|
<div id="old-aspera"></div>
|
|
|
|
<input type="button" id="get-selected-cbxs" value="Get selected"/>
|
|
<input type="button" id="collapse-tree_ftp" value="Collapse tree"/>
|
|
<br style="clear:both"/>
|
|
|
|
<!-- default project is set into browser/faspftp.ini file -->
|
|
<div id="aspera-web-ph" >Loading...</div>
|
|
<!--
|
|
<object id="aspera-web" type="application/x-aspera-web" width="0" height="0">
|
|
<param name="AW_IMGSRC" value="" />
|
|
</object>
|
|
-->
|
|
</div>
|
|
|
|
<div id="ncbi-footer" style="display:none">
|
|
<div id="footer-links">
|
|
<ul class="pipelist2l">
|
|
<li><strong><a href="mailto:info@ncbi.nlm.nih.gov">Write to the Help Desk</a></strong></li>
|
|
<li><a href="https://www.nih.gov/about/privacy.htm">Privacy Notice</a></li>
|
|
<li><a href="https://www.nih.gov/about/disclaim.htm">Disclaimer</a></li>
|
|
<li><a href="https://www.nih.gov/about/access.htm">Accessibility</a></li>
|
|
</ul>
|
|
<ul class="pipelist2l">
|
|
<li><a href="https://www.ncbi.nlm.nih.gov/">National Center for Biotechnology Information</a></li>
|
|
<li><a href="https://www.nlm.nih.gov/">U.S. National Library of Medicine</a></li>
|
|
</ul>
|
|
<ul id="banners">
|
|
<li><a href="https://www.nih.gov/" id="link_nih">National Institute of Health</a></li>
|
|
<li><a href="https://www.hhs.gov/" id="link_dhhs">United States Department of Health and Human Services</a></li>
|
|
<li><a href="https://www.firstgov.gov/" id="link_firstgov">FirstGov.gov: The U.S. Government's Official Web Portal</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|