diff options
author | adityacp | 2020-01-20 19:11:19 +0530 |
---|---|---|
committer | adityacp | 2020-01-20 19:11:19 +0530 |
commit | e828d40b75181a2356fb9223280a1e6860a7ec49 (patch) | |
tree | 3a5f55d16a9773255b019957ee1b2cffb7a964d6 /yaksh/static | |
parent | f988c72e19b689227d671b6774242bb3e784a5e2 (diff) | |
download | online_test-e828d40b75181a2356fb9223280a1e6860a7ec49.tar.gz online_test-e828d40b75181a2356fb9223280a1e6860a7ec49.tar.bz2 online_test-e828d40b75181a2356fb9223280a1e6860a7ec49.zip |
Change views, urls, forms, templates, static
- Change course, quiz, module, lesson forms
- Add messages for success and warning
- Add proper redirections to the specifc urls
- Remove unnecessary custom css
Diffstat (limited to 'yaksh/static')
-rw-r--r-- | yaksh/static/yaksh/css/custom.css | 22 | ||||
-rw-r--r-- | yaksh/static/yaksh/js/add_quiz.js | 4 | ||||
-rw-r--r-- | yaksh/static/yaksh/js/lesson.js | 9 |
3 files changed, 11 insertions, 24 deletions
diff --git a/yaksh/static/yaksh/css/custom.css b/yaksh/static/yaksh/css/custom.css index 594e1f3..2f62a26 100644 --- a/yaksh/static/yaksh/css/custom.css +++ b/yaksh/static/yaksh/css/custom.css @@ -1,25 +1,3 @@ -.yakshfooter { - background-color: #142624; - padding-top: 1%; - padding-left: 10%; - padding-right: 10%; - padding-bottom: 1%; - color: white; - bottom: 0; - width: 100%; - position: absolute; - text-align: center; -} - -.yakshfooter .nav-pills>li>a, .yakshfooter .nav-pills .nav-link,.yakshnav .nav-pills>li>a { - color: white; -} - -.yakshfooter .nav-pills>li>a:hover, .yakshnav .nav-pills>li>a:hover { - color: black; - background-color: white; -} - body, .dropdown-menu { font-size: 1.25rem; } diff --git a/yaksh/static/yaksh/js/add_quiz.js b/yaksh/static/yaksh/js/add_quiz.js index 57993ef..dab5a3d 100644 --- a/yaksh/static/yaksh/js/add_quiz.js +++ b/yaksh/static/yaksh/js/add_quiz.js @@ -1,8 +1,8 @@ function test() { - document.getElementById('id_duration').setAttribute('class','mini-text'); - document.getElementById('id_pass_criteria').setAttribute('class','mini-text'); + document.getElementById('id_duration').setAttribute('class','mini-text form-control'); + document.getElementById('id_pass_criteria').setAttribute('class','mini-text form-control'); if (document.getElementById("id_description").value != "") { document.getElementById("submit").innerHTML = "Save"; diff --git a/yaksh/static/yaksh/js/lesson.js b/yaksh/static/yaksh/js/lesson.js index 6f873b9..a86cf1b 100644 --- a/yaksh/static/yaksh/js/lesson.js +++ b/yaksh/static/yaksh/js/lesson.js @@ -75,4 +75,13 @@ $(document).ready(function(){ alert("Unable to copy. Press Ctrl+C or Cmd+C to copy") } }); + + $('#id_video_file').on('change',function(){ + //get the file name + var files = []; + for (var i = 0; i < $(this)[0].files.length; i++) { + files.push($(this)[0].files[i].name); + } + $(this).next('.custom-file-label').html(files.join(', ')); + }); }); |