Line 130: | Line 130: | ||
} | } | ||
} | } | ||
− | + | ||
+ | function toggleHeight4(e, maxHeight) { | ||
+ | e = document.getElementById("s4"); // e = the gray div | ||
+ | |||
+ | if(e.style.height != '24px') { | ||
+ | e.style.height = '24px'; // height of one line: 20px | ||
+ | } else { | ||
+ | e.style.height = maxHeight + 'px'; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | function toggleHeight5(e, maxHeight) { | ||
+ | e = document.getElementById("s5"); // e = the gray div | ||
+ | |||
+ | if(e.style.height != '24px') { | ||
+ | e.style.height = '24px'; // height of one line: 20px | ||
+ | } else { | ||
+ | e.style.height = maxHeight + 'px'; | ||
+ | } | ||
+ | } | ||
</script> | </script> | ||
Line 178: | Line 197: | ||
<div class='panel'> | <div class='panel'> | ||
<div id="s2" class="expandable" style='height: 24px;'> | <div id="s2" class="expandable" style='height: 24px;'> | ||
− | <a href="#!" onclick="toggleHeight2(this, | + | <a href="#!" onclick="toggleHeight2(this, 840); 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 | ||
Line 250: | Line 269: | ||
<div class='panel'> | <div class='panel'> | ||
− | <div id=" | + | <div id="s4" class="expandable" style='height: 24px;'> |
− | <a href="#!" onclick=" | + | <a href="#!" onclick="toggleHeight4(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;"> | ||
September, 2017 | September, 2017 | ||
Line 262: | Line 281: | ||
<div class='panel'> | <div class='panel'> | ||
− | <div id=" | + | <div id="s5" class="expandable" style='height: 24px;'> |
− | <a href="#!" onclick=" | + | <a href="#!" onclick="toggleHeight5(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;"> | ||
October, 2017 | October, 2017 |
Revision as of 03:43, 17 September 2017