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("
         $('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>");
    <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>");
     }
     }
}(jQuery));
}(jQuery));