MediaWiki

Group-Grouse.js: Difference between revisions

From Grouse House Wiki

No edit summary
No edit summary
Line 5: Line 5:
         $headernameu = $headername.replace(" ", "_");
         $headernameu = $headername.replace(" ", "_");


         $('#' + $headernameu + '_2').css( 'color', 'red');
         $editelement = $('#' + $headernameu + '_2' span.mw-headline).siblings('.mw-editsection').html();


         $header.after($headername + "blah");
         $header.after($editelement + "blah");
     });
     });
  });
  });

Revision as of 01:05, 3 February 2024

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

        $editelement = $('#' + $headernameu + '_2' span.mw-headline).siblings('.mw-editsection').html();

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