import wixData from 'wix-data'; $w.onReady(function () { // Make sure dataset is ready before filtering $w("#playersDataset").onReady(() => { // Optional: default to showing all classes $w("#classDropdown").value = "all"; filterByClass("all"); }); // When dropdown changes, filter the dataset $w("#classDropdown").onChange((event) => { const selectedClass = event.target.value; filterByClass(selectedClass); }); // Set up repeater item mapping when dataset has items $w("#rankingsRepeater").onItemReady(($item, itemData, index) => { // index starts at 0, so add 1 to show rank number // or use overallRank from DB if you prefer if (itemData.overallRank) { $item("#rankText").text = itemData.overallRank.toString(); } else { $item("#rankText").text = (index + 1).toString(); } // These are already connected by data bindings, but you CAN override if needed: // $item("#nameText").text = itemData.title; // $item("#positionText").text = itemData.position; // $item("#classYearText").text = itemData.classYear; // $item("#teamText").text = itemData.team; // If you want to handle the image manually: // if (itemData.headshot) { // $item("#headshotImage").src = itemData.headshot; // } // Example if you later add a profile page using profileSlug: // $item("#profileButton").onClick(() => { // wixLocation.to(`/player/${itemData.profileSlug}`); // }); }); }); /** * Filters the playersDataset by class year. * @param {string} classYear - "all", "2026", "2027", "2028" */ function filterByClass(classYear) { let filter = wixData.filter(); if (classYear && classYear !== "all") { // classYear is stored as TEXT in the collection in this setup filter = filter.eq("classYear", classYear); } // Apply filter and keep sort by overallRank ascending $w("#playersDataset") .setFilter(filter) .then(() => { // Optional: ensure sort still correct return $w("#playersDataset").setSort( wixData.sort().ascending("overallRank") ); }) .catch((err) => { console.error("Error filtering dataset:", err); }); }
top of page

The Future of Soccer Recruiting

T-90 Sports is the premier soccer recruiting and ranking platform built to spotlight the next generation of elite talent. Combining data-driven evaluations, player profiles, video analysis, and college-level insights, T-90 Sports gives athletes the exposure they deserve while providing coaches and scouts a centralized hub to discover top performers nationwide. Whether you're chasing a scholarship or looking to elevate your game, T-90 Sports is where future soccer stars get seen, ranked, and recruited.

Latest Insights

Services

Our Mission

Who We Are

T-90 Sports is a groundbreaking media startup aimed at transforming the recruitment landscape for soccer athletes. By connecting aspiring players with college coaches, we provide invaluable support, ensuring athletes have the tools to succeed.

Our innovative platform gives athletes the chance to showcase their skills through free profiles, while college coaches gain direct access to evaluate potential recruits without any barriers. This unique approach fosters a community where talent meets opportunity.

Innovation

Revolutionizing Recruitment

T-90 Sports leverages advanced technology to create seamless connections between soccer athletes and coaches. Our platform is designed with user experience in mind, ensuring that profiles are easy to navigate and effective.

Integrating cutting-edge features allows for real-time updates and personalized recommendations, making the recruitment process efficient and accessible to everyone, regardless of their background or experience level.

bottom of page