Login   Register  
PHP Classes
elePHPant
Icontem

File: site.min.js

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 5 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)
  																																																																																												   }})}});