From 2d1b8eb907c7e142d4e3c76e43707fb9f82d6683 Mon Sep 17 00:00:00 2001 From: adityacp Date: Mon, 7 Sep 2020 13:43:09 +0530 Subject: Show the lesson contents on student interface --- yaksh/static/yaksh/css/custom.css | 16 +++++ yaksh/static/yaksh/js/lesson.js | 1 + yaksh/templates/yaksh/show_video.html | 117 +++++++++++++++++++++++++--------- yaksh/views.py | 1 - 4 files changed, 105 insertions(+), 30 deletions(-) (limited to 'yaksh') diff --git a/yaksh/static/yaksh/css/custom.css b/yaksh/static/yaksh/css/custom.css index b737090..a3d5c79 100644 --- a/yaksh/static/yaksh/css/custom.css +++ b/yaksh/static/yaksh/css/custom.css @@ -145,3 +145,19 @@ body, .dropdown-menu { .CodeMirror-fullscreen .CodeMirror-scroll { max-height: none !important; } + +::-webkit-scrollbar { + width: 10px; +} + +::-webkit-scrollbar { + // Width of vertical scroll bar + width: 8px; + // Height of horizontal scroll bar + height: 10px; + +} +::-webkit-scrollbar-thumb { +border-radius: 8px; +background: #c2c9d2; +} \ No newline at end of file diff --git a/yaksh/static/yaksh/js/lesson.js b/yaksh/static/yaksh/js/lesson.js index 92038c9..0558bd0 100644 --- a/yaksh/static/yaksh/js/lesson.js +++ b/yaksh/static/yaksh/js/lesson.js @@ -1,6 +1,7 @@ $(document).ready(function() { var simplemde = new SimpleMDE({ element: document.getElementById("id_description"), + forceSync: true, }); const player = new Plyr('#player'); var timer = $("#vtimer"); diff --git a/yaksh/templates/yaksh/show_video.html b/yaksh/templates/yaksh/show_video.html index 236f8ef..4c54518 100644 --- a/yaksh/templates/yaksh/show_video.html +++ b/yaksh/templates/yaksh/show_video.html @@ -4,6 +4,8 @@ {% block title %} {{ learning_module.name }} {% endblock %} {% block script %} + {% endblock %} @@ -127,37 +129,94 @@ {% endif %} {% else %} -
-+ {{ toc_name }} + | ++ {{content.get_content_display}} + | ++ {{content.time}} + | +