| 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/members.sinnsagexxx.com/public_html/js/ |
Upload File : |
$( 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 = null;
this.stdthis = function(){
if (idx == null)
{
return;
}
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);
}
// Determines the image zoom level
// If iwidth and swidth aren't passed along, this is a general purpose
// combination of retina level * zoom level
// If iwidth and width are passed along, the zoom level
// for an individual image is calculated.
function pixelRatioZoom(iwidth, swidth)
{
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;
ret = zm * dpr * zr;
if (typeof iwidth == "undefined" || iwidth == 0)
{
return ret;
}
if (typeof swidth == "undefined" || swidth == 0)
{
return ret;
}
// If the image display width and the actual image width are defined, factor that into image zoom.
return zm * dpr * zr * (iwidth / swidth);
}
// Given an image, calculate the zoom level for the image
// And subsequently, what suffix it recommends.
function getSuffixFileZoom(v)
{
var ret = {};
ret.zoom = pixelRatioZoom(v.width, $(v).attr("src0_1x_width"))
ret.suffix = "_1x";
ret.src="";
// Uncomment this if you want to disable retina images.
// Uncomment and change to 2.0 if you want to force retina images.
// ret.zoom = 1.0;
if (ret.zoom > 3.3 && ($(v).attr("src0_4x") != undefined))
{
ret.src = $(v).attr("src0_4x");
ret.suffix = "_4x"
}
else if (ret.zoom > 2.3 && ($(v).attr("src0_3x") != undefined))
{
ret.src = $(v).attr("src0_3x");
ret.suffix = "_3x"
}
else if (ret.zoom > 1.3 && ($(v).attr("src0_2x") != undefined))
{
ret.src = $(v).attr("src0_2x");
ret.suffix = "_2x"
}
else
{
if ($(v).attr("src0_1x") != undefined)
{
ret.src = $(v).attr("src0_1x");
}
else
{
ret.src = $(v).attr("src0");
}
}
return ret;
}
suffix = "_1x";
var zoom = pixelRatioZoom();
var z_w = NaN;
var z_h = NaN;
try
{
z_w = window.innerWidth;
z_h = window.innerHeight;
}
catch(e)
{
alert(e)
}
function szhandler()
{
var newzoom = pixelRatioZoom();
var z_nw = NaN;
var z_nh = NaN;
try
{
z_nw = window.innerWidth;
z_nh = window.innerHeight;
}
catch(e)
{
return;
}
if (isNaN(z_w) || isNaN(z_h) || isNaN(z_nw) || isNaN(z_nh))
{
return;
}
// If this is just scrolling, return
// If zooming or resizing, do not return.
if ((z_w == z_nw) && (z_h == z_nh) && (newzoom == zoom))
{
return;
}
z_w = z_nw;
z_h = z_nh;
zoom = newzoom
$(".stdimage").each(function(index) {
o_img = $(this).attr("src");
var imageinfo = getSuffixFileZoom(this);
n_img = imageinfo.src;
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() {
$(".stdimage").each(function(index) {
var imageinfo = getSuffixFileZoom(this);
$(this).attr("src", imageinfo.src);
});
$(".stdimage").each(function(index) {
cnt = $(this).attr('cnt')
if (cnt < 2)
{
return;
}
// Test for touch device support.
var is_touch_device = function() {
var prefixes = ' -webkit- -moz- -o- -ms- '.split(' ');
var mq = function(query) {
return window.matchMedia(query).matches;
}
if (('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch) {
return true;
}
// include the 'heartz' as a way to have a non matching MQ to help terminate the join
// https://git.io/vznFH
var query = ['(', prefixes.join('touch-enabled),('), 'heartz', ')'].join('');
return mq(query);
}
if (is_touch_device())
{
return;
}
var imageinfo = getSuffixFileZoom(this);
var suffix = imageinfo.suffix;
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);
if (cnt < 2)
{
return;
}
var imageinfo = getSuffixFileZoom(this);
var suffix = imageinfo.suffix;
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;
}
var imageinfo = getSuffixFileZoom(this);
var suffix = imageinfo.suffix;
$(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 = null;
});
}