{"size": 1275, "ext": "js", "max_stars_repo_path": "app/javascript/packs/deck_search.js", "max_stars_repo_name": "etcusic/conexion-resource-mgmt", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/javascript/packs/deck_search.js", "max_issues_repo_name": "etcusic/conexion-resource-mgmt", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/javascript/packs/deck_search.js", "max_forks_repo_name": "etcusic/conexion-resource-mgmt", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 42.5, "max_line_length": 106, "alphanum_fraction": 0.6054901961}
// ALTERNATE SEARCH FILTER USING element.hidden INSTEAD OF SENDING DATA BACK TO CONTROLLER
// uncomment below to use

// document.getElementById("search-button").addEventListener('click', () => {
//     const admin = document.getElementById("admin-select").value
//     const level = document.getElementById("level-select").value
//     const user = document.getElementById("user-select").value
//     const deckRows = document.querySelectorAll(".deck-row")

//     if (![admin, level, user].every(value => value === "All")){
//         // filter through rows
//         // check if value does not equal select value and 
//         deckRows.forEach(deckRow => {
//             let tdAdmin = deckRow.querySelector(".deck-admin").innerHTML
//             let tdLevel = deckRow.querySelector(".deck-level").innerHTML
//             let tdUser = deckRow.querySelector(".deck-user").dataset.userId
//             let nestedArray = [[admin, tdAdmin], [level, tdLevel], [user, tdUser]]
//             nestedArray.every(arr => checkValues(arr)) ? deckRow.hidden = false : deckRow.hidden = true
//         })
//     }
// })

// function checkValues(arr){
//     if (arr[0] === "All" || arr[0] === arr[1]){
//         return true
//     } else {
//         return false
//     }
// }
