jQuery(document).ready(function() { // Add the 'less than IE9' class to appropriate version of IE by checking for their support of cssFloat (true in v9) if (!jQuery.support.cssFloat) { jQuery('html').addClass('lt-ie9').addClass('no-js'); } jQuery(document).foundation(function (response) { // console.log(response.errors); < this line will produce error in ie9! if (window.console) console.log(response.errors); }); // The Echo extension puts an item in personal tools that Foreground really should have in the top menu // to make this easier, we move it here and loaded earlier to speed up transform jQuery("#pt-notifications").prependTo("#echo-notifications"); // Append font-awesome icons jQuery('[id^=ca-nstab] a').prepend('
') jQuery('li#ca-talk a').prepend('
') jQuery('li#ca-edit a').prepend('
') jQuery('li#ca-viewsource a').prepend('
') jQuery('li#ca-form_edit a').prepend('
') jQuery('li#ca-history a').prepend('
') jQuery('li#ca-delete a').prepend('
') jQuery('li#ca-move a').prepend('
') jQuery('li#ca-protect a').prepend('
') jQuery('li#ca-unprotect a').prepend('
') jQuery('li#ca-watch a').prepend('
') jQuery('li#ca-unwatch a').prepend('
') jQuery('li#ca-purge a').prepend('
') jQuery('li#ca-undelete a').prepend('
') jQuery('li#ca-ask_delete_permanently a').prepend('
') if ( jQuery( '#ca-addsection' ).length ) { jQuery('li#ca-addsection a').html('
' + jQuery('li#ca-addsection a').attr('title').replace(/\[.+/g,"")) } jQuery('li#pt-uls a').prepend('
') jQuery('li#pt-userpage a').prepend('
') jQuery('li#pt-mytalk a').prepend('
') jQuery('li#pt-adminlinks a').prepend('
') jQuery('li#pt-preferences a').prepend('
') jQuery('li#pt-watchlist a').prepend('
') jQuery('li#pt-mycontris a').prepend('
') jQuery('li#pt-logout a').prepend('
') jQuery('li#t-smwbrowselink a').prepend('
') jQuery('li#t-whatlinkshere a').prepend('
') jQuery('li#t-blockip a').prepend('
') jQuery('li#t-recentchangeslinked a').prepend('
') jQuery('li#t-contributions a').prepend('
') jQuery('li#t-log a').prepend('
') jQuery('li#t-emailuser a').prepend('
') jQuery('li#t-userrights a').prepend('
') jQuery('li#t-upload a').prepend('
') jQuery('li#t-specialpages a').prepend('
') jQuery('li#t-print a').prepend('
') jQuery('li#t-permalink a').prepend('
') jQuery('li#t-info a').prepend('
') jQuery('li#feedlinks a').prepend('
') jQuery('li#n-recentchanges a').prepend('
') jQuery('li#n-help a').prepend('
') jQuery('li#n-randompage a').prepend('
') // Turn categories into labels jQuery('#mw-normal-catlinks ul li a').addClass('label'); // Make the Page Action button respond to hover });