From e2863e5ef1da5c89c84bf5ce139fc05b90429e10 Mon Sep 17 00:00:00 2001
From: xc <double72cheng@gmail.com>
Date: Mon, 26 Apr 2021 11:27:39 +0800
Subject: [PATCH] 直播 js完善
---
src/main/resources/public/js/live/livepler.js | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/src/main/resources/public/js/live/livepler.js b/src/main/resources/public/js/live/livepler.js
index 765278c..cb73411 100755
--- a/src/main/resources/public/js/live/livepler.js
+++ b/src/main/resources/public/js/live/livepler.js
@@ -1,4 +1,4 @@
-!(function () {
+;!(function () {
window.onkeydown = function () {
h5lc.fullscreen = false
}
@@ -15,9 +15,22 @@
" <span class=\"duration_timer\">00:00:00</span>\n" +
" </div>\n" +
" <div class=\"fa fa-expand expand\" onclick=\"h5lc.fullscreen=true\"></div>\n" +
+ " <div class=\"fa fa-close\" id=\"close\"></div>\n" +
" </div>\n" +
" </div>\n" +
" </div>");
$("#jessibucaContainer").append(_content);
-})();
+
+ function constructLive(opt) {
+ this._opt = opt;
+ if (typeof opt.container === "string") {
+ this._opt.container = document.getElementById(opt.container);
+ }
+ if (!this._opt.container) {
+ throw new Error('Jessibuca need container option');
+ return;
+ }
+
+}})()
+
--
Gitblit v1.9.1