Last active
September 19, 2023 14:12
-
-
Save Richienb/dab1a74851a863461fba90d1c519867b to your computer and use it in GitHub Desktop.
Google Translate Widget CDN
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){var gtConstEvalStartTime = new Date();function d(b){var a=document.getElementsByTagName("head")[0];a||(a=document.body.parentNode.appendChild(document.createElement("head")));a.appendChild(b)}function _loadJs(b){var a=document.createElement("script");a.type="text/javascript";a.charset="UTF-8";a.src=b;d(a)}function _loadCss(b){var a=document.createElement("link");a.type="text/css";a.rel="stylesheet";a.charset="UTF-8";a.href=b;d(a)}function _isNS(b){b=b.split(".");for(var a=window,c=0;c<b.length;++c)if(!(a=a[b[c]]))return!1;return!0} | |
function _setupNS(b){b=b.split(".");for(var a=window,c=0;c<b.length;++c)a.hasOwnProperty?a.hasOwnProperty(b[c])?a=a[b[c]]:a=a[b[c]]={}:a=a[b[c]]||(a[b[c]]={});return a}window.addEventListener&&"undefined"==typeof document.readyState&&window.addEventListener("DOMContentLoaded",function(){document.readyState="complete"},!1); | |
if (_isNS('google.translate.Element')){return}(function(){var c=_setupNS('google.translate._const');c._cest = gtConstEvalStartTime;gtConstEvalStartTime = undefined;c._cl='en';c._cuc='googleTranslateElementInit';c._cac='';c._cam='';c._ctkk='427471.2057189122';var h='translate.googleapis.com';var s=(true?'https':window.location.protocol=='https:'?'https':'http')+'://';var b=s+h;c._pah=h;c._pas=s;c._pbi=b+'/translate_static/img/te_bk.gif';c._pci=b+'/translate_static/img/te_ctrl3.gif';c._pli=b+'/translate_static/img/loading.gif';c._plla=h+'/translate_a/l';c._pmi=b+'/translate_static/img/mini_google.png';c._ps=b+'/translate_static/css/translateelement.css';c._puh='translate.google.com';_loadCss(c._ps);_loadJs(b+'/translate_static/js/element/main.js');})();})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){function d(a){var b=document.getElementsByTagName("head")[0];b||(b=document.body.parentNode.appendChild(document.createElement("head")));b.appendChild(a)}var e=new Date;window.addEventListener&&"undefined"==typeof document.readyState&&window.addEventListener("DOMContentLoaded",function(){document.readyState="complete"},!1);(function(a){a=a.split(".");for(var b=window,c=0;c<a.length;++c)if(!(b=b[a[c]]))return!1;return!0})("google.translate.Element")||function(){var a=["google","translate", | |
"_const"];for(var b=window,c=0;c<a.length;++c)b.hasOwnProperty?b.hasOwnProperty(a[c])?b=b[a[c]]:b=b[a[c]]={}:b=b[a[c]]||(b[a[c]]={});a=b;a.f=e;e=void 0;a.g="en";a.i="googleTranslateElementInit";a.b="";a.c="";a.h="427471.2057189122";a.j="translate.googleapis.com";a.l="https://";a.m="https://translate.googleapis.com/translate_static/img/te_bk.gif";a.o="https://translate.googleapis.com/translate_static/img/te_ctrl3.gif";a.s="https://translate.googleapis.com/translate_static/img/loading.gif";a.u="translate.googleapis.com/translate_a/l"; | |
a.v="https://translate.googleapis.com/translate_static/img/mini_google.png";a.a="https://translate.googleapis.com/translate_static/css/translateelement.css";a.w="translate.google.com";a=a.a;b=document.createElement("link");b.type="text/css";b.rel="stylesheet";b.charset="UTF-8";b.href=a;d(b);a=document.createElement("script");a.type="text/javascript";a.charset="UTF-8";a.src="https://translate.googleapis.com/translate_static/js/element/main.js";d(a)}()})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was using something similar, now https://translate.googleapis.com/translate_static/css/translateelement.css returns 404 :( any idea on an alternative?