anasp

Flux translate script and css

Apr 15th, 2022 (edited)
471
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.08 KB | None | 0 0
  1. <!-- flux translate script and css -->
  2.  
  3. <style>
  4. #google_translate_element {position:relative}
  5.  
  6. #google_translate_element span {display: none!important; }
  7.  
  8. #google_translate_element:after {
  9. content: "";
  10.   bottom:0;
  11.   left:0;
  12.   width:100%;
  13.   background:#000000;
  14.   position: absolute;
  15.   z-index: 1;
  16.   height: 40%;
  17.  
  18. }
  19.  
  20.  
  21.  
  22. .goog-te-banner-frame.skiptranslate {display: none!important; visibility: hidden!important;}
  23.  
  24.   /* Disable google translate original text tooltips */  
  25. #goog-gt-tt, .goog-te-balloon-frame{display: none !important;}
  26. .goog-text-highlight { background: none !important; box-shadow: none !important;}
  27.    
  28. </style>
  29.  
  30.  <script type="text/javascript">
  31.  function googleTranslateElementInit() {
  32.  new google.translate.TranslateElement({ pageLanguage: "en", includedLanguages : 'en,fr,de,it,es,ru,ar,ja,pt,zh-cn,zh-tw,hi,mk,el,cs,pl,ro,nl,da,sv,iw' }, "google_translate_element");
  33.  };
  34. </script>
  35. <script src="https://uploads-ssl.webflow.com/5e6cdff43dea835e0d32f309/5e6ce61775d1ae4d0299ac82_translator.txt"></script>
  36.  
  37. <!-- flux script translate and css END -->
Add Comment
Please, Sign In to add comment