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/admin/js/jsF/ |
Upload File : |
$(document).ready(function() { $("#leagueType").selectmenu({ change: function() { var thisVal = $(this).val(); $.ajax({ type:"POST", url: "leagueData.php", data: "tT=" + thisVal, cache: false, success: function(getRules) { $("#additonalRules").html(getRules); } }); } }); $("#customRules").selectmenu({ change: function() { var thisVal = $(this).val(); if (thisVal == "1") { $("#addRules").slideDown("slow"); $(".tox-tinymce").css("display", "flex"); } else { $("#addRules").slideUp("slow"); $(".tox-tinymce").css("display", "none"); } } }); $(document).on("change", "#noTeams", function() { var thisVal = parseInt($(this).val()); var thisMin = parseInt($(this).attr("min")); var thisInc = parseInt($(this).attr("step")); if (thisVal < thisMin) { $(this).val(thisMin); } getTeamsList(); $("#createLeague").prop("disabled", false); }); $("#hasMiniLeagues").selectmenu({ change: function() { getTeamsList(); } }); $( "#leagueStartDate" ).datepicker({ defaultDate: "+1w", changeMonth: true, changeYear: true, firstDay: 1, dateFormat: "dd/mm/yy" }); $(document).on("click", "#roundSelect a", function() { var thisID = $(this).attr("id"); $("#roundSelect a").removeClass("selectedRound"); $("#" + thisID).addClass("selectedRound"); $("#roundDisplay .roundDisplay").removeClass("selectedRoundDisplay"); $("#" + thisID + "Display").addClass("selectedRoundDisplay"); }); function getTeamsList() { var noTeams = $("#noTeams").val(); var hasMiniL = $("#hasMiniLeagues").val(); var hasPO = $("#hasPlayoff").val(); if (hasMiniL == 1) { $("#hasPlayoff option[value=1]").prop("disabled", true); $("#hasPlayoff option[value=2]").prop("disabled", true); if (hasPO == 1 || hasPO == 2) { $("#hasPlayoff option[value=0]").prop("selected", true); } $("#hasPlayoff").selectmenu("refresh"); } else { $("#hasPlayoff option[value=1]").prop("disabled", false); $("#hasPlayoff option[value=2]").prop("disabled", false); $("#hasPlayoff").selectmenu("refresh"); } if (noTeams > 0) { var dataURL = ""; dataURL = dataURL + "&" + $(".leagueTeams .teamName").serialize(); $.ajax({ type:"POST", url: "leagueData.php", data: "nT=" + noTeams + "&hML=" + hasMiniL + decodeURI(dataURL), cache: false, success: function(getTeamsInp) { $("#teamsList").html(getTeamsInp); } }); } } tinymce.init({ selector: '.tinyTxtEditor', inline: true, menubar: false, plugins: ['advlist autolink lists link image charmap print preview anchor','searchreplace visualblocks responsivefilemanager code fullscreen','insertdatetime media table contextmenu paste'], toolbar1: 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link', image_advtab: true , relative_urls : false, remove_script_host : true, document_base_url : thisURL, contextmenu: "link image media", external_filemanager_path:"/admin/filemanager/", filemanager_title:"Responsive Filemanager" , external_plugins: { "filemanager" : "/admin/filemanager/plugin.min.js"} }); });