Difference between revisions of "MediaWiki:Common.js"
The Wiki of Unify contains information on clients and devices, communications systems and unified communications. - Unify GmbH & Co. KG is a Trademark Licensee of Siemens AG.
Line 16: | Line 16: | ||
/* Google Translate Start */ | /* Google Translate Start */ | ||
− | <div id="google_translate_element"></div><script> | + | </script><div id="google_translate_element"></div><script> |
function googleTranslateElementInit() { | function googleTranslateElementInit() { | ||
new google.translate.TranslateElement({ | new google.translate.TranslateElement({ | ||
Line 27: | Line 27: | ||
} | } | ||
</script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> | </script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> | ||
− | + | <script> | |
/* Google Translate End */ | /* Google Translate End */ |
Revision as of 12:26, 26 July 2011
/* Any JavaScript here will be loaded for all users on every page load. */ /* Google Analytics Start */ var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-20341701-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); /* Google Analytics End */ /* Google Translate Start */ </script><div id="google_translate_element"></div><script> function googleTranslateElementInit() { new google.translate.TranslateElement({ pageLanguage: 'en', multilanguagePage: true, gaTrack: true, gaId: 'UA-20341701-1', layout: google.translate.TranslateElement.InlineLayout.SIMPLE }, 'google_translate_element'); } </script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> <script> /* Google Translate End */