MediaWiki:Common.js

From UniWiki
Revision as of 12:19, 17 August 2017 by Johnlund (talk | contribs)
Jump to: navigation, 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: 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. */
$.getScript('https://use.fontawesome.com/0de249b6d4.js', function()
{
    $(function () {
        $('#main_buttons').html('<div><div style="display:inline-block;margin-right:15px;"><p>Take the Survey</p><a class="button" href="https://uniwiki.org/wiki/Introductory_Survey"><i class="fa fa-file-text-o fa-2x" aria-hidden="true"></i></a></div><div style="display:inline-block;margin-right:15px;"><p>Create your Account</p><a class="button" href="https://uniwiki.org/wiki/Special:CreateAccount"><i class="fa fa-id-card-o fa-2x" aria-hidden="true"></i></a></div><div style="display:inline-block;margin-right:15px;"><p>Learn & Contribute</p><a class="button" href="https://uniwiki.org/wiki/Unity_Manifesto"><i class="fa fa-hand-rock-o fa-2x" aria-hidden="true"></i></a></div><div style="display:inline-block;margin-right:15px;"><p>The Unity Workshops</p><a class="button" href="https://uniwiki.org/wiki/UniWiki:The_Unity_Workshops"><i class="fa fa-cubes fa-2x" aria-hidden="true"></i></a></div><div style="display:inline-block;margin-right:15px;"><p>View Current Pages</p><a class="button" href="https://uniwiki.org/wiki/Special:PagesList"><i class="fa fa-folder-open-o fa-2x" aria-hidden="true"></i></a></div></div>');
        $('#workshops_buttons').html('<div><div style="display:inline-block;margin-right:15px;"><p>Join the Conversation</p><a class="button" href="https://unityprojectalk.slack.com/"><i class="fa fa-comments-o fa-2x" aria-hidden="true"></i></a></div><div style="display:inline-block;"><p>All about Portals</p><a class="button" href="https://uniwiki.org/wiki/Portals"><i class="fa fa-eercast fa-2x" aria-hidden="true"></i></a></div></div>');
    }());
});