asiaH2/modules/faq/faq_index2.html.erb

30 lines
830 B
Plaintext
Raw Normal View History

2021-04-19 02:04:27 +00:00
<div class="index-faqs index2">
<h1 class="index-title">
<span>{{page-title}}</span>
</h1>
<ul class="list-unstyled" data-list="faqs" data-level="0">
<li class="index-content">
<h4>
<span class="index-content-title">{{question}}</span>
<span data-list="statuses" data-level="1">
<span class="label status {{status-class}}">{{status}}</span>
</span>
</h4>
<section class="post">
<p>{{answer}}</p>
</section>
</li>
</ul>
</div>
{{pagination_goes_here}}
<script>
$('.index-faqs.index2 .index-content h4').click(function(){
$('section.post').slideUp(200);
$(this).removeClass('open');
if($("+section",this).css("display")=="none"){
$("+section",this).slideDown(300);
$(this).addClass("open");
}
})
2020-04-09 10:46:42 +00:00
</script>