Need JS help changing default toggle state on page load

I’m using a Youtube-TV JS plugin for a client site (https://github.com/Giorgio003/Youtube-TV ). The player loads with a playlist in an open state, and I need to have it load with the toggle closed, showing the array of playlists, can anyone help? I tried looking for the 0/1 on/off state around this part of the code, but am still new to JS, CSS some PHP, & HTML being my primary forte:

playlistToggle: function(e){
						var target = utils.parentUntil(e.target ? e.target : e.srcElement, 'data-ytv-playlist-toggle');
						if(target && target.getAttribute('data-ytv-playlist-toggle')){
							// Toggle Playlist
							utils.events.prevent(e);
							var lh = settings.element.getElementsByClassName('ytv-list-header')[0];
							if(lh.className.indexOf('ytv-playlist-open')===-1){
								lh.className += ' ytv-playlist-open';
							} else {
								lh.className = lh.className.replace(' ytv-playlist-open', '');
							}
						}
					},

my codepen for the player is here http://codepen.io/raldesign/pen/OVYXvK

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.