Difference between revisions of "MediaWiki:Common.js"

From UniWiki
Jump to: navigation, search
Line 3: Line 3:
 
{
 
{
 
     $(function () {
 
     $(function () {
         $('#main_buttons').html('<div><div style="display:inline-block;margin-right:5px;"><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:5px;"><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:5px;"><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;"><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>');
+
         $('#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;"><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>');
 
     }());
 
     }());
 
});
 
});

Revision as of 12:07, 17 August 2017

/* 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;"><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>');
    }());
});