User:Ccdcoe530/common.js

From International cyber law: interactive toolkit
Revision as of 11:45, 20 March 2019 by Ccdcoe530 (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
$(document).ready(function () {
    // Add wrapping div for top navigation menu for better alignment
    $('#left-navigation, #right-navigation').wrapAll("<div class='navigation-wrapper' />");

    // Hide top banner text
    $('#mp-topbanner').hide();

    // Add wrapper divs to front-page sections
    $('#mp-tfa, #mp-tfa-h2').wrapAll("<div class='card-wrapper' />");
    $('#mp-itn, #mp-itn-h2').wrapAll("<div class='card-wrapper card-wrapper--gray' />");
    $('#mp-otd, #mp-otd-h2').wrapAll("<div class='card-wrapper' />");
});