mirror of
https://git.wownero.com/wownero/wownero-funding-system.git
synced 2024-08-15 00:53:45 +00:00
23 lines
No EOL
592 B
JavaScript
23 lines
No EOL
592 B
JavaScript
function proposalNavbarclickDataHref(d){
|
|
if(d.classList.contains('active')){
|
|
// if the navbar button is already active, remove filter, go to proposals page
|
|
window.location.href = '/proposals'
|
|
} else {
|
|
window.location.href = d.getAttribute("data-href");
|
|
}
|
|
}
|
|
|
|
function hideShow(element_id) {
|
|
var x = document.getElementById(element_id);
|
|
if (x.style.display === "none") {
|
|
x.style.display = "block";
|
|
} else {
|
|
x.style.display = "none";
|
|
}
|
|
}
|
|
|
|
function fix_anchors(){
|
|
if(window.location.hash) {
|
|
scrollBy(0, -150)
|
|
}
|
|
} |