cinera_player_post.js: Mouse nav in quotes menu

This commit is contained in:
Matt Mascarenhas 2017-12-08 01:04:59 +00:00
parent 6f751dd2b2
commit 9ce24be33a
1 changed files with 10 additions and 0 deletions

View File

@ -4,6 +4,16 @@ var quotesMenu = titleBar.querySelector(".quotes_container");
if(quotesMenu)
{
menuState.push(quotesMenu);
var quoteItems = quotesMenu.querySelectorAll(".ref");
if(quoteItems)
{
for(var i = 0; i < quoteItems.length; ++i)
{
quoteItems[i].addEventListener("mouseenter", function(ev) {
mouseOverQuotes(this);
})
};
}
var quoteTimecodes = quotesMenu.querySelectorAll(".refs .ref .ref_indices .timecode");
for (var i = 0; i < quoteTimecodes.length; ++i) {
quoteTimecodes[i].addEventListener("click", function(ev) {