Line 67: | Line 67: | ||
/* Show & hide */ | /* Show & hide */ | ||
− | . | + | .expandable1 { |
/* overflow set to hidden to hide the expanded text */ | /* overflow set to hidden to hide the expanded text */ | ||
overflow: hidden; | overflow: hidden; | ||
Line 101: | Line 101: | ||
<script> | <script> | ||
function toggleHeight(e, maxHeight) { | function toggleHeight(e, maxHeight) { | ||
− | e = document.getElementById(" | + | e = document.getElementById("s"); // e = the gray div |
if(e.style.height != '20px') { | if(e.style.height != '20px') { | ||
Line 137: | Line 137: | ||
<div class='panel'> | <div class='panel'> | ||
− | <div id=" | + | <div id="s" class="expandable1" style='height: 20px;'> |
<a href="#!" onclick="toggleHeight(this, 240); return false" | <a href="#!" onclick="toggleHeight(this, 240); return false" | ||
style="font-family: 'Acme', sans-serif;font-size:28px;color: #479fcc;height: 20px;"> | style="font-family: 'Acme', sans-serif;font-size:28px;color: #479fcc;height: 20px;"> |
Revision as of 03:29, 17 September 2017