? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/domains/happytokorea.com/public_html_bk/happyezystyle/js/
File Upload :
Current File : /home/admin/domains/happytokorea.com/public_html_bk/happyezystyle/js/global.js

// JavaScript Document

var ROOT;

HOST=window.location.hostname;
if(HOST=='www.indexlivingmall.com' || HOST=='indexlivingmall.com'){
	ROOT='/';
}else{
	ROOT='/indexlivingmall/';
}


/* change lang */
function langEn() {

var url=document.URL;
url =(url).replace('#1','');
countstr=url.length;
data=url.substr(countstr-1);

if(data=='/'){
url=url+'index.php';
}

sp_url=url.split("."); 
pointtype=(sp_url.length)-1;

type=sp_url[pointtype];
newurl =url.replace('.'+type,'-en.'+type);
window.location=newurl;
//alert(newurl);
}
function langTh() {
		var url=document.URL;
			url =(url).replace('#1','');
			newurl =(url).replace('-en','');
			window.location=newurl;
}

function fnProvinceEn(val,target){
			  		
  var val
  var target

  queryStr="val="+val+"&target="+target;

		$.ajax({
		type: "POST",
		url: "../member/lib/district-en.php",
		cache: false,
		data: queryStr,
			success: function(response){
			setTimeout("finishListP('"+escape(response)+"', '"+escape(target)+"')", 0);
			}
		});

}

function fnProvince(val,target){
			  		
  var val
  var target

  queryStr="val="+val+"&target="+target;

		$.ajax({
		type: "POST",
		url: "../member/lib/district.php",
		cache: false,
		data: queryStr,
			success: function(response){
			setTimeout("finishListP('"+escape(response)+"', '"+escape(target)+"')", 0);
			}
		});

}
function finishListP(response, target) {
  $('#'+target).html(unescape(response));
  //$('#'+target).html(unescape(response));
  //$('#'+target).show();
}

function fnMore(id){
	$("."+id).css("display","block");
}


      function isNumberKey(evt)
      {
         var charCode = (evt.which) ? evt.which : event.keyCode
         if (charCode > 31 && (charCode < 48 || charCode > 57))
            return false;

         return true;
      }

function fnShowSort(){
	var divShow=document.getElementById('listSort').style.display;
	if(divShow=='none'){
	//document.getElementById('imgSort').src="../engine/global/tnSort_on.gif";
	var curleft = leftPos = w = curtop = 0;
	var obj= document.getElementById('boxSort');
	if (obj.offsetParent) {
		do {
				curleft += obj.offsetLeft;
				curtop += obj.offsetTop;
		} while (obj = obj.offsetParent);
	}
	document.getElementById('listSort').style.display='';
		if(navigator.appName == "Microsoft Internet Explorer"){
			document.getElementById('listSort').style.top=curtop+30+"px";
		}else{
			document.getElementById('listSort').style.top=curtop+27+"px";
		}
	document.getElementById('listSort').style.left=curleft + 5 +"px";
	}else{
		document.getElementById('listSort').style.display='none';
		//document.getElementById('imgSort').src="../engine/global/tnSort_off.gif";
	}
}


function fnShowMenu(id){
	fnHideMenu();
    $("#SubMenu"+id).css("display","");
	$("#boxSubMenu"+id).css("display","");
	document.getElementById("SubMenu"+id).style.visibility='visible';
	document.getElementById("boxSubMenu"+id).style.visibility='visible';
}

function fnHideMenu(){
	$(".menuHover").css("display","none");
	$(".boxMenu").css("display","none");
}

function fnSMenu(){
	
	var imgSrc=document.getElementById("imgSwapMenu").src;
	var a=imgSrc.substr((imgSrc.length-8),8);

	if(a=="Show.gif"){
		document.getElementById("imgSwapMenu").src=ROOT+'common/nav/navMain-Hide.gif';
	}else{
		document.getElementById("imgSwapMenu").src=ROOT+'common/nav/navMain-Show.gif';
	}
	$("#hMenu").toggle();
}
function imgSwap(oImg)
{
   var strOver  = "_on"    // image to be used with mouse over
   var strOff = "_off"     // normal image
   var strImg = oImg.src
   if (strImg.indexOf(strOver) != -1) 
      oImg.src = strImg.replace(strOver,strOff);
   else
      oImg.src = strImg.replace(strOff,strOver);
}
function fnBestSeller(id){
	for(i=1;i<=3;i++){
		if(id!=i){
			if(document.getElementById('img'+i).style.display=='' || document.getElementById('img'+i).style.display=='block' ){
				document.getElementById('name'+i).style.background='url('+ROOT+'common/img/index/bestseller-tab'+i+'-Off.jpg) no-repeat';
				$('#img'+i).slideUp(500);
			}
		}
	}
	document.getElementById('name'+id).style.background='url('+ROOT+'common/img/index/bestseller-tab'+id+'-On.jpg) no-repeat';
	$('#img'+id).slideDown(500);
}
function fnEnewsEn(){
	tb_show('', ROOT+'lib/enewletter-en.php?height=300&width=410', '') ;
	$('#TB_title').hide();
}
function fnEnews(){
	tb_show('', ROOT+'lib/enewletter.php?height=200&width=410', '') ;
	$('#TB_title').hide();
}
function fnJoyCardEn(){
	tb_show('', ROOT+'member/joycard-en.php?height=260&width=330', '') ;
	$('#TB_title').hide();
}
function fnJoyCard(){
	tb_show('', ROOT+'member/joycard.php?height=260&width=330', '') ;
	$('#TB_title').hide();
}
function showImgEn(id,img){
	window.open (ROOT+"product/popup-en.php?id="+id,"mywindow","width=620,height=650");
}
function showImg(id,img){
	window.open (ROOT+"product/popup.php?id="+id,"mywindow","width=620,height=650");
}
function fnFeedback(){
	tb_show('', ROOT+'ssi/feedback.php?height=540&width=360', '') ;
	$('#TB_title').hide();
}

T1KUS90T
  root-grov@210.1.60.28:~$