AnonSec Shell
Server IP : 149.202.105.228  /  Your IP : 216.73.216.134
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/a/t/f/atfycaf/www/admin/js/jsF/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/a/t/f/atfycaf/www/admin/js/jsF/leagueNew-2.js
$(document).ready(function() {
	var dateFormat = "dd/mm/yy";
	$("#fixturesGen").selectmenu({
		change: function() {
			var thisVal = $(this).val();
			var lID = $("#leagueID").val();
			$.ajax({
				type:"POST",
				url: "leagueData.php",
				data: "fxG=" + thisVal + "&lID=" + lID,
				cache: false,
				success: function(getFixtures) {
					$("#fixtureList").html(getFixtures);
					if (thisVal == "1") {
						$(".playersSet").each(function() {
							var cW = $(this).data("cw");
							var cWP = $(this).attr("id");
							$(this).sortable({
								connectWith: $("#" + cW),
								placeholder: "ui-state-highlight",
								stop: function() {
									updateDeleteList(cW);
								}
							}).disableSelection();
							$("#" + cW).sortable({
								connectWith: $("#" + cWP),
								placeholder: "ui-state-highlight",
								stop: function() {
									updateDeleteList(cW);
								}
							}).disableSelection();
						});
						$("#saveFixtures").prop("disabled", true);
					} else {
						$("#saveFixtures").prop("disabled", false);
					}
					$(".matchVenue").selectmenu();
					$( ".roundDate" ).datepicker({
						changeMonth: true,
						changeYear: true,
						firstDay: 1,
						dateFormat: dateFormat
					});
				}
			});
		}
	});
	$(document).on("click", ".swapFixture", function() {
		var homeID = $(this).parent().attr("id");
		var awayID = homeID.replace("home", "away");
		var swapHome = homeID + "R";
		var swapAway = awayID + "R";
		if ($("#" + swapHome + " input").length) {
			var newHome = $("#" + homeID + " input").val();
			var newAway = $("#" + awayID + " input").val();
			var newSwapHome = $("#" + swapHome + " input").val();
			var newSwapAway = $("#" + swapAway + " input").val();
			$("#" + homeID + " input").val(newSwapHome);
			$("#" + awayID + " input").val(newSwapAway);
			$("#" + swapHome + " input").val(newHome);
			$("#" + swapAway + " input").val(newAway);
		} else {
			var newHome = $("#" + awayID + " input").val();
			var newAway = $("#" + homeID + " input").val();
			$("#" + homeID + " input").val(newHome);
			$("#" + awayID + " input").val(newAway);
		}
	});
	$(document).on("click", ".swapFixtureR", function() {
		var homeID = $(this).parent().attr("id");
		var awayID = homeID.replace("home", "away");
		var swapHome = homeID.slice(0,-1);
		var swapAway = awayID.slice(0,-1);
		var newHome = $("#" + homeID + " input").val();
		var newAway = $("#" + awayID + " input").val();
		var newSwapHome = $("#" + swapHome + " input").val();
		var newSwapAway = $("#" + swapAway + " input").val();
		$("#" + homeID + " input").val(newSwapHome);
		$("#" + awayID + " input").val(newSwapAway);
		$("#" + swapHome + " input").val(newHome);
		$("#" + swapAway + " input").val(newAway);
	});


	function updateDeleteList(fixturesID) {
		var noMatches = $("#" + fixturesID).data("nm");
		var sibling = $("#" + fixturesID).data("cw");
		var theChildren = $("#" + fixturesID).children();
		var theTChildren = $("#" + fixturesID).children(".ui-sortable-placeholder");
		var noChildren = theChildren.length;
		if (noChildren > noMatches) {
			$("#" + fixturesID).children(".ui-sortable-placeholder").last().remove();
		} else if (noChildren < noMatches) {
			$("#" + fixturesID).append('<li class="ui-sortable-placeholder ui-sortable-handle"></li>');
		}
		var theseChildren = $("#" + fixturesID).children("li");
		theseChildren.each(function() {
			var thisRow = $(this);
			var thisName = thisRow.children(".playerName");
			var thisML = thisRow.data("m");
			var thisW = thisRow.data("w");
			thisName.attr("name", "teamsSel[" + thisML + "][" + thisW + "][]");
		});
		var siblingChildren = $("#" + sibling).children("li");
		siblingChildren.each(function() {
			var thisRow = $(this);
			var thisName = thisRow.children(".playerName");
			var thisML = thisRow.data("m");
			var thisW = thisRow.data("w");
			thisName.attr("name", "teams[" + thisML + "][" + thisW + "][]");
		});
		checkFinished();
	}
	function checkFinished() {
		var isFinished = true;
		$(".fixtureSet").each(function() {
			var thisParent = $(this);
			var thisID = thisParent.attr("id");
			if ($("#" + thisID).children(".ui-sortable-placeholder").length) {
				isFinished = false;
			}
		});
		if (isFinished == true) {
			$("#saveFixtures").prop("disabled", false);
		} else {
			$("#saveFixtures").prop("disabled", true);
		}
	}
});

Anon7 - 2022
AnonSec Team