/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */ .active, .accordion:hover { background-color: #ccc; }
/* Style the accordion panel. Note: hidden by default */ .panel { padding: 0 18px; background-color: white; display: none; overflow: hidden; }</style>
<title>Kalon Ridley's Portfolio</title>
Goal 1
<script>var acc = document.getElementsByClassName("accordion");
var i;
Develop a professional identity and philosophy within the library and information professions.
- Outcome 1a
- Outcome 1b
- Outcome 1c
for (i = 0; i < acc.length; i++) { acc[i].addEventListener("click", function() { /* Toggle between adding and removing the "active" class, to highlight the button that controls the panel */ this.classList.toggle("active");
/* Toggle between hiding and showing the active panel */
var panel = this.nextElementSibling;
if (panel.style.display === "block") {
panel.style.display = "none";
} else {
panel.style.display = "block";
}
}); }</script>