AnonSec Shell
Server IP : 149.202.105.228  /  Your IP : 216.73.216.18
Web Server : Apache
System : Linux webm129.cluster030.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User : atfycaf ( 116275)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/atfycaf/www/js/jsF/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/atfycaf/www/js/jsF/global.js
var thisURL = "/";
var currentDomain = window.location.href;
var thisLang;
function googleTranslateElementInit() {
	new google.translate.TranslateElement({
		pageLanguage: 'en',
		includedLanguages: 'en,es',
		layout: google.translate.TranslateElement.InlineLayout.SIMPLE,
		autoDisplay: false
	}, 'google_translate_element');
}

window.gtranslateSettings = {"default_language":"en","native_language_names":true,"detect_browser_language":true,"languages":["en","es"],"wrapper_selector":".gtranslate_wrapper","flag_style":"3d"};

$(document).ready(function() {
/*
	$(document).on("click", "#langBtn a", function() {
		var lang = $(this).data("lang");
		var langAlt = $(this).data("langalt");
		var $frame = $(".goog-te-menu-frame:first");
		$(".languageMenu img").removeClass("languageSelected");
		$(".lang" + lang).addClass("languageSelected");
		if (!$frame.size()) {
//			alert("Error: Could not find Google translate frame.");
			return false;
		}
		if (lang == "English") {
			$(".goog-te-banner-frame:first").contents().find(".goog-te-button div button").click();
		} else {
			var stdResult = $frame.contents().find(".goog-te-menu2-item span.text:contains(" + lang + ")");
			if (stdResult.length) {
				$frame.contents().find(".goog-te-menu2-item span.text:contains(" + lang + ")").get(0).click();
			} else {
				$frame.contents().find(".goog-te-menu2-item span.text:contains(" + langAlt + ")").get(0).click();
			}
		}
		$("#langEnglish, #langSpanish").removeClass("langSelected");
		$("#lang" + lang).addClass("langSelected");			
		return false;
	});
	setTimeout(function(){
		if ($(".goog-te-banner-frame").length) {
			$("#langSpanish").addClass("langSelected");
		} else if ($(".goog-te-menu-frame").length) {
			$("#langEnglish").addClass("langSelected");
		} else {
			$("#langEnglish, #langSpanish").addClass("langSelected");
		}
	},5000);
*/
	if ($("#cookieUseContainer").length) {
		$("#cookieUseContainer").delay(2000).fadeIn('slow');
	}
	$(document).on("click", "#cookieContinue", function() {
		$.ajax({
			type: "GET",
			url: "/cookieContinue.php",
			cache: false,
			success: function(continueBrowsing) {
				$("#cookieUseContainer").fadeOut('slow');
			}
		});
	});
	$(document).on("click", "#cookieRefuse", function() {
		$("#cookieUseContainer").fadeOut('slow');
	});
	$(document).on("click", "#showMenu", function() {
		var isOpen = $(this).hasClass("is-active");
		if (isOpen == false) {
			$("nav").addClass("is-active");
			$(this).addClass("is-active");
			$("body").addClass("fixed");
		} else {
			$("nav").removeClass("is-active");
			$(this).removeClass("is-active");
			$("body").removeClass("fixed");
		}
	});
	$(document).on("click", "#mainMenu a", function () {
		var thisChildMenu = $(this).siblings(".ddMenu");
		var thisLink = $(this).attr("href");
		var thisIcon = $(this).children(".moreArrow").children("i");
		if (thisChildMenu.length) {
			var menuDisp = thisChildMenu.css('display');
			if (menuDisp == "block" || menuDisp == null) {
				if (thisLink === undefined) {
					thisIcon.removeClass("fa-caret-up");
					thisIcon.addClass("fa-caret-down");
					thisChildMenu.slideUp("slow");
				} else {
					return true;
				}
			} else {
				thisIcon.removeClass("fa-caret-down");
				if (thisLink === undefined) {
					thisIcon.addClass("fa-caret-up");
				} else {
					thisIcon.addClass("fa-caret-right");
				}
				var thisParentMenu = $(this).parents(".ddMenu");
				var otherMenus = $(".ddMenu").not(thisParentMenu).not(thisChildMenu);
				otherMenus.siblings("a").children(".moreArrow").children("i");
				otherMenus.each(function(index, element) {
					$(this).slideUp("slow");
					$(this).siblings("a").children(".moreArrow").children("i").removeClass("fa-caret-up");
					$(this).siblings("a").children(".moreArrow").children("i").removeClass("fa-caret-right");
					$(this).siblings("a").children(".moreArrow").children("i").addClass("fa-caret-down");
				});
				thisChildMenu.slideDown("slow");
				return false;
			}
		} else {
			return true;
		}
	});
	$(document).on("click", "#menuLogin", function() {
		$("body").append('<div id="loginBGContainer"><div id="loginBG"></div></div>');
		$("body").addClass("fixed");
		$.ajax({
			type:"GET",
			url: "/loginForm.html",
			cache:false,
			success:function(loginForm) {
				$("#loginBG").html(loginForm);
				$("#loginBGContainer").addClass("unfold").delay(1000).queue(function(){
					var popHeight = $("#loginContainer").height();
					$("#loginSignupContainer").height(popHeight);
				});
				$("nav").removeClass("is-active");
				$("#showMenu").removeClass("is-active");
			}
		});
	});
	$(document).on("click", "#forgotPass", function() {
		$("#loginContainer").removeClass("signupShowContainer");
		$("#loginHelpContainer").addClass("signupShowContainer");
		var popHeight = $("#loginHelpContainer").height();
		$("#loginSignupContainer").height(popHeight);
	});
	$(document).on("click", "#loginBack, #loginRem", function() {
		$("#loginHelpContainer").removeClass("signupShowContainer");
		$("#loginContainer").addClass("signupShowContainer");
		var popHeight = $("#loginContainer").height();
		$("#loginSignupContainer").height(popHeight);
	});
	$(document).on("click", "#loginBG", function(e) {
		var thisID = $(e.target).attr('id');
		if (thisID == "loginBG") {
			$("#loginBGContainer").addClass("out");
			setTimeout(function() {
				$("#loginBGContainer").removeClass("unfold").removeClass("out");
				$("#loginBG").html("");
				$("body").removeClass("fixed");
				$("#loginBGContainer").remove();
			}, 1200);
		}
	});
	$(document).on("click", "#closeLogin", function() {
		$("#loginBGContainer").addClass("out");
		setTimeout(function() {
			$("#loginBGContainer").removeClass("unfold").removeClass("out");
			$("#loginBG").html("");
			$("body").removeClass("fixed");
			$("#loginBGContainer").remove();
		}, 1200);
	});
	$(document).on("click", ".showPass", function() {
		var cT = $(this).prev().attr("type");
		if (cT == "password") {
			$(this).prev().attr("type", "text"); 
			$(this).html('<i class="fa fa-eye" aria-hidden="true"></i>');
		} else {
			$(this).prev().attr("type", "password"); 
			$(this).html('<i class="fa fa-eye-slash" aria-hidden="true"></i>');
		}
	});
	$(document).on("click", "#memLoginAC", function() {
		var eA = $("#loginUser").val();
		var pS = $("#loginPass").val();
		var tpID = $("#thisPageID").val();
		$("#memLoginAC").fadeOut("fast", function() {
			$("#memLoginACL").fadeIn("fast");
			$("#memLoginRes").slideUp("fast");
			$.ajax({
				url: "/login.html",
				data: "eA=" + eA + "&pS=" + pS + "&tpID=" + tpID,
				type:"POST",
				dataType:"JSON",
				cache:false,
				success:function(loginData) {
					if (loginData.loginResult == "error") {
						$("#memLoginACL").delay(600).fadeOut("fast", function() {
							$("#memLoginAC").fadeIn("fast");
							$("#memLoginRes").addClass("memLoginErr");
							$("#memLoginRes").html(loginData.msg);
							$("#memLoginRes").slideDown("fast", function() {
								var popHeight = $("#loginContainer").height();
								$("#loginSignupContainer").height(popHeight);
							});
						});
					} else {
						window.location.href = loginData.loginToL;
					}
				}
			});
		});
	});
	$(document).on("click", "#memForgotAC", function() {
		var eA = $("#userLogin").val();
		$("#memForgotAC").fadeOut("fast", function() {
			$("#memForgotACL").fadeIn("fast");
			$("#memForgotRes").slideUp("fast");
			$.ajax({
				url: "/password-reminder.html",
				data: "eA=" + eA,
				type:"POST",
				cache:false,
				success:function(passData) {
					$("#memForgotRes").html(passData);
					$("#memForgotACL").delay(600).fadeOut("fast", function() {
						$("#memForgotRes").slideDown("fast");
					});
				}
			});			
		});
	});
	$(document).on("click", "#eventRegBtn span", function() {
		if ($("#eventRegAlert").hasClass("alertClosed")) {
			$("#eventRegAlert").removeClass("alertClosed").addClass("alertOpen");
			$.ajax({
				type: "POST",
				url: "/cookieContinue.php",
				data: "openPop=true",
				cache: false
			});
		} else {
			$("#eventRegAlert").removeClass("alertOpen");
			$("#eventRegAlert").removeClass("alertFOpen").addClass("alertClosed");
			$.ajax({
				type: "POST",
				url: "/cookieContinue.php",
				data: "closePop=true",
				cache: false
			});
		}
	});
	$(document).on("click", "#subNotiList", function() {
		var sE = $("#subEmail").val();
		$.ajax({
			type: "POST",
			url: "/eventsSubscribe.php",
			data: "subFunction=true&sE=" + encodeURIComponent(sE),
			cache: false,
			success:function(subData) {
				$("#subscribeForm").html(subData);
			}
		});
	});

	if ($("#eventRegAlert").length !== 0) {
		if ($("#eventRegAlert").hasClass("alertClosed") || $("#eventRegAlert").hasClass("alertOpen")) {
		} else {
			setTimeout(function() {
				$("#eventRegAlert").addClass("alertFOpen");
			}, 2000);
		}
		setTimeout(function() {
			$("#eventRegText").slick({
				slidesToShow: 1,
				slidesToScroll: 1,
				autoplay:true,
				autoplaySpeed: 8000,
				speed: 2000,
				arrows: false,
				infinite:true,
				vertical:true
			});
		}, 2000);
	}
	if ($("#eventsFormC").length !== 0) {
		$(".formSelect select").selectmenu();
	}

	var screenWidth = $(window).width();
	$(window).on("scroll", function() {
		var currScreenWidth = $(window).width();
		scrollingGallery();
	});

	if ($("#pageGallery").length !== 0) {
		setTimeout(function(){
			$("#pageGalleryC").addClass("openGallery");
		}, 3000);
	}

	if ($(".pageGroupTableSlider").length !== 0) {
		$(".pageGroupTableSlider").slick({
			slidesToShow: 1,
			slidesToScroll: 1,
			adaptiveHeight:true,
			autoplay:true,
			autoplaySpeed: 8000,
			speed: 2000,
			arrows: false,
			infinite:true
		});
	}

	function scrollingGallery() {
		var yPos = $(window).scrollTop();
		var yPTr = yPos/2;
		var yPTxtr = yPos/8;
		if ($("#pageGallery").length !== 0) {
			$("#pageGallery img, #pageGallery video").css({
				transform:"translate(0px,"+yPTr+"px)"
			}, 1);
			$("#pageGalleryTitle").css({
				transform:"translate(0px,"+yPTxtr+"px)"
			}, 1);
		}
	}

	if (screenWidth < 768) {
		(function(a){
			a.fn.scrollToTop=function(c){
				var d={
					speed:800
				};
				c&&a.extend(d,{
					speed:c
				});
				return this.each(function(){
					var b=a(this);
					a(window).scroll(function(){
						100<a(this).scrollTop()?b.fadeIn():b.fadeOut()
					});
					b.click(function(b){
						b.preventDefault();
						a("body, html").animate({
							scrollTop:0
						},d.speed)
					})
				})
			}
		})(jQuery);
		$("#scrollToTop").scrollToTop();
	}
});

Anon7 - 2022
AnonSec Team