PHP Classes

File: site.min.js

Recommend this page to a friend!
  Classes of Gourab Singha   Easy Website Translation Script   site.min.js   Download  
File: site.min.js
Role: Auxiliary data
Content type: text/plain
Description: Javascript
Class: Easy Website Translation Script
Translate pages automatically using jQuery plug-in
Author: By
Last change:
Date: 14 years ago
Size: 2,275 bytes
 

Contents

Class file image Download
function translateTo(a){ $("body").translate("english",a,{not:"#menu, pre, .jq-translate-ui"})} $(document).ready(function(){ if($("#search").length>0){ $("#translate").empty(); $.getScript("http://www.google.com/jsapi",function(){google.load("search","1",{callback:function(){new google.search.CustomSearchControl("006642745289971045904:gieh-hxojic").draw("search")}})})} else{$.translate(function(){$("#translate").empty(); $.translate.ui("select","option").change(function(){ window.location.reload(); var b=$(this).val();translateTo(b); $.cookie("destLang",b,{path:"/"})}).val("English").appendTo("#translate"); $.translate.getBranding().appendTo($("#translate")); var a=$.cookie("destLang"); if(a&&a!="English"){$(".jq-translate-ui").val(a); translateTo(a) }})}});