From 20f348883072166cb646c861f393f6f4887ca992 Mon Sep 17 00:00:00 2001 From: Harvey Date: Thu, 21 Nov 2019 09:37:29 +0800 Subject: [PATCH] update demo --- docs/assets/css/style.css | 6 ++++++ docs/assets/js/common.js | 3 +++ docs/index.html | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/assets/css/style.css b/docs/assets/css/style.css index b46ee5f60..859a71132 100644 --- a/docs/assets/css/style.css +++ b/docs/assets/css/style.css @@ -48,6 +48,12 @@ img { background-color: rgb(28, 32, 34); } +.version { + font-size: 12px; + color: #44d808; + margin-left: 5px; +} + .header .menus { display: flex; align-items: center; diff --git a/docs/assets/js/common.js b/docs/assets/js/common.js index 9845a1dd1..81643e910 100644 --- a/docs/assets/js/common.js +++ b/docs/assets/js/common.js @@ -9,8 +9,11 @@ var $lib = document.querySelector('.libsInput'); var $run = document.querySelector('.run'); var $popups = document.querySelector('.popups'); + var $version = document.querySelector('.version'); var loaddLib = []; + $version.textContent = 'v' + Artplayer.version; + consola.creat({ target: '.console', size: '100%', diff --git a/docs/index.html b/docs/index.html index b2f1aad2b..dd618cba7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -21,7 +21,7 @@
- +