Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- function tcb_ExpandToggle( id ) {
- var $t = jQuery( '#' + id.replace( '#', '' ) ),
- op = $t.data( 'tcb-op' ) || 'open',
- $a = $t.find( '.tve_faq' ),
- $o = $a.filter( '.tve_oFaq' ),
- $c = $a.not( '.tve_oFaq' );
- if ( $o.length === $a.length ) {
- op = 'c';
- } else if ( $o.length === 0 ) {
- op = 'o';
- }
- $t.data( 'tcb-op', op === 'o' ? 'c' : 'o' );
- ( op === 'o' ? $c : $o ).find( '.tve_faqB' ).click();
- return false;
- }</script>
- <div style="text-align: right">
- <a href="#" onclick="tcb_ExpandToggle('c-toggle')">Expand / hide all</a>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement