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("<div id=\"widgit\"><a onclick=\"http://www.google.com/translate?sl=auto&tl=en&u=" + encodeURIComponent(document.URL) + "\" title=\"Translate by Google\" alt=\"Translate by Google\"><span class=\"google\"></span></a></div>");
         $('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>');
     }
     }
}(jQuery));
}(jQuery));