News

Back

Global Monthly Winner: Player1 - 1 013 958

2023-09-01 00:17:41 Blazing Knight 511 views

Player1 from Sweden (Sverige) is our Global Monthly Winner today!

Its a moment of triumph on a global scale as we declare the Global Monthly Winner after an exhilarating battle for the highest high score among players from around the world! Join us in celebrating the outstanding individual who conquered every challenge and emerged as the ultimate champion, representing the country with the most registered players.

Check out the game statistics here: 10) { // Add load more button after newscontainers $('').insertAfter('.newscontainer:last'); // Function to handle the load more button click $('.loadMoreBtn').on('click', function() { // Calculate the new number of containers to show var toShow = Math.min(increment, remainingContainers); var lastIndex = shownContainers + toShow; // Show the next set of newscontainers newsContainers.slice(shownContainers, lastIndex).show(); // Update the counters shownContainers += toShow; remainingContainers -= toShow; // Hide the load more button if all containers are shown if (remainingContainers <= 0) { $('.loadMoreBtn').hide(); } }); } $(document).on("click", ".newstag", function(e) { e.preventDefault(); $(".loadMoreBtn").remove(); console.log("Click News Tag: ", tag); var tag = $(this).text(); // Show newscontainers with matching data-tag attribute var filteredContainers = $('[data-tag*="' + tag + '"]'); // Hide all newscontainers $('.newscontainer').hide(); if (tag === "Show All") { $('.newscontainer').show(); if (totalContainers > 10) { // Add load more button after filtered newscontainers $('').insertAfter(filteredContainers.last()); // Function to handle the load more button click $('.loadMoreBtn').off("click").on('click', function() { // Calculate the new number of containers to show var toShow = Math.min(increment, remainingContainers); var lastIndex = shownContainers + toShow; // Show the next set of newscontainers filteredContainers.slice(shownContainers, lastIndex).show(); // Update the counters shownContainers += toShow; remainingContainers -= toShow; // Hide the load more button if all containers are shown if (remainingContainers <= 0) { $('.loadMoreBtn').hide(); } }); } return; } var totalContainers = filteredContainers.length; // Count the total number of newscontainers var shownContainers = 10; // Initial number of containers to show var increment = 10; // Number of containers to show on each load more click var remainingContainers = totalContainers - shownContainers; // Calculate the remaining containers // Show the initial number of newscontainers filteredContainers.slice(0, shownContainers).show(); $(".loadMoreBtn").remove(); if (totalContainers > 10) { // Add load more button after filtered newscontainers $('').insertAfter(filteredContainers.last()); // Function to handle the load more button click $('.loadMoreBtn').off("click").on('click', function() { // Calculate the new number of containers to show var toShow = Math.min(increment, remainingContainers); var lastIndex = shownContainers + toShow; // Show the next set of newscontainers filteredContainers.slice(shownContainers, lastIndex).show(); // Update the counters shownContainers += toShow; remainingContainers -= toShow; // Hide the load more button if all containers are shown if (remainingContainers <= 0) { $('.loadMoreBtn').hide(); } }); } }); // Search input field selector var searchInput = $('[name="search"]'); function validateSearchInput() { var searchTerm = searchInput.val(); var alphanumericRegex = /^[a-zA-Z0-9\såäö\-_\[\]#]+$/; var isValid = alphanumericRegex.test(searchTerm); return isValid; } // Function to perform the search function performSearch() { var searchTerm = searchInput.val(); var url = 'news.php?search=' + encodeURIComponent(searchTerm); window.location.href = url; } // Event listener for the Enter key press searchInput.on('keypress', function(event) { if (event.which === 13) { event.preventDefault(); // Prevent form submission var isValidInput = validateSearchInput(); if (isValidInput) { performSearch(); } } }); // Event listener for keyup event in the search input searchInput.on('keyup', function() { var isValidInput = validateSearchInput(); if (!isValidInput) { searchInput.val(searchInput.val().replace(/[^a-zA-Z0-9\såäö\-_\[\]#]+/g, '')); } }); });