MediaWiki:Common.js: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
addOnloadHook(function($){
addOnloadHook(function($){
     return function(){
     return function(){
         $('body').append('<ul id="widgit"><li><a href="http://www.google.com/translate?sl=auto&tl=en&u=' + encodeURIComponent(document.URL) + '" title="Translate by Google" alt="Translate by Google"></a></li></ul>');
         $('body').append('<span id="widgit"><a href="http://www.google.com/translate?sl=auto&tl=en&u=' + encodeURIComponent(document.URL) + '" title="Translate by Google" alt="Translate by Google"></a></span>');
     }
     }
}(jQuery));
}(jQuery));