var body = document.body; body.className += " u-body"; body.style.cssText += " "; Anda berada di sini: Laman Utama DIREKTORI BAHAGIAN KHIDMAT PENGURUSAN UNIT PENGURUSAN DOMESTIK Unit Pengurusan Domestik .accordion { border-bottom: 1px solid #000000; background-color: #FFFFFF; color: #000000; cursor: pointer; padding: 18px; width: 100%; text-align: left; outline: none; font-size: 18px; transition: 0.4s; margin: 0; } .activev3, .accordion:hover { /*background-image: linear-gradient(to left, rgba(235, 172, 5, 0), rgba(235, 172, 5, 1));*/ background-color: #EBAC05; color: #000000; } .panel { padding: 0 15px; width: 100%; display: none; background-color: white; overflow: hidden; font-size: 16px; } table { border-collapse: collapse; border-spacing: 0; border: 1px; width: 100%; } th, td { padding: 5px; text-align: left; width: 50%; } .center { display: block; margin-left: auto; margin-right: auto; } /*tr:hover {background-color:#f5f5f5;} tr:nth-child {background-color: #f2f2f2;}*/ 1. Siti Khatijah binti Abdul Kahar Penolong Pengurus Asrama, N29 Tel: 03-7985 3211 Faks: 03-7985 3200 khaty.abdulkahar@ism.gov.my 2. Nor Fadhilah Aliya binti Jafri Penyelia Asrama, N19 Tel: 03-7985 3211 Faks: 03-7985 3200 aliya@ism.gov.my var acc = document.getElementsByClassName('accordion'); var i; for (i = 0; i < acc.length; i++) { acc[i].addEventListener('click', function() { this.classList.toggle('activev3'); var panel = this.nextElementSibling; if (panel.style.display === 'block') { panel.style.display = 'none'; } else { panel.style.display = 'block'; } }); } 268