Commit 4af134b2 by Tom Giannattasio

fixed large collapsible text and triple toggle

parent 99a009ab
...@@ -52,6 +52,14 @@ div.course-wrapper { ...@@ -52,6 +52,14 @@ div.course-wrapper {
margin-bottom: 15px; margin-bottom: 15px;
padding: 0 0 15px; padding: 0 0 15px;
.collapsible {
header {
margin-bottom: 0;
padding-bottom: 0;
font-size: 16px;
}
}
header { header {
@extend h1.top-header; @extend h1.top-header;
@include border-radius(0 4px 0 0); @include border-radius(0 4px 0 0);
......
...@@ -34,6 +34,8 @@ ...@@ -34,6 +34,8 @@
<%block name="js_extra"> <%block name="js_extra">
<script type="text/javascript" charset="utf-8"> <script type="text/javascript" charset="utf-8">
var collapsibleSet;
$(function(){ $(function(){
// this should be brought back into problems // this should be brought back into problems
$('.longform').hide(); $('.longform').hide();
...@@ -47,12 +49,16 @@ ...@@ -47,12 +49,16 @@
return false; return false;
}); });
$('.collapsible section').hide() if(!collapsibleSet) {
$('.collapsible header a').click(function() { collapsibleSet = true;
$(this).parent().siblings().slideToggle(); $('.collapsible section').hide();
$(this).parent().parent().toggleClass('open'); $('.collapsible header a').bind('click', toggleHint);
return false function toggleHint(e) {
}); $(this).parent().siblings().slideToggle();
$(this).parent().parent().toggleClass('open');
return false;
}
}
}); });
</script> </script>
</%block> </%block>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment