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.
(Created page with "→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']); ...") |
|||
| Line 13: | Line 13: | ||
/* Google Analytics End */ | /* Google Analytics End */ | ||
| + | |||
| + | |||
| + | /* Google Translate Start */ | ||
| + | <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> | ||
| + | |||
| + | /* Google Translate End */ | ||
Revision as of 12:12, 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 */
<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>
/* Google Translate End */



