Goal: Enhanced the Matches section as apart of the Rizz AI Trimester 3 Passion Project
Frontend Link: Here
Code: Here
Javascript Portions:
var likedMatches = []: Creates a likedMatches array that moves the matches from the original table as soon as the thumbs up button is pressed
function refreshTable(): Gets data from the API and populates it in the table every time
function addMatch(): POST request and fetching match data
function addMatchRow(name, age, location, pronouns): Adds a new row to the table with the new match table
= function addLikedMatchRow(name, age, location, pronouns, socials): Adds a new row to the liked matches table when the user clicks the thumbs up button
function initializeTable(): Creates the matches and liked matches table based on the DataTables plugin for Javascript which is really useful for sorting, filtering, and searching through tables for data i.e. i can search by state, pronouns, etc.
thumbsUp function: handles the thumbs-up action for a match, adds it to the liked matches table, removes it from the match table, and updates the likedMatches array.
Goal: Enhanced the Matches section as apart of the Rizz AI Trimester 3 Passion Project Frontend Link: Here Code: Here Javascript Portions: