From 3377bcd85e545c541282bb2168b0783a74fbbf36 Mon Sep 17 00:00:00 2001
From: xc <double72cheng@gmail.com>
Date: Sun, 25 Apr 2021 11:13:58 +0800
Subject: [PATCH] 直播 插件化完成

---
 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