An error occurred while loading the file. Please try again.
-
Aldrich Valentino Halim authoredb5f7c34e
dashboard.js 1.78 KiB
function order_clicked() {
document.getElementById('history').classList.remove('selected');
document.getElementsByClassName('history-wrapper')[0].style.display = 'none';
document.getElementById('profile').classList.remove('selected');
document.getElementsByClassName('profile-wrapper')[0].style.display = 'none';
document.getElementById('order').classList.add('selected');
document.getElementsByClassName('order-wrapper')[0].style.display = 'block';
}
function history_clicked() {
document.getElementById('profile').classList.remove('selected');
document.getElementsByClassName('profile-wrapper')[0].style.display = 'none';
document.getElementById('order').classList.remove('selected');
document.getElementsByClassName('order-wrapper')[0].style.display = 'none';
document.getElementById('history').classList.add('selected');
document.getElementsByClassName('history-wrapper')[0].style.display = 'block';
}
function profile_clicked() {
document.getElementById('history').classList.remove('selected');
document.getElementsByClassName('history-wrapper')[0].style.display = 'none';
document.getElementById('order').classList.remove('selected');
document.getElementsByClassName('order-wrapper')[0].style.display = 'none';
document.getElementById('profile').classList.add('selected');
document.getElementsByClassName('profile-wrapper')[0].style.display = 'block';
}
function driverHistoryClicked() {
document.getElementById('previous-order').classList.remove('selected-order');
document.getElementById('driver-history').classList.add('selected-order');
}
function previousOrderClicked() {
document.getElementById('driver-history').classList.remove('selected-order');
document.getElementById('previous-order').classList.add('selected-order');
}