MediaWiki:Common.js

Provided by The Reporters Committee for Freedom of the Press
Jump to navigation Jump to search

Note: After saving, 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: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* Any JavaScript here will be loaded for all users on every page load. */

var dSponsors = document.getElementById("p-Contributors");
var content = "<br>" + 
  "<div style='width:140px; padding:5px; display:block;'>" + 
  "<p style='padding-bottom:15px; text-align: left; font-size: 0.75em;'>Contributors:</p>" +
  "<p style='padding-bottom:15px; text-align: center; font-size: 0.75em;'><a href='https://www.rcfp.org'><img src='/w/images/rcfp_logo.png' style='width:100px;'></a></p>" +
  "<p style='padding-bottom:15px; text-align: center; font-size: 0.75em;'><a href='http://foiaproject.org'><img src='/w/images/FOIA_Project_logo.png' style='width:100px;'></a></p>" +
  "<p style='padding-bottom:15px; text-align: center; font-size: 0.75em;'><a href='http://trac.syr.edu/'><img src='/w/images/trac_logo.png' style='width:100px;'></a></p>" +
  "<p style='padding-bottom:15px; text-align: center; font-size: 0.75em;'><a href='https://www.muckrock.com/'><img src='/w/images/muckrock_logo.png' style='width:100px;'></a></p>" +
  "<p style='padding-bottom:15px; text-align: center; font-size: 0.75em;'><a href='https://nsarchive.gwu.edu/'><img src='/w/images/NSArchive_logo.png' style='width:100px;'></a></p>" +
  "<p style='padding-bottom:15px; text-align: center; font-size: 0.75em;'><a href='https://foiamapper.com/'><img src='/w/images/foia-mapper-icon.png' style='width:60px;'><br>FOIA Mapper</a></p>" +
  "<p style='padding-bottom:15px; text-align: center; font-size: 0.75em;'><a href='https://www.openthegovernment.org/'><img src='/w/images/otg-logo.png' style='width:100px;'></a></p>" +
  "</div>";
dSponsors.innerHTML = content;