diff --git a/peertube-plugin-hello-world/assets/style1.css b/peertube-plugin-hello-world/assets/style1.css index 90f23c6..74ffddf 100644 --- a/peertube-plugin-hello-world/assets/style1.css +++ b/peertube-plugin-hello-world/assets/style1.css @@ -1,3 +1,8 @@ .header-right { background-color: black; } + +.hello-world-h4 { + width: 150px; + color: white; +} diff --git a/peertube-plugin-hello-world/client/video-watch-client-plugin.js b/peertube-plugin-hello-world/client/video-watch-client-plugin.js index 43c5b9d..c943b58 100644 --- a/peertube-plugin-hello-world/client/video-watch-client-plugin.js +++ b/peertube-plugin-hello-world/client/video-watch-client-plugin.js @@ -54,6 +54,15 @@ function register ({ registerHook, peertubeHelpers }) { }) peertubeHelpers.notifier.info('you are on the watch page', 'useless', 1000) + + // Insert element next to the player + { + const elem = document.createElement('div') + elem.className = 'hello-world-h4' + elem.innerHTML = '