403Webshell
Server IP : 208.122.213.31  /  Your IP : 216.73.216.185
Web Server : Apache
System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64
User : WHMCS_MIA_382 ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/httpd/html/kortneykane.com/public_html/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/kortneykane.com/public_html/js/tourhelper.js
function CreateBookmarkLink() 
{
	 title = document.title; 
	 url = location.href;

	 if (window.sidebar) 
	 { 
		window.sidebar.addPanel(title, url,"");
	 } 
     else if( window.external ) 
	 {
		window.external.AddFavorite( url, title); 
	 }
	 else if(window.opera && window.print) 
	 {
		alert("Your browser does not support adding bookmarks by clicking web links.  Please bookmark this link manually.")
		return true; 
	 }
}



this.imagePreview = function(){	
	/* CONFIG */
		
		c_top = "";
		c_left = "";
		c_right = "";
		c_bottom = "";

		currelem = null;

		t_width = 0;

		timeoutId1 = null;
		timeoutId2 = null;
	
		touchart = 0;


		var ua = navigator.userAgent;
		var isiPad = /iPad/i.test(ua) || /iPhone OS 3_1_2/i.test(ua) || /iPhone OS 3_2_2/i.test(ua);


		var fingerC = 0;


	// If we're on an iDevice, don't go to the URL directly,
	// and rely on double-tap in order to follow through.

	$(".elevpreview").bind("click", (function(e){

		return (isiPad) ? false : true;

	}));


	// If anywhere on the screen is touched
	// it should close any popup windows as long as
	// The element touched isn't part of .elevpreview

	$("body").bind("touchstart", (function(e){

		if (touchart == 0)
		{
			if (timeoutId1 != null)
			{
				currelem = null;
				window.clearTimeout(timeoutId1);  
			}

			if (timeoutId2 != null)
			{
				hoverout(this);
				window.clearTimeout(timeoutId2);
			}
		}
		touchart = 0;
	}));

	// This handles what happens when clicking on the preview element
	// on an iDevice

	$(".elevpreview").bind("touchstart", (function(e){

		touchart = 1;
		fingerC = event.touches.length;

		if (fingerC == 1)
		{
			if (timeoutId2 != null)
			{
				hoverout(this);
			}
	
			window.clearTimeout(timeoutId1);  
			window.clearTimeout(timeoutId2);


			event.preventDefault();
	
		  	if (currelem == $(this).attr("tooltip") )
			{
				document.location = $(this).attr("href");
			}
			else
			{
				onhover(e, this);
			}
		}

	}));

	/* END CONFIG */
	$(".elevpreview").bind("touchcancel", (function(e){

		event.preventDefault();
		timeoutId1 = window.setTimeout(clearcurrelem, 300, true);
		timeoutId2 = window.setTimeout(clearhover, 5000, true);

		return false;
	}));


	$(".elevpreview").bind("touchend", (function(e){

			if (event.touches.length == 0)
			{
				event.preventDefault();
				timeoutId1 = window.setTimeout(clearcurrelem, 300, true);
				timeoutId2 = window.setTimeout(clearhover, 5000, true);
			}
	}));

	function clearcurrelem()
	{
		currelem = null;
	}

	function clearhover()
	{
		hoverout(this);
	}


	function onhover(e, ths)
	{
		ths.t = ths.title;
		ths.title = "";

		var txn = $(ths).attr('tooltip')

		if ($(ths).attr('offset_top'))
		{
			c_top = parseInt($(ths).attr('offset_top'))
		}

		if ($(ths).attr('offset_bottom'))
		{
			c_bottom = parseInt($(ths).attr('offset_bottom'))
		}

		if ($(ths).attr('offset_left'))
		{
			c_left = parseInt($(ths).attr('offset_left'))
		}

		if ($(ths).attr('offset_right'))
		{
			c_right = parseInt($(ths).attr('offset_right'))
		}

		if ($(ths).attr('tooltip_width'))
		{
			t_width = parseInt($(ths).attr('tooltip_width'))
		}
		else
		{
			t_width = $("#preview").width();
		}

		var txt = "<p id='preview'>" + $("#"+txn).html() + "</p>"

		$("body").append(txt);						 

		position = $(ths).position();
		pageY = position.top;
		pageX = position.left;

		if (c_bottom != "")
			$("#preview").css("top",(pageY + c_bottom) + "px");

		if (c_right != "")
			$("#preview").css("left",(pageX + c_right) + "px");

		if (c_left != "")
			$("#preview").css("left",(pageX - c_left - t_width) + "px");

		if (c_top != "")
			$("#preview").css("top",(pageY - c_top - $("#preview").height()) + "px");

		if (t_width != 0)
		{
			$("#preview").css("width", t_width + "px");
			$("#preview").css("max-width", t_width + "px");
		}

		$("#preview").animate({opacity: "0.8"}, 1);

		if (!isiPad)
		{
			$(".tabletlink").css("display", "none");
		}

		$("#preview").fadeIn("fast");

		currelem = $(ths).attr("tooltip")
	}

	function hoverout(ths)
	{
		ths.title = ths.t;	
		$("#preview").remove();
	}


	$(".elevpreview").hover(function(e){
		onhover(e, this);
    },
	function(){
		hoverout(this);
    });	


};


