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.siblings("div.mw-editsection").html();
         var $editsection = $secondheader.next();


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

Revision as of 01:10, 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";

        var $editsection = $secondheader.next();

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