(6 intermediate revisions by one other user not shown) | |||
Line 98: | Line 98: | ||
+ | /*********CHRISTIA'S SCRIPT**********/ | ||
+ | |||
+ | var acc = document.getElementsByClassName("accordion"); | ||
+ | var i; | ||
+ | |||
+ | for (i = 0; i < acc.length; i++) { | ||
+ | acc[i].onclick = 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> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | <style> | ||
+ | div.panel { | ||
+ | padding: 0 18px; | ||
+ | background-color: white; | ||
+ | max-height: 0; | ||
+ | overflow: hidden; | ||
+ | transition: max-height 0.2s ease-out; | ||
+ | } | ||
+ | </style> | ||
+ | |||
+ | <script> | ||
+ | var acc = document.getElementsByClassName("accordion"); | ||
+ | var i; | ||
+ | |||
+ | for (i = 0; i < acc.length; i++) { | ||
+ | acc[i].onclick = function() { | ||
+ | this.classList.toggle("active"); | ||
+ | var panel = this.nextElementSibling; | ||
+ | if (panel.style.maxHeight){ | ||
+ | panel.style.maxHeight = null; | ||
+ | } else { | ||
+ | panel.style.maxHeight = panel.scrollHeight + "px"; | ||
+ | } | ||
+ | } | ||
+ | } | ||
</script> | </script> | ||
Line 143: | Line 197: | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
/***************************************************** DEFAULT WIKI SETTINGS ****************************************************/ | /***************************************************** DEFAULT WIKI SETTINGS ****************************************************/ | ||
Line 364: | Line 407: | ||
padding: 10px 15px; | padding: 10px 15px; | ||
} | } | ||
+ | |||
+ | /* class for a fifth width column */ | ||
+ | .column.fifth_size { | ||
+ | width: 20%; | ||
+ | } | ||
Line 502: | Line 550: | ||
<li><a href="/Team:Virginia/Design">Design</a></li> | <li><a href="/Team:Virginia/Design">Design</a></li> | ||
<li><a href="/Team:Virginia/Model">Model</a></li> | <li><a href="/Team:Virginia/Model">Model</a></li> | ||
− | <li><a href="/Team:Virginia/Part_Collection"> | + | <li><a href="/Team:Virginia/Part_Collection">Parts</a></li> |
<li><a href="/Team:Virginia/Improve">Improve</a></li> | <li><a href="/Team:Virginia/Improve">Improve</a></li> | ||
<li><a href="/Team:Virginia/Results">Results</a></li> | <li><a href="/Team:Virginia/Results">Results</a></li> |
Latest revision as of 06:18, 1 November 2017