Line 109: | Line 109: | ||
} | } | ||
} | } | ||
+ | |||
+ | function toggleHeight2(e, maxHeight) { | ||
+ | e = document.getElementById("s"); // e = the gray div | ||
+ | |||
+ | if(e.style.height != '20px') { | ||
+ | e.style.height = '20px'; // height of one line: 20px | ||
+ | } else { | ||
+ | e.style.height = maxHeight + 'px'; | ||
+ | } | ||
+ | } | ||
+ | |||
</script> | </script> | ||
Line 155: | Line 166: | ||
<div class='panel'> | <div class='panel'> | ||
− | <div id="" class="" style='height: 20px;'> | + | <div id="s" class="expandable" style='height: 20px;'> |
− | <a href="#!" onclick=" | + | <a href="#!" onclick="toggleHeight2(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;"> | ||
July, 2017 | July, 2017 |
Revision as of 03:34, 17 September 2017