Skip to content

Commit

Permalink
[FIX] Push the fix that I forgot to push
Browse files Browse the repository at this point in the history
  • Loading branch information
RicBent committed Feb 13, 2022
1 parent d8f6498 commit b7c62ad
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions migaku_mpv.html
Original file line number Diff line number Diff line change
Expand Up @@ -589,14 +589,14 @@
pitch_shapes = 'yes';
}

var mode = document.querySelector('#migaku-toolbar-po-inner > div:nth-child(4) > div > div.migaku-dropdown-selected-option').innerText.toLowerCase().replace('only ', '');
var mode = document.querySelector('#migaku-toolbar-po-inner > div:nth-child(4) > div > div.migaku-select-menu-selected-option').innerText.toLowerCase().replace('only ', '');

parser = 'ja';
parser_args = [mode, pitch_highlighting, pitch_shapes, unknown_underlining, one_t_highlighting, 'yes'];
}
else if (lang == 'zh')
{
var mode = document.querySelector('#migaku-toolbar-po-inner > div:nth-child(4) > div > div.migaku-dropdown-selected-option').innerText.toLowerCase().replace(' - ', '');;
var mode = document.querySelector('#migaku-toolbar-po-inner > div:nth-child(4) > div > div.migaku-select-menu-selected-option').innerText.toLowerCase().replace(' - ', '');;

var tone_highlighting = 'no';
if (document.querySelector('input[name="highlighting"]').nextElementSibling.classList.contains('checked'))
Expand All @@ -607,8 +607,7 @@
}
else if (lang == 'zh-hk')
{
var mode = document.querySelector('#migaku-toolbar-po-inner > div:nth-child(4) > div > div.migaku-dropdown-selected-option').innerText.toLowerCase().replace('only ', '');

var mode = document.querySelector('#migaku-toolbar-po-inner > div:nth-child(4) > div > div.migaku-select-menu-selected-option').innerText.toLowerCase().replace('only ', '');
var tone_highlighting = 'no';
if (document.querySelector('input[name="highlighting"]').nextElementSibling.classList.contains('checked'))
tone_highlighting = 'yes';
Expand Down

0 comments on commit b7c62ad

Please sign in to comment.