Jump to content

MediaWiki:Common.js: Difference between revisions

From Event Gates Wiki
No edit summary
No edit summary
Line 1: Line 1:
$(function () {
$(function () {
  // Append a simple box with heading and paragraph inside the navigation sidebar
   $('#p-navigation').append(`
   $('#p-navigation .body').append(`
     <div id="p-custom-categorytree" style="padding:10px; border:1px solid #ccc; margin-top:10px;">
     <div id="p-test-portlet" style="padding:10px; border:1px solid #ccc; margin-top:10px;">
       <h3>Categories</h3>
       <h3>Test Portlet</h3>
       <p>Loading categories will go here</p>
       <p>This is a test content injected directly into the sidebar.</p>
     </div>
     </div>
   `);
   `);
  console.log('Injected test HTML into sidebar');
});
});

Revision as of 17:31, 3 July 2025

$(function () {
  $('#p-navigation').append(`
    <div id="p-custom-categorytree" style="padding:10px; border:1px solid #ccc; margin-top:10px;">
      <h3>Categories</h3>
      <p>Loading categories will go here</p>
    </div>
  `);
});