(19 intermediate revisions by 2 users not shown) | |||
Line 96: | Line 96: | ||
}); | }); | ||
+ | |||
+ | |||
+ | /*********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 130: | Line 184: | ||
} | } | ||
+ | /* Style the buttons that are used to open and close the accordion panel */ | ||
+ | button.accordion { | ||
+ | background-color: #eee; | ||
+ | color: #444; | ||
+ | cursor: pointer; | ||
+ | padding: 18px; | ||
+ | width: 100%; | ||
+ | text-align: left; | ||
+ | border: none; | ||
+ | outline: none; | ||
+ | transition: 0.4s; | ||
+ | } | ||
Line 191: | Line 257: | ||
padding:5px 15px; | padding:5px 15px; | ||
border-bottom: 0px; | border-bottom: 0px; | ||
− | font-size: | + | font-size:50px; |
font-family: 'Montserrat', sans-serif; | font-family: 'Montserrat', sans-serif; | ||
color:#9BC2C9; /* TAG::LETTERS */ | color:#9BC2C9; /* TAG::LETTERS */ | ||
Line 200: | Line 266: | ||
padding:20px 15px; | padding:20px 15px; | ||
border-bottom: 0px; | border-bottom: 0px; | ||
+ | font-size:27px | ||
font-family: 'Montserrat', sans-serif; | font-family: 'Montserrat', sans-serif; | ||
− | color: # | + | color: #9DCDC3; /* TAG::LETTERS */ |
} | } | ||
Line 325: | Line 392: | ||
/* styling for images in a half width column*/ | /* styling for images in a half width column*/ | ||
.column.half_size img { | .column.half_size img { | ||
− | width: | + | width: 100%; |
padding: 10px 15px; | padding: 10px 15px; | ||
} | } | ||
Line 340: | Line 407: | ||
padding: 10px 15px; | padding: 10px 15px; | ||
} | } | ||
+ | |||
+ | /* class for a fifth width column */ | ||
+ | .column.fifth_size { | ||
+ | width: 20%; | ||
+ | } | ||
Line 476: | Line 548: | ||
<ul class="dropdown-menu"> | <ul class="dropdown-menu"> | ||
<li><a href="/Team:Virginia/Description">Description</a></li> | <li><a href="/Team:Virginia/Description">Description</a></li> | ||
− | <li><a href="/Team:Virginia/ | + | <li><a href="/Team:Virginia/Design">Design</a></li> |
− | <li><a href="/Team:Virginia/ | + | <li><a href="/Team:Virginia/Model">Model</a></li> |
+ | <li><a href="/Team:Virginia/Part_Collection">Parts</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> | ||
− | |||
</ul> | </ul> | ||
Line 485: | Line 558: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<li class="dropdown"> | <li class="dropdown"> | ||
Line 501: | Line 566: | ||
<li><a href="/Team:Virginia/InterLab">InterLab</a></li> | <li><a href="/Team:Virginia/InterLab">InterLab</a></li> | ||
<li><a href="/Team:Virginia/Safety">Safety</a></li> | <li><a href="/Team:Virginia/Safety">Safety</a></li> | ||
+ | <li><a href="/Team:Virginia/Experiments">Protocols</a></li> | ||
+ | <li><a href="/Team:Virginia/MedalCriteria">Medal Criteria</a></li> | ||
</ul> | </ul> | ||
</li> | </li> |
Latest revision as of 06:18, 1 November 2017