MediaWiki:Common.js

From CommunityData
Revision as of 18:53, 22 January 2017 by Benjamin Mako Hill (talk | contribs)

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.
/* Any JavaScript here will be loaded for all users on every page load. */

var navbarHtml = '<div style="width:400px;height:80px;-webkit-border-radius: 0px 0px 25px 25px;-moz-border-radius: 0px 0px 25px 25px;border-radius: 0px 0px 25px 25px;border:2px solid #A7D7F9;background-color:#FFFFFF;-webkit-box-shadow: #B3B3B3 1px 1px 1px;-moz-box-shadow: #B3B3B3 1px 1px 1px; box-shadow: #B3B3B3 1px 1px 1px; transform: translate(-50%, -50%);text-align: center; font-weight: bold;">' + 
    '<div style="position: inherit; top: 50px; width: 100%;">' +
        '<a href="/Community_Data_Science_Workshops">Courses</a> | <a href="/Community_Data_Science_Workshops">Workshops</a> | <a href="/People">People</a>' +
    '</div>' +
'</div>'

$('content').prepend(navbarHtml);