forked from O1SoftwareNetwork/nonprofit-navigator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
26 lines (20 loc) · 809 Bytes
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Function to show home page
// Function to show volunteer list page
function showVolunteerListPage() {
const voluteerSearchPage = document.getElementById("volunteer_search_page");
voluteerSearchPage.style.display = 'block';
const voluteerSearchHome = document.getElementById("volunteer_search_home");
voluteerSearchHome.style.display = 'none';
}
// Function to show volunteer details page 1
// Function to show volunteer details page 2
// Function to show volunteer details page 3
//show div function
function showDiv(divId){
main_page_div_children = document.getElementById("main_page").children;
//debugger
for(var child_div of main_page_div_children){
child_div.style.display = (child_div.getAttribute('id') == divId ? 'block': 'none');
}
}
showDiv('volunteer_search_home')