diff --git a/ede.js b/ede.js index 002c6f6..a0b784c 100644 --- a/ede.js +++ b/ede.js @@ -318,7 +318,7 @@ modal.className = 'dialogContainer'; modal.style.display = 'none'; modal.innerHTML = ` -
+
@@ -327,6 +327,16 @@
+
+
+
+
+
+
+
+
+
+
@@ -342,7 +352,8 @@ const danmakuText = document.getElementById('danmakuText').value; const _media = document.querySelector(mediaQueryStr); const currentTime = _media.currentTime; - sendDanmaku(danmakuText, currentTime); + const mode = parseInt(document.querySelector('input[name="danmakuMode"]:checked').value); + sendDanmaku(danmakuText, currentTime, mode); modal.style.display = 'none'; modal.removeEventListener('keydown', event => event.stopPropagation(), true); };