MediaWiki

Group-Grouse.js: Difference between revisions

From Grouse House Wiki

No edit summary
No edit summary
Line 2: Line 2:
     $('h2.c-header.active').each(function () {
     $('h2.c-header.active').each(function () {
         var $header = $(this);
         var $header = $(this);
         var $headername = $header.html()
         var $headername = $header.html();
         console.log($headername);
         console.log($headername);
$elem.after('<div class="space"></div>');
$elem.after('<div class="space"></div>');
     });
     });
  });
  });

Revision as of 00:30, 3 February 2024

$(function() {
    $('h2.c-header.active').each(function () {
        var $header = $(this);
        var $headername = $header.html();
        console.log($headername);
$elem.after('<div class="space"></div>');
    });
 });