var interv;
var ax = []
var idx = ""


this.stdthis = function(){

	cnt = $('#'+idx).attr('cnt');
	v = $('#'+idx).attr('v');
	v = parseInt(v);
	v = (v + 1) % cnt;

	sr = ax[v]

	$('#'+idx).attr('v', v);
	$('#'+idx).attr('src', sr);
}


function pixelRatioZoom()
{
	zr = 1;
	
	if (!!("undefined" != typeof document.documentElement.ontouchstart))
	{
		zr = screen.width / $(window).width();		
	}
	
	var dpr = (window.devicePixelRatio) ? window.devicePixelRatio : 1;
	var zm = document.documentElement.clientWidth / window.innerWidth;
	
	return zm * dpr * zr;	
}


suffix = "_1x";

var zoom = pixelRatioZoom();

function szhandler()
{
    var newzoom = pixelRatioZoom();
    if (newzoom == zoom)
    {
	    return;
    }
    
    var newsuffix = suffix;
       
       
    
	zoom = newzoom

	// console.log(zoom);

	if (zoom > 3.3)
	{
		newsuffix = "_4x"
	}
	else if (zoom > 2.3)
	{
		newsuffix = "_3x"
	}
	else if (zoom > 1.3)
	{
		newsuffix = "_2x";
	}
	else
	{
		newsuffix = "_1x";			
	}

    if (suffix != newsuffix)
    {    
	    suffix = newsuffix
	    
		$(".stdimage").each(function(index) {
	
			o_img = $(this).attr("src")		

			var clp = "";
			
			
			if (zoom > 3.3 && ($(this).attr("src0_4x") != undefined))
			{		
				clp = "src0_4x";
			}
			else if (zoom > 2.3 && ($(this).attr("src0_3x") != undefined))
			{		
				clp = "src0_3x";
			}
			else if ((zoom > 1.3) && ($(this).attr("src0_2x") != undefined))
			{			
				clp = "src0_2x";
			}
			else if ($(this).attr("src0_1x") != undefined)
			{
				clp = "src0_1x";
			}

			if (clp != "")
			{
				n_img = $(this).attr(clp);
				
				if (n_img != o_img)
				{
					imgx = new Image();
					imgx.stor = this;
					 
					$(imgx)
					  .load(function () {
//					  	  console.log("Loaded " + this.src);
						  $(this.stor).attr("src", this.src)
					  })
					  .error(function () {
//					  	  console.log("failed to load " + this.src);
					  })
					  // *finally*, set the src attribute of the new image to our image
					  .attr('src', n_img);

				}
			}			
		});
	
	}

}


// zoom / scroll handler.

sch = 0;

if (sch == 0)
{
	try
	{
		document.addEventListener("scroll", szhandler, true);
		sch = 1;
	}
	catch(e) {}
}

if (sch == 0)
{
	try
	{
		window.attachEvent ("onscroll", szhandler);
		sch = 1;
	}
	catch(e) {}
}

$(window).resize(function() {
	szhandler();
});

$( document ).ready(function() {
	StdImageHandler();
});


this.StdImageHandler = function(){	

	imgs = [];

	is_2x = false;
	suffix = "_1x";

	$(".stdimage").ready(function() {

		if (zoom > 3.3)
		{
			suffix = "_4x"
		}		
		else if (zoom > 2.3)
		{
			suffix = "_3x"
		}
		else if (zoom > 1.3)
		{
			suffix = "_2x";
		}
		else
		{
			suffix = "_1x";			
		}
		

		$(".stdimage").each(function(index) {

			var clp = "";
			
			
			if (zoom > 3.3 && ($(this).attr("src0_4x") != undefined))
			{		
				clp = "src0_4x";
			}
			else if (zoom > 2.3 && ($(this).attr("src0_3x") != undefined))
			{		
				clp = "src0_3x";
			}
			else if ((zoom > 1.3) && ($(this).attr("src0_2x") != undefined))
			{			
				clp = "src0_2x";
			}
			else if ($(this).attr("src0_1x") != undefined)
			{
				clp = "src0_1x";
			}
			else
			{
				clp = "src0"
			}


			if (clp != "")
			{
				cls = $(this).attr(clp);

				imgx = new Image();
				imgx.stor = this;
				 
				$(imgx)
				  .load(function () {
					  $(this.stor).attr("src", this.src)
				  })
				  .error(function () {
//				  	  console.log("failed to load " + this.src);
				  })
				  // *finally*, set the src attribute of the new image to our image
				  .attr('src', cls);
			}

		});


		$(".stdimage").each(function(index) {
			cnt = $(this).attr('cnt')
	
			if (cnt < 2)
			{
				return;
			}
						
			for(c=0; c < cnt; c++)
			{
				if ( $(this).attr('src' + c + suffix) != undefined )
				{
					itr = imgs.length;
					imgs[itr] = new Image;				
					imgs[itr].src = $(this).attr('src' + c + suffix)					
				}

				if ( $(this).attr('src' + c) != undefined )
				{
					itr = imgs.length;
					imgs[itr] = new Image;				
					imgs[itr].src = $(this).attr('src' + c)					
				}
			}
		});	

	});	
	

}





Youez - 2016 - github.com/yon3zu
LinuXploit