Skip to content
Snippets Groups Projects
Commit d4a46128 authored by Peyton Tanzillo's avatar Peyton Tanzillo
Browse files

Added toggler functionality

parent 8d933852
No related branches found
No related tags found
No related merge requests found
......@@ -22,13 +22,17 @@ $(document).ready(function() {
$('.hamburger-content').toggle();
});
var loginServices = new Set();
let loginServices = new Set();
// get the logged in services
var services = ['netflix', 'hulu', 'hbo', 'showtime', 'prime', 'crunchyroll'];
let services = ['netflix', 'hulu', 'hbo', 'showtime', 'prime', 'crunchyroll'];
for (service of services) {
console.log(service);
addTogglerListener(service);
}
function addTogglerListener(service) {
$(document).on('click', '#' + service + '-switch', function() {
// $('#' + service + '-switch').not(':checked').prop("checked", true);
// updateList();
......@@ -45,6 +49,7 @@ $(document).ready(function() {
}
let serviceToLoginID = new Map();
serviceToLoginID.set("#netflixLogin", ["Netflix", "netflix"]);
serviceToLoginID.set("#huluLogin", ["Hulu", "hulu"]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment