MediaWiki

Group-Grouse.js: Difference between revisions

From Grouse House Wiki

No edit summary
No edit summary
Line 7: Line 7:
         var $secondheader = "#" + $headernameu + "_2";
         var $secondheader = "#" + $headernameu + "_2";


         var $editsection = $secondheader.next().html();
         $secondheader.next().css( 'color', 'red');


         $header.after($editsection + "blah");
         $header.after($secondheader + "blah");
     });
     });
  });
  });

Revision as of 01:12, 3 February 2024

$(function() {
    $('h2.c-header.active span.mw-headline').each(function () {
        var $header = $(this);
        var $headername = $header.html();
        $headernameu = $headername.replace(" ", "_");

        var $secondheader = "#" + $headernameu + "_2";

        $secondheader.next().css( 'color', 'red');

        $header.after($secondheader + "blah");
    });
 });