Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function($) {
- $.fn.orphans = function(){
- var txt = [];
- this.each(function(){$.each(this.childNodes, function() {
- if (this.nodeType == 3 && $.trim(this.nodeValue)) txt.push(this)
- })});
- return $(txt);
- };
- })(jQuery);
- ////////////////////////////
- $(function() {
- $('#content .expand').orphans().wrap('<a href="#" class="plussub" title="expand/collapse"></a>');
- $('div.accordion-sub:eq(0) ul').find('ul.collapse').hide();
- $('div.accordion-sub:eq(0) .expand').click(function() {
- $(this).toggleClass('open').siblings().removeClass('open').end()
- .find('ul').slideToggle(800);
- return true;
- });
- $(".block").click(function(){
- window.location=$(this).find("a").attr("href");
- return false;
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment