i2pd website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

21 lines
904 B

function renderDownloadButton() {
var downloadCount = 0, dl_btn = document.getElementById("dl-btn"), all_dls = document.getElementById("all-dls");
if (window.navigator.platform.toUpperCase().startsWith("WIN")) {
dl_btn.innerText = document.webL10n.get("header-dl-btn-bundle", null, "Download I2PdBrowser");
dl_btn.setAttribute("href", "https://github.com/PurpleI2P/i2pdbrowser/releases/latest");
all_dls.style.display = "block";
} else if (window.navigator.userAgent.toUpperCase().indexOf("ANDROID") !== -1) {
dl_btn.innerText = document.webL10n.get("header.dl-btn-android", null, "Download for Android");
dl_btn.setAttribute("href", droid_asset[0].browser_download_url);
all_dls.style.display = "block";
} else {
dl_btn.innerText = document.webL10n.get("header-dl-btn", null, "Downloads");
}
}
window.addEventListener('localized', function() {
renderDownloadButton();
}, false);