Link to external docs

This commit is contained in:
Alan Bernstein 2017-04-26 14:35:23 -05:00
parent f9e21359f7
commit 2956640a5c

View file

@ -241,10 +241,14 @@ function setNav(e) {
interface_el.classList.add("interface-active")
// hack hack
if(name == "cluster") {
update_cluster_status()
switch(name) {
case "cluster":
update_cluster_status()
break
case "documentation":
open_external_docs()
break
}
}
@ -261,6 +265,10 @@ function update_cluster_status() {
xhr.send(null)
}
function open_external_docs() {
window.open("https://www.pilosa.com/docs");
}
Date.prototype.today = function () {
return this.getFullYear() +"/"+ (((this.getMonth()+1) < 10)?"0":"") + (this.getMonth()+1) +"/"+ ((this.getDate() < 10)?"0":"") + this.getDate();
}