Update js/main.js

This commit is contained in:
LEGALISE_PIRACY 2024-05-08 03:20:32 +00:00
parent aed61d8995
commit e660bb9756

View File

@ -195,3 +195,4 @@ cookieConsentStyle.href = "/js/cookieConsent.css";
cookieConsentStyle.rel = "stylesheet";
document.head.appendChild(cookieConsentStyle);
var translateDiv=document.createElement("div");translateDiv.id="google_translate_element",document.querySelector("footer").appendChild(translateDiv);var scriptElement=document.createElement("script");scriptElement.type="text/javascript",scriptElement.src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit",document.querySelector("footer").appendChild(scriptElement);function googleTranslateElementInit(){new google.translate.TranslateElement({pageLanguage:"en"},"google_translate_element")}