diff --git a/cms/djangoapps/contentstore/tests/test_contentstore.py b/cms/djangoapps/contentstore/tests/test_contentstore.py index 2f57158f0c..3cd0ba90b1 100644 --- a/cms/djangoapps/contentstore/tests/test_contentstore.py +++ b/cms/djangoapps/contentstore/tests/test_contentstore.py @@ -146,6 +146,8 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase): # response HTML self.check_components_on_page(ADVANCED_COMPONENT_TYPES, ['Word cloud', 'Annotation', + 'Text Annotation', + 'Video Annotation', 'Open Response Assessment', 'Peer Grading Interface']) diff --git a/cms/djangoapps/contentstore/views/component.py b/cms/djangoapps/contentstore/views/component.py index 38b05c094c..d466bbe732 100644 --- a/cms/djangoapps/contentstore/views/component.py +++ b/cms/djangoapps/contentstore/views/component.py @@ -52,6 +52,8 @@ else: ADVANCED_COMPONENT_TYPES = [ 'annotatable', + 'textannotation', # module for annotating text (with annotation table) + 'videoannotation', # module for annotating video (with annotation table) 'word_cloud', 'graphical_slider_tool', 'lti', diff --git a/common/djangoapps/student/firebase_token_generator.py b/common/djangoapps/student/firebase_token_generator.py new file mode 100644 index 0000000000..f84a85277e --- /dev/null +++ b/common/djangoapps/student/firebase_token_generator.py @@ -0,0 +1,99 @@ +''' + Firebase - library to generate a token + License: https://github.com/firebase/firebase-token-generator-python/blob/master/LICENSE + Tweaked and Edited by @danielcebrianr and @lduarte1991 + + This library will take either objects or strings and use python's built-in encoding + system as specified by RFC 3548. Thanks to the firebase team for their open-source + library. This was made specifically for speaking with the annotation_storage_url and + can be used and expanded, but not modified by anyone else needing such a process. +''' +from base64 import urlsafe_b64encode +import hashlib +import hmac +import sys +try: + import json +except ImportError: + import simplejson as json + +__all__ = ['create_token'] + +TOKEN_SEP = '.' + + +def create_token(secret, data): + ''' + Simply takes in the secret key and the data and + passes it to the local function _encode_token + ''' + return _encode_token(secret, data) + + +if sys.version_info < (2, 7): + def _encode(bytes_data): + ''' + Takes a json object, string, or binary and + uses python's urlsafe_b64encode to encode data + and make it safe pass along in a url. + To make sure it does not conflict with variables + we make sure equal signs are removed. + More info: docs.python.org/2/library/base64.html + ''' + encoded = urlsafe_b64encode(bytes(bytes_data)) + return encoded.decode('utf-8').replace('=', '') +else: + def _encode(bytes_info): + ''' + Same as above function but for Python 2.7 or later + ''' + encoded = urlsafe_b64encode(bytes_info) + return encoded.decode('utf-8').replace('=', '') + + +def _encode_json(obj): + ''' + Before a python dict object can be properly encoded, + it must be transformed into a jason object and then + transformed into bytes to be encoded using the function + defined above. + ''' + return _encode(bytearray(json.dumps(obj), 'utf-8')) + + +def _sign(secret, to_sign): + ''' + This function creates a sign that goes at the end of the + message that is specific to the secret and not the actual + content of the encoded body. + More info on hashing: http://docs.python.org/2/library/hmac.html + The function creates a hashed values of the secret and to_sign + and returns the digested values based the secure hash + algorithm, 256 + ''' + def portable_bytes(string): + ''' + Simply transforms a string into a bytes object, + which is a series of immutable integers 0<=x<=256. + Always try to encode as utf-8, unless it is not + compliant. + ''' + try: + return bytes(string, 'utf-8') + except TypeError: + return bytes(string) + return _encode(hmac.new(portable_bytes(secret), portable_bytes(to_sign), hashlib.sha256).digest()) # pylint: disable=E1101 + + +def _encode_token(secret, claims): + ''' + This is the main function that takes the secret token and + the data to be transmitted. There is a header created for decoding + purposes. Token_SEP means that a period/full stop separates the + header, data object/message, and signatures. + ''' + encoded_header = _encode_json({'typ': 'JWT', 'alg': 'HS256'}) + encoded_claims = _encode_json(claims) + secure_bits = '%s%s%s' % (encoded_header, TOKEN_SEP, encoded_claims) + sig = _sign(secret, secure_bits) + return '%s%s%s' % (secure_bits, TOKEN_SEP, sig) diff --git a/common/djangoapps/student/tests/test_token_generator.py b/common/djangoapps/student/tests/test_token_generator.py new file mode 100644 index 0000000000..1eb09c9173 --- /dev/null +++ b/common/djangoapps/student/tests/test_token_generator.py @@ -0,0 +1,43 @@ +""" +This test will run for firebase_token_generator.py. +""" + +from django.test import TestCase + +from student.firebase_token_generator import _encode, _encode_json, _encode_token, create_token + + +class TokenGenerator(TestCase): + """ + Tests for the file firebase_token_generator.py + """ + def test_encode(self): + """ + This tests makes sure that no matter what version of python + you have, the _encode function still returns the appropriate result + for a string. + """ + expected = "dGVzdDE" + result = _encode("test1") + self.assertEqual(expected, result) + + def test_encode_json(self): + """ + Same as above, but this one focuses on a python dict type + transformed into a json object and then encoded. + """ + expected = "eyJ0d28iOiAidGVzdDIiLCAib25lIjogInRlc3QxIn0" + result = _encode_json({'one': 'test1', 'two': 'test2'}) + self.assertEqual(expected, result) + + def test_create_token(self): + """ + Unlike its counterpart in student/views.py, this function + just checks for the encoding of a token. The other function + will test depending on time and user. + """ + expected = "eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJ1c2VySWQiOiAidXNlcm5hbWUiLCAidHRsIjogODY0MDB9.-p1sr7uwCapidTQ0qB7DdU2dbF-hViKpPNN_5vD10t8" + result1 = _encode_token('4c7f4d1c-8ac4-4e9f-84c8-b271c57fcac4', {"userId": "username", "ttl": 86400}) + result2 = create_token('4c7f4d1c-8ac4-4e9f-84c8-b271c57fcac4', {"userId": "username", "ttl": 86400}) + self.assertEqual(expected, result1) + self.assertEqual(expected, result2) diff --git a/common/djangoapps/student/tests/tests.py b/common/djangoapps/student/tests/tests.py index ea16b3f143..8df41609d6 100644 --- a/common/djangoapps/student/tests/tests.py +++ b/common/djangoapps/student/tests/tests.py @@ -20,6 +20,7 @@ from django.contrib.auth.hashers import UNUSABLE_PASSWORD from django.contrib.auth.tokens import default_token_generator from django.utils.http import int_to_base36 from django.core.urlresolvers import reverse +from django.http import HttpResponse from xmodule.modulestore.tests.factories import CourseFactory from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase @@ -30,7 +31,7 @@ from textwrap import dedent from student.models import anonymous_id_for_user, user_by_anonymous_id, CourseEnrollment, unique_id_for_user from student.views import (process_survey_link, _cert_info, password_reset, password_reset_confirm_wrapper, - change_enrollment, complete_course_mode_info) + change_enrollment, complete_course_mode_info, token, course_from_id) from student.tests.factories import UserFactory, CourseModeFactory from student.tests.test_email import mock_render_to_string @@ -556,3 +557,26 @@ class AnonymousLookupTable(TestCase): anonymous_id = anonymous_id_for_user(self.user, self.course.id) real_user = user_by_anonymous_id(anonymous_id) self.assertEqual(self.user, real_user) + + +@override_settings(MODULESTORE=TEST_DATA_MIXED_MODULESTORE) +class Token(ModuleStoreTestCase): + """ + Test for the token generator. This creates a random course and passes it through the token file which generates the + token that will be passed in to the annotation_storage_url. + """ + request_factory = RequestFactory() + COURSE_SLUG = "100" + COURSE_NAME = "test_course" + COURSE_ORG = "edx" + + def setUp(self): + self.course = CourseFactory.create(org=self.COURSE_ORG, display_name=self.COURSE_NAME, number=self.COURSE_SLUG) + self.user = User.objects.create(username="username", email="username") + self.req = self.request_factory.post('/token?course_id=edx/100/test_course', {'user': self.user}) + self.req.user = self.user + + def test_token(self): + expected = HttpResponse("eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJpc3N1ZWRBdCI6ICIyMDE0LTAxLTIzVDE5OjM1OjE3LjUyMjEwNC01OjAwIiwgImNvbnN1bWVyS2V5IjogInh4eHh4eHh4LXh4eHgteHh4eC14eHh4LXh4eHh4eHh4eHh4eCIsICJ1c2VySWQiOiAidXNlcm5hbWUiLCAidHRsIjogODY0MDB9.OjWz9mzqJnYuzX-f3uCBllqJUa8PVWJjcDy_McfxLvc", mimetype="text/plain") + response = token(self.req) + self.assertEqual(expected.content.split('.')[0], response.content.split('.')[0]) diff --git a/common/djangoapps/student/views.py b/common/djangoapps/student/views.py index cae7605f28..95ff269a3a 100644 --- a/common/djangoapps/student/views.py +++ b/common/djangoapps/student/views.py @@ -1443,3 +1443,28 @@ def change_email_settings(request): track.views.server_track(request, "change-email-settings", {"receive_emails": "no", "course": course_id}, page='dashboard') return HttpResponse(json.dumps({'success': True})) + +from student.firebase_token_generator import create_token + + +@login_required +def token(request): + ''' + Return a token for the backend of annotations. + It uses the course id to retrieve a variable that contains the secret + token found in inheritance.py. It also contains information of when + the token was issued. This will be stored with the user along with + the id for identification purposes in the backend. + ''' + course_id = request.GET.get("course_id") + course = course_from_id(course_id) + dtnow = datetime.datetime.now() + dtutcnow = datetime.datetime.utcnow() + delta = dtnow - dtutcnow + newhour, newmin = divmod((delta.days * 24 * 60 * 60 + delta.seconds + 30) // 60, 60) + newtime = "%s%+02d:%02d" % (dtnow.isoformat(), newhour, newmin) + secret = course.annotation_token_secret + custom_data = {"issuedAt": newtime, "consumerKey": secret, "userId": request.user.email, "ttl": 86400} + newtoken = create_token(secret, custom_data) + response = HttpResponse(newtoken, mimetype="text/plain") + return response diff --git a/common/lib/xmodule/setup.py b/common/lib/xmodule/setup.py index 558668c9fa..f487081f8f 100644 --- a/common/lib/xmodule/setup.py +++ b/common/lib/xmodule/setup.py @@ -33,6 +33,8 @@ XMODULES = [ "wrapper = xmodule.wrapper_module:WrapperDescriptor", "graphical_slider_tool = xmodule.gst_module:GraphicalSliderToolDescriptor", "annotatable = xmodule.annotatable_module:AnnotatableDescriptor", + "textannotation = xmodule.textannotation_module:TextAnnotationDescriptor", + "videoannotation = xmodule.videoannotation_module:VideoAnnotationDescriptor", "foldit = xmodule.foldit_module:FolditDescriptor", "word_cloud = xmodule.word_cloud_module:WordCloudDescriptor", "hidden = xmodule.hidden_module:HiddenDescriptor", diff --git a/common/lib/xmodule/xmodule/modulestore/inheritance.py b/common/lib/xmodule/xmodule/modulestore/inheritance.py index 8f824f38c6..0a20716e30 100644 --- a/common/lib/xmodule/xmodule/modulestore/inheritance.py +++ b/common/lib/xmodule/xmodule/modulestore/inheritance.py @@ -41,6 +41,8 @@ class InheritanceMixin(XBlockMixin): scope=Scope.settings, ) xqa_key = String(help="DO NOT USE", scope=Scope.settings) + annotation_storage_url = String(help="Location of Annotation backend", scope=Scope.settings, default="http://your_annotation_storage.com", display_name="Url for Annotation Storage") + annotation_token_secret = String(help="Secret string for annotation storage", scope=Scope.settings, default="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", display_name="Secret Token String for Annotation") graceperiod = Timedelta( help="Amount of time after the due date that submissions will be accepted", scope=Scope.settings, diff --git a/common/lib/xmodule/xmodule/tests/test_textannotation.py b/common/lib/xmodule/xmodule/tests/test_textannotation.py new file mode 100644 index 0000000000..397e3990ef --- /dev/null +++ b/common/lib/xmodule/xmodule/tests/test_textannotation.py @@ -0,0 +1,74 @@ +# -*- coding: utf-8 -*- +"Test for Annotation Xmodule functional logic." + +import unittest +from mock import Mock +from lxml import etree + +from xblock.field_data import DictFieldData +from xblock.fields import ScopeIds + +from xmodule.textannotation_module import TextAnnotationModule + +from . import get_test_system + + +class TextAnnotationModuleTestCase(unittest.TestCase): + ''' text Annotation Module Test Case ''' + sample_xml = ''' + +

Test Instructions.

+

+ One Fish. Two Fish. + Red Fish. Blue Fish. + + Oh the places you'll go! +

+
+ ''' + + def setUp(self): + """ + Makes sure that the Module is declared and mocked with the sample xml above. + """ + self.mod = TextAnnotationModule( + Mock(), + get_test_system(), + DictFieldData({'data': self.sample_xml}), + ScopeIds(None, None, None, None) + ) + + def test_render_content(self): + """ + Tests to make sure the sample xml is rendered and that it forms a valid xmltree + that does not contain a display_name. + """ + content = self.mod._render_content() # pylint: disable=W0212 + self.assertIsNotNone(content) + element = etree.fromstring(content) + self.assertIsNotNone(element) + self.assertFalse('display_name' in element.attrib, "Display Name should have been deleted from Content") + + def test_extract_instructions(self): + """ + Tests to make sure that the instructions are correctly pulled from the sample xml above. + It also makes sure that if no instructions exist, that it does in fact return nothing. + """ + xmltree = etree.fromstring(self.sample_xml) + + expected_xml = u"

Test Instructions.

" + actual_xml = self.mod._extract_instructions(xmltree) # pylint: disable=W0212 + self.assertIsNotNone(actual_xml) + self.assertEqual(expected_xml.strip(), actual_xml.strip()) + + xmltree = etree.fromstring('foo') + actual = self.mod._extract_instructions(xmltree) # pylint: disable=W0212 + self.assertIsNone(actual) + + def test_get_html(self): + """ + Tests the function that passes in all the information in the context that will be used in templates/textannotation.html + """ + context = self.mod.get_html() + for key in ['display_name', 'tag', 'source', 'instructions_html', 'content_html', 'annotation_storage']: + self.assertIn(key, context) diff --git a/common/lib/xmodule/xmodule/tests/test_videoannotation.py b/common/lib/xmodule/xmodule/tests/test_videoannotation.py new file mode 100644 index 0000000000..cb63d05503 --- /dev/null +++ b/common/lib/xmodule/xmodule/tests/test_videoannotation.py @@ -0,0 +1,165 @@ +# -*- coding: utf-8 -*- +"Test for Annotation Xmodule functional logic." + +import unittest +from mock import Mock +from lxml import etree + +from xblock.field_data import DictFieldData +from xblock.fields import ScopeIds + +from xmodule.videoannotation_module import VideoAnnotationModule + +from . import get_test_system + + +class VideoAnnotationModuleTestCase(unittest.TestCase): + ''' Video Annotation Module Test Case ''' + sample_xml = ''' + +

Video Test Instructions.

+
+ ''' + sample_sourceurl = "http://video-js.zencoder.com/oceans-clip.mp4" + sample_youtubeurl = "http://www.youtube.com/watch?v=yxLIu-scR9Y" + + def setUp(self): + """ + Makes sure that the Video Annotation Module is created. + """ + self.mod = VideoAnnotationModule( + Mock(), + get_test_system(), + DictFieldData({'data': self.sample_xml, 'sourceUrl': self.sample_sourceurl}), + ScopeIds(None, None, None, None) + ) + + def test_annotation_class_attr_default(self): + """ + Makes sure that it can detect annotation values in text-form if user + decides to add text to the area below video, video functionality is completely + found in javascript. + """ + xml = 'test' + element = etree.fromstring(xml) + + expected_attr = {'class': {'value': 'annotatable-span highlight'}} + actual_attr = self.mod._get_annotation_class_attr(element) # pylint: disable=W0212 + + self.assertIsInstance(actual_attr, dict) + self.assertDictEqual(expected_attr, actual_attr) + + def test_annotation_class_attr_with_valid_highlight(self): + """ + Same as above but more specific to an area that is highlightable in the appropriate + color designated. + """ + xml = 'test' + + for color in self.mod.highlight_colors: + element = etree.fromstring(xml.format(highlight=color)) + value = 'annotatable-span highlight highlight-{highlight}'.format(highlight=color) + + expected_attr = {'class': { + 'value': value, + '_delete': 'highlight'} + } + actual_attr = self.mod._get_annotation_class_attr(element) # pylint: disable=W0212 + + self.assertIsInstance(actual_attr, dict) + self.assertDictEqual(expected_attr, actual_attr) + + def test_annotation_class_attr_with_invalid_highlight(self): + """ + Same as above, but checked with invalid colors. + """ + xml = 'test' + + for invalid_color in ['rainbow', 'blink', 'invisible', '', None]: + element = etree.fromstring(xml.format(highlight=invalid_color)) + expected_attr = {'class': { + 'value': 'annotatable-span highlight', + '_delete': 'highlight'} + } + actual_attr = self.mod._get_annotation_class_attr(element) # pylint: disable=W0212 + + self.assertIsInstance(actual_attr, dict) + self.assertDictEqual(expected_attr, actual_attr) + + def test_annotation_data_attr(self): + """ + Test that each highlight contains the data information from the annotation itself. + """ + element = etree.fromstring('test') + + expected_attr = { + 'data-comment-body': {'value': 'foo', '_delete': 'body'}, + 'data-comment-title': {'value': 'bar', '_delete': 'title'}, + 'data-problem-id': {'value': '0', '_delete': 'problem'} + } + + actual_attr = self.mod._get_annotation_data_attr(element) # pylint: disable=W0212 + + self.assertIsInstance(actual_attr, dict) + self.assertDictEqual(expected_attr, actual_attr) + + def test_render_annotation(self): + """ + Tests to make sure that the spans designating annotations acutally visually render as annotations. + """ + expected_html = 'z' + expected_el = etree.fromstring(expected_html) + + actual_el = etree.fromstring('z') + self.mod._render_annotation(actual_el) # pylint: disable=W0212 + + self.assertEqual(expected_el.tag, actual_el.tag) + self.assertEqual(expected_el.text, actual_el.text) + self.assertDictEqual(dict(expected_el.attrib), dict(actual_el.attrib)) + + def test_render_content(self): + """ + Like above, but using the entire text, it makes sure that display_name is removed and that there is only one + div encompassing the annotatable area. + """ + content = self.mod._render_content() # pylint: disable=W0212 + element = etree.fromstring(content) + self.assertIsNotNone(element) + self.assertEqual('div', element.tag, 'root tag is a div') + self.assertFalse('display_name' in element.attrib, "Display Name should have been deleted from Content") + + def test_extract_instructions(self): + """ + This test ensures that if an instruction exists it is pulled and + formatted from the tags. Otherwise, it should return nothing. + """ + xmltree = etree.fromstring(self.sample_xml) + + expected_xml = u"

Video Test Instructions.

" + actual_xml = self.mod._extract_instructions(xmltree) # pylint: disable=W0212 + self.assertIsNotNone(actual_xml) + self.assertEqual(expected_xml.strip(), actual_xml.strip()) + + xmltree = etree.fromstring('foo') + actual = self.mod._extract_instructions(xmltree) # pylint: disable=W0212 + self.assertIsNone(actual) + + def test_get_extension(self): + """ + Tests the function that returns the appropriate extension depending on whether it is + a video from youtube, or one uploaded to the EdX server. + """ + expectedyoutube = 'video/youtube' + expectednotyoutube = 'video/mp4' + result1 = self.mod._get_extension(self.sample_sourceurl) # pylint: disable=W0212 + result2 = self.mod._get_extension(self.sample_youtubeurl) # pylint: disable=W0212 + self.assertEqual(expectedyoutube, result2) + self.assertEqual(expectednotyoutube, result1) + + def test_get_html(self): + """ + Tests to make sure variables passed in truly exist within the html once it is all rendered. + """ + context = self.mod.get_html() + for key in ['display_name', 'content_html', 'instructions_html', 'sourceUrl', 'typeSource', 'poster', 'alert', 'annotation_storage']: + self.assertIn(key, context) diff --git a/common/lib/xmodule/xmodule/textannotation_module.py b/common/lib/xmodule/xmodule/textannotation_module.py new file mode 100644 index 0000000000..1d732d8709 --- /dev/null +++ b/common/lib/xmodule/xmodule/textannotation_module.py @@ -0,0 +1,106 @@ +''' Text annotation module ''' + +from lxml import etree +from pkg_resources import resource_string + +from xmodule.x_module import XModule +from xmodule.raw_module import RawDescriptor +from xblock.core import Scope, String + +import textwrap + + +class AnnotatableFields(object): + """Fields for `TextModule` and `TextDescriptor`.""" + data = String(help="XML data for the annotation", scope=Scope.content, default=textwrap.dedent("""\ + + +

+ Add the instructions to the assignment here. +

+
+

+ Lorem ipsum dolor sit amet, at amet animal petentium nec. Id augue nemore postulant mea. Ex eam dicant noluisse expetenda, alia admodum abhorreant qui et. An ceteros expetenda mea, tale natum ipsum quo no, ut pro paulo alienum noluisse. +

+
+ """)) + display_name = String( + display_name="Display Name", + help="Display name for this module", + scope=Scope.settings, + default='Text Annotation', + ) + tags = String( + display_name="Tags for Assignments", + help="Add tags that automatically highlight in a certain color using the comma-separated form, i.e. imagery:red,parallelism:blue", + scope=Scope.settings, + default='imagery:red,parallelism:blue', + ) + source = String( + display_name="Source/Citation", + help="Optional for citing source of any material used. Automatic citation can be done using EasyBib", + scope=Scope.settings, + default='None', + ) + annotation_storage_url = String(help="Location of Annotation backend", scope=Scope.settings, default="http://your_annotation_storage.com", display_name="Url for Annotation Storage") + + +class TextAnnotationModule(AnnotatableFields, XModule): + ''' Text Annotation Module ''' + js = {'coffee': [], + 'js': []} + css = {'scss': [resource_string(__name__, 'css/annotatable/display.scss')]} + icon_class = 'textannotation' + + def __init__(self, *args, **kwargs): + super(TextAnnotationModule, self).__init__(*args, **kwargs) + + xmltree = etree.fromstring(self.data) + + self.instructions = self._extract_instructions(xmltree) + self.content = etree.tostring(xmltree, encoding='unicode') + self.highlight_colors = ['yellow', 'orange', 'purple', 'blue', 'green'] + + def _render_content(self): + """ Renders annotatable content with annotation spans and returns HTML. """ + xmltree = etree.fromstring(self.content) + if 'display_name' in xmltree.attrib: + del xmltree.attrib['display_name'] + + return etree.tostring(xmltree, encoding='unicode') + + def _extract_instructions(self, xmltree): + """ Removes from the xmltree and returns them as a string, otherwise None. """ + instructions = xmltree.find('instructions') + if instructions is not None: + instructions.tag = 'div' + xmltree.remove(instructions) + return etree.tostring(instructions, encoding='unicode') + return None + + def get_html(self): + """ Renders parameters to template. """ + context = { + 'display_name': self.display_name_with_default, + 'tag': self.tags, + 'source': self.source, + 'instructions_html': self.instructions, + 'content_html': self._render_content(), + 'annotation_storage': self.annotation_storage_url + } + + return self.system.render_template('textannotation.html', context) + + +class TextAnnotationDescriptor(AnnotatableFields, RawDescriptor): + ''' Text Annotation Descriptor ''' + module_class = TextAnnotationModule + mako_template = "widgets/raw-edit.html" + + @property + def non_editable_metadata_fields(self): + non_editable_fields = super(TextAnnotationDescriptor, self).non_editable_metadata_fields + non_editable_fields.extend([ + TextAnnotationDescriptor.annotation_storage_url + ]) + return non_editable_fields diff --git a/common/lib/xmodule/xmodule/videoannotation_module.py b/common/lib/xmodule/xmodule/videoannotation_module.py new file mode 100644 index 0000000000..a27eb7c628 --- /dev/null +++ b/common/lib/xmodule/xmodule/videoannotation_module.py @@ -0,0 +1,172 @@ +""" +Module for Video annotations using annotator. +""" +from lxml import etree +from pkg_resources import resource_string + +from xmodule.x_module import XModule +from xmodule.raw_module import RawDescriptor +from xblock.core import Scope, String + +import textwrap + + +class AnnotatableFields(object): + """ Fields for `VideoModule` and `VideoDescriptor`. """ + data = String(help="XML data for the annotation", scope=Scope.content, default=textwrap.dedent("""\ + + +

+ Add the instructions to the assignment here. +

+
+
+ """)) + display_name = String( + display_name="Display Name", + help="Display name for this module", + scope=Scope.settings, + default='Video Annotation', + ) + sourceurl = String(help="The external source URL for the video.", display_name="Source URL", scope=Scope.settings, default="http://video-js.zencoder.com/oceans-clip.mp4") + poster_url = String(help="Poster Image URL", display_name="Poster URL", scope=Scope.settings, default="") + annotation_storage_url = String(help="Location of Annotation backend", scope=Scope.settings, default="http://your_annotation_storage.com", display_name="Url for Annotation Storage") + + +class VideoAnnotationModule(AnnotatableFields, XModule): + '''Video Annotation Module''' + js = {'coffee': [resource_string(__name__, 'js/src/javascript_loader.coffee'), + resource_string(__name__, 'js/src/collapsible.coffee'), + resource_string(__name__, 'js/src/html/display.coffee'), + resource_string(__name__, 'js/src/annotatable/display.coffee') + ], + 'js': []} + css = {'scss': [resource_string(__name__, 'css/annotatable/display.scss')]} + icon_class = 'videoannotation' + + def __init__(self, *args, **kwargs): + super(VideoAnnotationModule, self).__init__(*args, **kwargs) + + xmltree = etree.fromstring(self.data) + + self.instructions = self._extract_instructions(xmltree) + self.content = etree.tostring(xmltree, encoding='unicode') + self.highlight_colors = ['yellow', 'orange', 'purple', 'blue', 'green'] + + def _get_annotation_class_attr(self, element): + """ Returns a dict with the CSS class attribute to set on the annotation + and an XML key to delete from the element. + """ + + attr = {} + cls = ['annotatable-span', 'highlight'] + highlight_key = 'highlight' + color = element.get(highlight_key) + + if color is not None: + if color in self.highlight_colors: + cls.append('highlight-' + color) + attr['_delete'] = highlight_key + attr['value'] = ' '.join(cls) + + return {'class': attr} + + def _get_annotation_data_attr(self, element): + """ Returns a dict in which the keys are the HTML data attributes + to set on the annotation element. Each data attribute has a + corresponding 'value' and (optional) '_delete' key to specify + an XML attribute to delete. + """ + + data_attrs = {} + attrs_map = { + 'body': 'data-comment-body', + 'title': 'data-comment-title', + 'problem': 'data-problem-id' + } + + for xml_key in attrs_map.keys(): + if xml_key in element.attrib: + value = element.get(xml_key, '') + html_key = attrs_map[xml_key] + data_attrs[html_key] = {'value': value, '_delete': xml_key} + + return data_attrs + + def _render_annotation(self, element): + """ Renders an annotation element for HTML output. """ + attr = {} + attr.update(self._get_annotation_class_attr(element)) + attr.update(self._get_annotation_data_attr(element)) + + element.tag = 'span' + + for key in attr.keys(): + element.set(key, attr[key]['value']) + if '_delete' in attr[key] and attr[key]['_delete'] is not None: + delete_key = attr[key]['_delete'] + del element.attrib[delete_key] + + def _render_content(self): + """ Renders annotatable content with annotation spans and returns HTML. """ + xmltree = etree.fromstring(self.content) + xmltree.tag = 'div' + if 'display_name' in xmltree.attrib: + del xmltree.attrib['display_name'] + + for element in xmltree.findall('.//annotation'): + self._render_annotation(element) + + return etree.tostring(xmltree, encoding='unicode') + + def _extract_instructions(self, xmltree): + """ Removes from the xmltree and returns them as a string, otherwise None. """ + instructions = xmltree.find('instructions') + if instructions is not None: + instructions.tag = 'div' + xmltree.remove(instructions) + return etree.tostring(instructions, encoding='unicode') + return None + + def _get_extension(self, srcurl): + ''' get the extension of a given url ''' + if 'youtu' in srcurl: + return 'video/youtube' + else: + spliturl = srcurl.split(".") + extensionplus1 = spliturl[len(spliturl) - 1] + spliturl = extensionplus1.split("?") + extensionplus2 = spliturl[0] + spliturl = extensionplus2.split("#") + return 'video/' + spliturl[0] + + def get_html(self): + """ Renders parameters to template. """ + extension = self._get_extension(self.sourceurl) + + context = { + 'display_name': self.display_name_with_default, + 'instructions_html': self.instructions, + 'sourceUrl': self.sourceurl, + 'typeSource': extension, + 'poster': self.poster_url, + 'alert': self, + 'content_html': self._render_content(), + 'annotation_storage': self.annotation_storage_url + } + + return self.system.render_template('videoannotation.html', context) + + +class VideoAnnotationDescriptor(AnnotatableFields, RawDescriptor): + ''' Video annotation descriptor ''' + module_class = VideoAnnotationModule + mako_template = "widgets/raw-edit.html" + + @property + def non_editable_metadata_fields(self): + non_editable_fields = super(VideoAnnotationDescriptor, self).non_editable_metadata_fields + non_editable_fields.extend([ + VideoAnnotationDescriptor.annotation_storage_url + ]) + return non_editable_fields diff --git a/common/static/css/vendor/ova/annotator.css b/common/static/css/vendor/ova/annotator.css new file mode 100644 index 0000000000..92248d1caf --- /dev/null +++ b/common/static/css/vendor/ova/annotator.css @@ -0,0 +1,888 @@ +/* Base Reset +-------------------------------------------------------------------- */ + +.annotator-notice, +.annotator-filter *, +.annotator-widget * { + font-family: "Helvetica Neue", Arial, Helvetica, sans-serif; + font-weight: normal; + text-align: left; + margin: 0; + padding: 0; + background: none; + -webkit-transition: none; + -moz-transition: none; + -o-transition: none; + transition: none; + -moz-box-shadow: none; + -webkit-box-shadow: none; + -o-box-shadow: none; + box-shadow: none; + color: rgb(144, 144, 144); +} + +/* Images +-------------------------------------------------------------------- */ + +.annotator-adder { + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAAAwCAYAAAD+WvNWAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyL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qe3VQ8//LJPzg13etc4n3hX3dt3woumY5/F2SGwoB9joLNWdf2+eR/edCPAxp/fQd0SJ4ttFkMY4KxWCx5Op0u4pNPPlkvi/YV4ZcvX04IuWd/DNAnPxOMYG/J4zg+4lrhFz75B495geAB4s+6+vVbln72PB3l33ztgE/+ZYOfCJie8/GX6v06h8wnyzMDveu9/CqRp4vtxBNM43/5y1/ueMO5I/gl8QRRLp/NfiD4mXiC2oq6U3rXxBOFVUzmY1tcr/Lq6CjxdERxTfwd8Qcrno4orom/I/5gxdMhAlIQkXwF064CLzwI4lERUUD891M8KiIKiP9OxNNhAvISEVFZDpevaJIHRTwKIvKb/0EQj4KI/Oa/U/F0qIA03JnS+wdKPD7cmSL/gyQeH+5Mkb8jxHOnWZiWiOTBLVH6/kEtbmHIglui9P2DWtzCWH3534r8HSUcd/l/AQYA7PGYKl3+RK0AAAAASUVORK5CYII='); + background-repeat: no-repeat; +} + +.annotator-resize, +.annotator-widget::after, +.annotator-editor a::after, +.annotator-viewer .annotator-controls button, +.annotator-viewer .annotator-controls a, +.annotator-filter .annotator-filter-navigation button::after, +.annotator-filter .annotator-filter-property .annotator-filter-clear { + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAEiCAYAAAD0w4JOAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YX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8jLy3O2em1NUFDQ4cLCwoA6t9G2bdscpk6des3BwaGyTiC0yachISHX9+zZk4Qq3qtrxuYEmQWJO3v2bEzv3r2/qWui1R6y5Hl4f72vWTgjY0n78UoDZp2rplKpHCCd6gIiB+44evTod1NSUhZb21Yvd+jQYZROp9tZWVlZVlxcnKU03aFo2di8du/evVa88MQqEP58IZ0Itxakhkyj1R51AkkWDui1QzXvWw0SAWmVyjeWguq9vx70XCIkxjD6T3E4ZGlSUlK+1Rrt3buXFpPSmtFbyEimQdRWgRo0aPA2O6b/X6+DXAQs4Hm0EYXZw4CF1Qnk5uZWGhgY+CnaK9KqjM3W1rZ62LBhVydMmDDdw8PjqMWNlJubewL5UWZiYmIo/WPTmgRCiJBLIc2tBdTHo/+3tMaS1IZnRknLX23qpNLBgwddk5OT93p5edG/nFtLtTTbIOPi4uif4TXl5eUFBw4cWOfo6EgfWTS1GiRa7vnzmjVrKD9qXyeQaAuzBCS37OxnyAykf3utCiPck9U8tEIzEpASa15qaHkHLfloY860UL3314Pk4pG7u4ex+7QYhT60bA6Jh2yAlGZkpBu1bOlGn6HtF52P4Z587duVk6xpM1a1cSLIEchJkYazzG0jWuxOCTstfKMv6OhLMlquF8vuDzcH1I5BaKO1o/tEk3jC0sUcUyD69RvckwWDHIuStIDSHjKE3actwlgYoRXj/2HH9GYkfGlInyreEZ3/jXuyoFlWIy8RRBgAxJ+WCRD6cPdfxgzyI3ZMHwPu4Z6sgKaPLO+z6ze5J0usPzMVIYWPKZ0YuJr1lPB91ihImjmhlj5bfI118SlIHkRIRqeYAxFchNZiX+EMP6ScImq7WpuSi5SwTHYyc4u7rFEvWuS09TH79wz6nwADANCoQA3w0fcjAAAAAElFTkSuQmCC'); + background-repeat: no-repeat; +} + +/* Annotator Highlight +-------------------------------------------------------------------- */ + +.annotator-hl { + background: rgba(255, 255, 10, 0.3); +} + +.annotator-hl-temporary { + background: rgba(0, 124, 255, 0.3); +} + +/* Annotator Wrapper +-------------------------------------------------------------------- */ + +.annotator-wrapper { + position: relative; +} + +/* NB: If you change the list of classes for which z-index is set, + you should update Annotator._setupDynamicStyle() */ +.annotator-adder, +.annotator-outer, +.annotator-notice { + z-index: 1020; +} + +.annotator-filter { + z-index: 1010; +} + +.annotator-adder, +.annotator-outer, +.annotator-widget, +.annotator-notice { + position: absolute; + font-size: 10px; + line-height: 1; +} + +.annotator-hide { + display: none; + visibility: hidden; +} + +/* Annotator Adder +-------------------------------------------------------------------- */ + +.annotator-adder { + margin-top: -48px; + margin-left: -24px; + width: 48px; + height: 48px; + background-position: left top; +} + +.annotator-adder:hover { + background-position: center top; +} + +.annotator-adder:active { + background-position: center right; +} + +.annotator-adder button { + display: block; + width: 36px; + height: 41px; + margin: 0 auto; + border: none; + background: none; + text-indent: -999em; + cursor: pointer; +} + +/* Annotator Widget + + This applies to both the Viewer and the Editor +-------------------------------------------------------------------- */ + +.annotator-outer { + width: 0; + height: 0; +} + +.annotator-widget { + margin: 0; + padding: 0; + bottom: 15px; + left: -18px; + min-width: 265px; + background-color: rgba(251, 251, 251, 0.98); + border: 1px solid rgba(122, 122, 122, 0.6); + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + border-radius: 5px; + -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); + -moz-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); + -o-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); + box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); +} + +.annotator-invert-x .annotator-widget { + left: auto; + right: -18px; +} + +.annotator-invert-y .annotator-widget { + bottom: auto; + top: 8px; +} + +.annotator-widget strong { + font-weight: bold; +} + +.annotator-widget .annotator-listing, +.annotator-widget .annotator-item { + padding: 0; + margin: 0; + list-style: none; +} + +.annotator-widget::after { + content: ""; + display: block; + width: 18px; + height: 10px; + background-position: 0 0; + position: absolute; + bottom: -10px; + left: 8px; +} + +.annotator-invert-x .annotator-widget::after { + left: auto; + right: 8px; +} + +.annotator-invert-y .annotator-widget::after { + background-position: 0 -15px; + bottom: auto; + top: -9px; +} + +.annotator-widget .annotator-item, +.annotator-editor .annotator-item input, +.annotator-editor .annotator-item textarea { + position: relative; + font-size: 12px; +} + +.annotator-viewer .annotator-item { + border-top: 2px solid rgba(122, 122, 122, 0.2); +} + +.annotator-widget .annotator-item:first-child { + border-top: none; +} + +.annotator-editor .annotator-item, +.annotator-viewer div { + border-top: 1px solid rgba(133, 133, 133, 0.11); +} + +/* Annotator Viewer +-------------------------------------------------------------------- */ + +.annotator-viewer div { + padding: 6px 6px; +} + +.annotator-viewer .annotator-item ol, +.annotator-viewer .annotator-item ul { + padding: 4px 16px; +} + +.annotator-viewer .annotator-item li { +} + +.annotator-viewer div:first-of-type, +.annotator-editor .annotator-item:first-child textarea { + padding-top: 12px; + padding-bottom: 12px; + color: rgb(60, 60, 60); + font-size: 13px; + font-style: italic; + line-height: 1.3; + border-top: none; +} + +.annotator-viewer .annotator-controls { + position: relative; + top: 5px; + right: 5px; + padding-left: 5px; + opacity: 0; + -webkit-transition: opacity 0.2s ease-in; + -moz-transition: opacity 0.2s ease-in; + -o-transition: opacity 0.2s ease-in; + transition: opacity 0.2s ease-in; + float: right; +} + +.annotator-viewer li:hover .annotator-controls, +.annotator-viewer li .annotator-controls.annotator-visible { + opacity: 1; +} + +.annotator-viewer .annotator-controls button, +.annotator-viewer .annotator-controls a { + cursor: pointer; + display: inline-block; + width: 13px; + height: 13px; + margin-left: 2px; + border: none; + opacity: 0.2; + text-indent: -900em; + background-color: transparent; + outline: none; +} + +.annotator-viewer .annotator-controls button:hover, +.annotator-viewer .annotator-controls button:focus, +.annotator-viewer .annotator-controls a:hover, +.annotator-viewer .annotator-controls a:focus { + opacity: 0.9; +} + +.annotator-viewer .annotator-controls button:active, +.annotator-viewer .annotator-controls a:active { + opacity: 1; +} + +.annotator-viewer .annotator-controls button[disabled] { + display: none; +} + +.annotator-viewer .annotator-controls .annotator-edit { + background-position: 0 -60px; +} + +.annotator-viewer .annotator-controls .annotator-delete { + background-position: 0 -75px; +} + +.annotator-viewer .annotator-controls .annotator-link { + background-position: 0 -270px; +} + +/* Annotator Editor +-------------------------------------------------------------------- */ + +.annotator-editor .annotator-item { + position: relative; +} + +.annotator-editor .annotator-item label { + top: 0; + display: inline; + cursor: pointer; + font-size: 12px; +} + +.annotator-editor .annotator-item input, +.annotator-editor .annotator-item textarea { + display: block; + min-width: 100%; + padding: 10px 8px; + border: none; + margin: 0; + color: rgb(60, 60, 60); + background: none; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + -o-box-sizing: border-box; + box-sizing: border-box; + resize: none; +} + +.annotator-editor .annotator-item textarea::-webkit-scrollbar { + height: 8px; + width: 8px; +} + +.annotator-editor .annotator-item textarea::-webkit-scrollbar-track-piece { + margin: 13px 0 3px; + background-color: #e5e5e5; + -webkit-border-radius: 4px; +} + +.annotator-editor .annotator-item textarea::-webkit-scrollbar-thumb:vertical { + height: 25px; + background-color: #ccc; + -webkit-border-radius: 4px; + -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); +} + +.annotator-editor .annotator-item textarea::-webkit-scrollbar-thumb:horizontal { + width: 25px; + background-color: #ccc; + -webkit-border-radius: 4px; +} + +.annotator-editor .annotator-item:first-child textarea { + min-height: 5.5em; + -webkit-border-radius: 5px 5px 0 0; + -moz-border-radius: 5px 5px 0 0; + -o-border-radius: 5px 5px 0 0; + border-radius: 5px 5px 0 0; +} + +.annotator-editor .annotator-item input:focus, +.annotator-editor .annotator-item textarea:focus{ + background-color: rgb(243, 243, 243); + outline: none; +} + +.annotator-editor .annotator-item input[type=radio], +.annotator-editor .annotator-item input[type=checkbox] { + width: auto; + min-width: 0; + padding: 0; + display: inline; + margin: 0 4px 0 0; + cursor: pointer; +} + +.annotator-editor .annotator-checkbox { + padding: 8px 6px; +} + +.annotator-filter, +.annotator-filter .annotator-filter-navigation button, +.annotator-editor .annotator-controls { + text-align: right; + padding: 3px; + border-top: 1px solid rgb(212,212,212); + background-color: rgb(212, 212, 212); + background-image: -webkit-gradient( + linear, left top, left bottom, + from(rgb(245, 245, 245)), + color-stop(0.6, rgb(220, 220, 220)), + to(rgb(210, 210, 210)) + ); + background-image: -moz-linear-gradient( + to bottom, + rgb(245, 245, 245), + rgb(220, 220, 220) 60%, + rgb(210, 210, 210) + ); + background-image: -webkit-linear-gradient( + to bottom, + rgb(245, 245, 245), + rgb(220, 220, 220) 60%, + rgb(210, 210, 210) + ); + background-image: linear-gradient( + to bottom, + rgb(245, 245, 245), + rgb(220, 220, 220) 60%, + rgb(210, 210, 210) + ); + -webkit-box-shadow: + inset 1px 0 0 rgba(255, 255, 255, 0.7), + inset -1px 0 0 rgba(255, 255, 255, 0.7), + inset 0 1px 0 rgba(255, 255, 255, 0.7); + -moz-box-shadow: + inset 1px 0 0 rgba(255, 255, 255, 0.7), + inset -1px 0 0 rgba(255, 255, 255, 0.7), + inset 0 1px 0 rgba(255, 255, 255, 0.7); + -o-box-shadow: + inset 1px 0 0 rgba(255, 255, 255, 0.7), + inset -1px 0 0 rgba(255, 255, 255, 0.7), + inset 0 1px 0 rgba(255, 255, 255, 0.7); + box-shadow: + inset 1px 0 0 rgba(255, 255, 255, 0.7), + inset -1px 0 0 rgba(255, 255, 255, 0.7), + inset 0 1px 0 rgba(255, 255, 255, 0.7); + -webkit-border-radius: 0 0 5px 5px; + -moz-border-radius: 0 0 5px 5px; + -o-border-radius: 0 0 5px 5px; + border-radius: 0 0 5px 5px; +} + +.annotator-editor.annotator-invert-y .annotator-controls { + border-top: none; + border-bottom: 1px solid rgb(180, 180, 180); + -webkit-border-radius: 5px 5px 0 0; + -moz-border-radius: 5px 5px 0 0; + -o-border-radius: 5px 5px 0 0; + border-radius: 5px 5px 0 0; +} + +.annotator-editor a, +.annotator-filter .annotator-filter-property label { + position: relative; + display: inline-block; + padding: 0 6px 0 22px; + color: rgb(54, 54, 54); + text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75); + text-decoration: none; + line-height: 24px; + font-size: 12px; + font-weight: bold; + border: 1px solid rgb(162, 162, 162); + background-color: rgb(212, 212, 212); + background-image: -webkit-gradient( + linear, left top, left bottom, + from(rgb(245, 245, 245)), + color-stop(0.5, rgb(210, 210, 210)), + color-stop(0.5, rgb(190, 190, 190)), + to(rgb(210, 210, 210)) + ); + background-image: -moz-linear-gradient( + to bottom, + rgb(245, 245, 245), + rgb(210, 210, 210) 50%, + rgb(190, 190, 190) 50%, + rgb(210, 210, 210) + ); + background-image: -webkit-linear-gradient( + to bottom, + rgb(245, 245, 245), + rgb(210, 210, 210) 50%, + rgb(190, 190, 190) 50%, + rgb(210, 210, 210) + ); + background-image: linear-gradient( + to bottom, + rgb(245, 245, 245), + rgb(210, 210, 210) 50%, + rgb(190, 190, 190) 50%, + rgb(210, 210, 210) + ); + -webkit-box-shadow: + inset 0 0 5px rgba(255, 255, 255, 0.2), + inset 0 0 1px rgba(255, 255, 255, 0.8); + -moz-box-shadow: + inset 0 0 5px rgba(255, 255, 255, 0.2), + inset 0 0 1px rgba(255, 255, 255, 0.8); + -o-box-shadow: + inset 0 0 5px rgba(255, 255, 255, 0.2), + inset 0 0 1px rgba(255, 255, 255, 0.8); + box-shadow: + inset 0 0 5px rgba(255, 255, 255, 0.2), + inset 0 0 1px rgba(255, 255, 255, 0.8); + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + -o-border-radius: 5px; + border-radius: 5px; +} + +.annotator-editor a::after { + position: absolute; + top: 50%; + left: 5px; + display: block; + content: ""; + width: 15px; + height: 15px; + margin-top: -7px; + background-position: 0 -90px; +} + +.annotator-editor a:hover, +.annotator-editor a:focus, +.annotator-editor a.annotator-focus, +.annotator-filter .annotator-filter-active label, +.annotator-filter .annotator-filter-navigation button:hover { + outline: none; + border-color: rgb(67, 90, 160); + background-color: rgb(56, 101, 249); + background-image: -webkit-gradient( + linear, left top, left bottom, + from(rgb(118, 145, 251)), + color-stop(0.5, rgb(80, 117, 251)), + color-stop(0.5, rgb(56, 101, 249)), + to(rgb(54, 101, 250)) + ); + background-image: -moz-linear-gradient( + to bottom, + rgb(118, 145, 251), + rgb(80, 117, 251) 50%, + rgb(56, 101, 249) 50%, + rgb(54, 101, 250) + ); + background-image: -webkit-linear-gradient( + to bottom, + rgb(118, 145, 251), + rgb(80, 117, 251) 50%, + rgb(56, 101, 249) 50%, + rgb(54, 101, 250) + ); + background-image: linear-gradient( + to bottom, + rgb(118, 145, 251), + rgb(80, 117, 251) 50%, + rgb(56, 101, 249) 50%, + rgb(54, 101, 250) + ); + color: rgb(255, 255, 255); + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.42); +} + +.annotator-editor a:hover::after, +.annotator-editor a:focus::after { + margin-top: -8px; + background-position: 0 -105px; +} + +.annotator-editor a:active, +.annotator-filter .annotator-filter-navigation button:active { + border-color: rgb(112, 12, 73); + background-color: rgb(209, 46, 142); + background-image: -webkit-gradient( + linear, left top, left bottom, + from(rgb(252, 124, 202)), + color-stop(0.5, rgb(232, 93, 178)), + color-stop(0.5, rgb(209, 46, 142)), + to(rgb(255, 0, 156)) + ); + background-image: -moz-linear-gradient( + to bottom, + rgb(252, 124, 202), + rgb(232, 93, 178) 50%, + rgb(209, 46, 142) 50%, + rgb(255, 0, 156) + ); + background-image: -webkit-linear-gradient( + to bottom, + rgb(252, 124, 202), + rgb(232, 93, 178) 50%, + rgb(209, 46, 142) 50%, + rgb(255, 0, 156) + ); + background-image: linear-gradient( + to bottom, + rgb(252, 124, 202), + rgb(232, 93, 178) 50%, + rgb(209, 46, 142) 50%, + rgb(255, 0, 156) + ); +} + +.annotator-editor a.annotator-save::after { + background-position: 0 -120px; +} + +.annotator-editor a.annotator-save:hover::after, +.annotator-editor a.annotator-save:focus::after, +.annotator-editor a.annotator-save.annotator-focus::after { + margin-top: -8px; + background-position: 0 -135px; +} + +.annotator-editor .annotator-widget::after { + background-position: 0 -30px; +} + +.annotator-editor.annotator-invert-y .annotator-widget .annotator-controls { + background-color: #f2f2f2; +} + +.annotator-editor.annotator-invert-y .annotator-widget::after { + background-position: 0 -45px; + height: 11px; +} + +.annotator-resize { + position: absolute; + top: 0; + right: 0; + width: 12px; + height: 12px; + background-position: 2px -150px; +} + +.annotator-invert-x .annotator-resize { + right: auto; + left: 0; + background-position: 0 -195px; +} + +.annotator-invert-y .annotator-resize { + top: auto; + bottom: 0; + background-position: 2px -165px; +} + +.annotator-invert-y.annotator-invert-x .annotator-resize { + background-position: 0 -180px; +} + +/* Annotator Notification +-------------------------------------------------------------------- */ + +.annotator-notice { + color: #fff; + position: absolute; + position: fixed; + top: -54px; + left: 0; + width: 100%; + font-size: 14px; + line-height: 50px; + text-align: center; + background: black; + background: rgba(0, 0, 0, 0.9); + border-bottom: 4px solid #d4d4d4; + -webkit-transition: top 0.4s ease-out; + -moz-transition: top 0.4s ease-out; + -o-transition: top 0.4s ease-out; + transition: top 0.4s ease-out; +} + +.ie6 .annotator-notice { + position: absolute; +} + +.annotator-notice-success { + border-color: #3665f9; +} + +.annotator-notice-error { + border-color: #ff7e00; +} + +.annotator-notice p { + margin: 0; +} + +.annotator-notice a { + color: #fff; +} + +.annotator-notice-show { + top: 0; +} + +/* Annotator Tags Plugin +-------------------------------------------------------------------- */ + +.annotator-tags { + margin-bottom: -2px; +} + +.annotator-tags .annotator-tag { + display: inline-block; + padding: 0 8px; + margin-bottom: 2px; + line-height: 1.6; + font-weight: bold; + background-color: rgb(230, 230, 230); + -webkit-border-radius: 8px; + -moz-border-radius: 8px; + -o-border-radius: 8px; + border-radius: 8px; +} + +/* Annotator Filter Plugin +-------------------------------------------------------------------- */ + +.annotator-filter { + position: fixed; + top: 0; + right: 0; + left: 0; + text-align: left; + line-height: 0; + border: none; + border-bottom: 1px solid #878787; + padding-left: 10px; + padding-right: 10px; + -webkit-border-radius: 0; + -moz-border-radius: 0; + -o-border-radius: 0; + border-radius: 0; + -webkit-box-shadow: + inset 0 -1px 0 rgba(255, 255, 255, 0.3); + -moz-box-shadow: + inset 0 -1px 0 rgba(255, 255, 255, 0.3); + -o-box-shadow: + inset 0 -1px 0 rgba(255, 255, 255, 0.3); + box-shadow: + inset 0 -1px 0 rgba(255, 255, 255, 0.3); +} + +.annotator-filter strong { + font-size: 12px; + font-weight: bold; + color: #3c3c3c; + text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7); + position: relative; + top: -9px; +} + + +.annotator-filter .annotator-filter-property, +.annotator-filter .annotator-filter-navigation { + position: relative; + display: inline-block; + overflow: hidden; + line-height: 10px; + padding: 2px 0; + margin-right: 8px; +} + +.annotator-filter .annotator-filter-property label, +.annotator-filter .annotator-filter-navigation button { + text-align: left; + display: block; + float: left; + line-height: 20px; + -webkit-border-radius: 10px 0 0 10px; + -moz-border-radius: 10px 0 0 10px; + -o-border-radius: 10px 0 0 10px; + border-radius: 10px 0 0 10px; +} + +.annotator-filter .annotator-filter-property label { + padding-left: 8px; +} + +.annotator-filter .annotator-filter-property input { + display: block; + float: right; + -webkit-appearance: none; + background-color: #fff; + border: 1px solid #878787; + border-left: none; + padding: 2px 4px; + line-height: 16px; + min-height: 16px; + font-size: 12px; + width: 150px; + color: #333; + background-color: #f8f8f8; + -webkit-border-radius: 0 10px 10px 0; + -moz-border-radius: 0 10px 10px 0; + -o-border-radius: 0 10px 10px 0; + border-radius: 0 10px 10px 0; + -webkit-box-shadow: + inset 0 1px 1px rgba(0, 0, 0, 0.2); + -moz-box-shadow: + inset 0 1px 1px rgba(0, 0, 0, 0.2); + -o-box-shadow: + inset 0 1px 1px rgba(0, 0, 0, 0.2); + box-shadow: + inset 0 1px 1px rgba(0, 0, 0, 0.2); + +} + +.annotator-filter .annotator-filter-property input:focus { + outline: none; + background-color: #fff; +} + +.annotator-filter .annotator-filter-clear { + position: absolute; + right: 3px; + top: 6px; + border: none; + text-indent: -900em; + width: 15px; + height: 15px; + background-position: 0 -90px; + opacity: 0.4; +} + +.annotator-filter .annotator-filter-clear:hover, +.annotator-filter .annotator-filter-clear:focus { + opacity: 0.8; +} + +.annotator-filter .annotator-filter-clear:active { + opacity: 1; +} + +.annotator-filter .annotator-filter-navigation button { + border: 1px solid rgb(162, 162, 162); + padding: 0; + text-indent: -900px; + width: 20px; + min-height: 22px; + -webkit-box-shadow: + inset 0 0 5px rgba(255, 255, 255, 0.2), + inset 0 0 1px rgba(255, 255, 255, 0.8); + -moz-box-shadow: + inset 0 0 5px rgba(255, 255, 255, 0.2), + inset 0 0 1px rgba(255, 255, 255, 0.8); + -o-box-shadow: + inset 0 0 5px rgba(255, 255, 255, 0.2), + inset 0 0 1px rgba(255, 255, 255, 0.8); + box-shadow: + inset 0 0 5px rgba(255, 255, 255, 0.2), + inset 0 0 1px rgba(255, 255, 255, 0.8); +} + +.annotator-filter .annotator-filter-navigation button, +.annotator-filter .annotator-filter-navigation button:hover, +.annotator-filter .annotator-filter-navigation button:focus { + color: transparent; +} + +.annotator-filter .annotator-filter-navigation button::after { + position: absolute; + top: 8px; + left: 8px; + content: ""; + display: block; + width: 9px; + height: 9px; + background-position: 0 -210px; +} + +.annotator-filter .annotator-filter-navigation button:hover::after { + background-position: 0 -225px; +} + +.annotator-filter .annotator-filter-navigation .annotator-filter-next { + -webkit-border-radius: 0 10px 10px 0; + -moz-border-radius: 0 10px 10px 0; + -o-border-radius: 0 10px 10px 0; + border-radius: 0 10px 10px 0; + border-left: none; +} + +.annotator-filter .annotator-filter-navigation .annotator-filter-next::after { + left: auto; + right: 7px; + background-position: 0 -240px; +} + +.annotator-filter .annotator-filter-navigation .annotator-filter-next:hover::after { + background-position: 0 -255px; +} + +.annotator-hl-active { + background: rgba(255, 255, 10, 0.8); +} + +.annotator-hl-filtered { + background-color: transparent; +} + diff --git a/common/static/css/vendor/ova/edx-annotator.css b/common/static/css/vendor/ova/edx-annotator.css new file mode 100644 index 0000000000..fd720d0842 --- /dev/null +++ b/common/static/css/vendor/ova/edx-annotator.css @@ -0,0 +1,104 @@ +/*This is written to fix some design problems with edX*/ +.annotator-wrapper .annotator-adder button { + opacity:0; +} +.annotator-editor a, .annotator-filter .annotator-filter-property label{ + line-height: 24px !important; + color: #363636 !important; + font-size: 12px!important; + font-weight: bold !important; + text-shadow: none !important; +} +.annotator-outer ul { + list-style: none !important; + padding-left: 0em !important; +} +.annotator-outer li { + margin-bottom: 0em!important; +} +.vjs-rangeslider-holder span.vjs-time-text{ + line-height: 1!important; + float: left; +} +span .annotator-hl{ + font:inherit; +} +.vjs-has-started .vjs-loading-spinner { + display: none!important; +} +/*Catch*/ +#mainCatch *{ + -moz-box-sizing: border-box; + -webkit-box-sizing: border-box; + box-sizing: border-box; +} + +/*PublicPrivate Notes in My notes */ +.notes-wrapper .PublicPrivate.separator, +.notes-wrapper .PublicPrivate.myNotes{ + position:relative; + float:left; +} +.notes-wrapper .PublicPrivate.active *{ + color:black; +} + +/* My notes buttons */ +.notes-wrapper .buttonCatch{ + -moz-box-shadow:inset 0px 1px 0px 0px #ffffff; + -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff; + box-shadow:inset 0px 1px 0px 0px #ffffff; + + background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #ffffff), color-stop(1, #a6a3a3)); + background:-moz-linear-gradient(top, #ffffff 5%, #a6a3a3 100%); + background:-webkit-linear-gradient(top, #ffffff 5%, #a6a3a3 100%); + background:-o-linear-gradient(top, #ffffff 5%, #a6a3a3 100%); + background:-ms-linear-gradient(top, #ffffff 5%, #a6a3a3 100%); + background:linear-gradient(to bottom, #ffffff 5%, #a6a3a3 100%); + filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#a6a3a3',GradientType=0); + + background-color:#ffffff; + + -moz-border-radius:6px; + -webkit-border-radius:6px; + border-radius:6px; + + border:1px solid #c2c2c2; + + display:inline-block; + color:#302f2f; + font-family:arial; + font-size:15px; + font-weight:bold; + padding:6px 24px; + text-decoration:none; + + text-shadow:0px 1px 0px #ffffff; + margin: 0px 5px 10px 5px; + cursor:pointer; +} +.notes-wrapper .buttonCatch.active{ + color:red; +} +.notes-wrapper .buttonCatch:hover { + background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #a6a3a3), color-stop(1, #ffffff)); + background:-moz-linear-gradient(top, #a6a3a3 5%, #ffffff 100%); + background:-webkit-linear-gradient(top, #a6a3a3 5%, #ffffff 100%); + background:-o-linear-gradient(top, #a6a3a3 5%, #ffffff 100%); + background:-ms-linear-gradient(top, #a6a3a3 5%, #ffffff 100%); + background:linear-gradient(to bottom, #a6a3a3 5%, #ffffff 100%); + filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#a6a3a3', endColorstr='#ffffff',GradientType=0); + + background-color:#a6a3a3; +} +.notes-wrapper .buttonCatch:active { + position:relative; + top:1px; +} + +.annotatable-content #sourceCitation { + color:#CCC; + font-style:italic; + font-size:12px; +} + diff --git a/common/static/css/vendor/ova/flagging-annotator.css b/common/static/css/vendor/ova/flagging-annotator.css new file mode 100644 index 0000000000..575822b09b --- /dev/null +++ b/common/static/css/vendor/ova/flagging-annotator.css @@ -0,0 +1,27 @@ +.flag-icon{ + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAsCAMAAAAgsQpJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAytpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NDQ1NzExMTM2MEUwMTFFM0I2RjhDOENEOEZGRUY1MzQiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NDQ1NzExMTI2MEUwMTFFM0I2RjhDOENEOEZGRUY1MzQiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5kaWQ6YWNmNmE5ZGQtZDlkOC00YTlhLThmMjAtY2EzNGM5ODcxZDJhIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOmFjZjZhOWRkLWQ5ZDgtNGE5YS04ZjIwLWNhMzRjOTg3MWQyYSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pnen528AAAAJUExURc3Nzf///////3aZ7dEAAAADdFJOU///ANfKDUEAAACzSURBVHjarNRLFoJADETRZ+1/0cpAYuevx8w4XOjQdApZ8SpVxQ+QJYRW4hzV+3GO4rk3hFNCWMG765a7NEhbBtlBxtK86peQNbws/y+teoz/ofiWFbSTtHLTHt0TErddqfMHNxxGWzUbj8SlUIdL5trBc9Br6AKh7PHh5pXc1XM9uQiT9lJYOQc//mGXj51LgrTIPpbOBWmTuizaC/moOZr79k44uDtIJ3cmriao2ekpwADT/geMPTQb1AAAAABJRU5ErkJggg=="); + background-repeat: no-repeat; + background-size:13px 13px; + top: 2px; + left: 5px; + float: left; + border: none; + width: 13px; + height: 13px; + cursor: pointer; + position: absolute; +} +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dFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOmFjZjZhOWRkLWQ5ZDgtNGE5YS04ZjIwLWNhMzRjOTg3MWQyYSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PpBey0IAAAAVUExURQAAAAEBAQ4ODrGxscHBwfj4+P///6napTIAAAAHdFJOU////////wAaSwNGAAABW0lEQVR42oyVWQLDIAhEBwZy/yNX3EpSo+WrSV+GVcT1NVf1682Qfquq/QNSAP4BEhC8+56gAUFOSVKVC9BUg4Sm7zQnh5GwVMWhwngQTR4w9KSRUkWIZuWlZZBNr5NKxbTpHcPP/Cscfp8gHKAT2URE8iO6c7jiYK0QUNlj0vuKu6c1auZFEUdOQ/UcY3FZuqm4eOKiO0Xtug4x1qaG4l6ydsZYwS1ZueLde6+TguXs2CafY3p8TI/SyyjN0rL5szy4LEPD1lZNaRjRO7M4HtbaGkCpcp+zFRiSZS4tPpkjvgTjYATHOY2vIOTBLcFyMki32yFcgZQQ8ju3AFnLZxIl3YFtU9nPGsIv56H6s9fwKHVwkbTv9mMPrNC07SJtgcXcHxZp4wDbL1KNBOKo2XaRek/jdd8jcy/h3fcjH0OwBqsSd5dCAy247S3TwYhQd9dWjnHVjWwfAQYAR+4aJLhjvXgAAAAASUVORK5CYII="); + background-repeat: no-repeat; + background-size:13px 13px; + top: 2px; + left: 5px; + float: left; + border: none; + width: 13px; + height: 13px; + cursor: pointer; + position: absolute; +} diff --git a/common/static/css/vendor/ova/ova.css b/common/static/css/vendor/ova/ova.css new file mode 100644 index 0000000000..947dddd0cc --- /dev/null +++ b/common/static/css/vendor/ova/ova.css @@ -0,0 +1,605 @@ +/* --- BigNewAnnotation --- */ + +.vjs-default-skin .vjs-big-new-annotation{ + float: left; + cursor: pointer; + line-height: 1.6em; + margin: 3% 3% 3% 4%; + top: 41%; + width: 6em; + height: 6em; + background-color: rgba(7,40,50,.7); + border-radius: 6px; + border: 0.25em solid #ccc; +} + +.vjs-default-skin .vjs-big-new-annotation div{ + width: 100%; + height: 100%; + top: 0em; + font-weight: bold; + font-size: 600%; + padding-top: 0.32em; +} + +.vjs-default-skin.vjs-fullscreen .vjs-big-new-annotation{ + top: 68%; + width: 8em; + height: 8em; +} + +.vjs-default-skin.vjs-fullscreen .vjs-big-new-annotation div{ + font-size: 750%; + padding-top: 42%; +} + +.vjs-default-skin .vjs-big-new-annotation div:hover { + -webkit-box-shadow: 0 0 1em rgba(255, 255, 255, 1); + -moz-box-shadow: 0 0 1em rgba(255, 255, 255, 1); + box-shadow: 0 0 1em rgba(255, 255, 255, 1); +} + +div.video-js > div.vjs-big-new-annotation { + visibility:hidden; + opacity:0; + -webkit-transition: visibility 0s linear 1s,opacity 1s linear; + -moz-transition: visibility 0s linear 1s,opacity 1s linear; + -o-transition: visibility 0s linear 1s,opacity 1s linear; + transition:visibility 0s linear 1s,opacity 1s linear; +} +div.video-js:hover > div.vjs-big-new-annotation { + visibility:visible; + opacity:1; + transition-delay:0s; +} + + +.vjs-default-skin .vjs-big-new-annotation.ul{ + top:0%; +} +.vjs-default-skin .vjs-big-new-annotation.ur{ + top:0%; + float:right; +} +.vjs-default-skin .vjs-big-new-annotation.br{ + float:right; +} +.vjs-default-skin .vjs-big-new-annotation.c{ + top:24%; + left:40%; +} + +div.video-js:hover > div.vjs-big-new-annotation.none { + visibility:hidden; +} +.vjs-default-skin.vjs-fullscreen .vjs-big-new-annotation.c{ + top:35%; +} + + + +/* --- ControlBar --> AnContainerButtons --- */ + +.vjs-default-skin .vjs-container-button-annotation{ + width: 101px; +} + + + +/* --- ControlBar --> AnContainerButtons --> ShowStatistics --- */ +/* --- ControlBar --> AnContainerButtons --> NewAnnotation --- */ +/* --- ControlBar --> AnContainerButtons --> ShowAnnotations --- */ + +.vjs-default-skin .vjs-statistics-annotation, +.vjs-default-skin .vjs-showannotations-annotation, +.vjs-default-skin .vjs-new-annotation{ + float: right; + cursor: pointer; + line-height: 1.6em; + background-position: left top; + margin: 4px; + width: 23px; + height: 21px; + background-repeat: no-repeat; +} + +.vjs-default-skin .vjs-statistics-annotation.active, +.vjs-default-skin .vjs-showannotations-annotation.active, +.vjs-default-skin .vjs-statistics-annotation:hover, +.vjs-default-skin .vjs-showannotations-annotation:hover, +.vjs-default-skin .vjs-new-annotation:hover { + background-position: center top; +} + +.vjs-default-skin .vjs-statistics-annotation:active, +.vjs-default-skin .vjs-showannotations-annotation:active, +.vjs-default-skin .vjs-new-annotation:active { + background-position: center right; +} + +.vjs-default-skin .vjs-new-annotation { + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAAAVCAYAAAAQAyPeAAAABmJLR0QA/wDoAACU1v3rAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QgdAg4VAK182QAACfBJREFUWMOtmHtwVNUdxz/n3LubF4tAMAYEIYC8UiGOaAvYlwUqSqO042MQZgRsZ5R2pr5QW6d2FGEc6VhqLdQiDHQKRpniFBUd0JHUimSAmFB5CAQkD8mDJLvZ5733nNM/drMPgmgNZ+Y32fnt/r4553t+zyMAXlyzZuTw4cPXBwKBOVJKvukyxhCJRo81NzUteGnt2rrDhw+r6ZUvjLy8ZPj6/ILAbIEQ3xgbg5OIHmtrbV5Qv2ddXbj7iLo3f+bIsitGrx9cPGS2FPKbYQswRhMKho6dbD25YEe0vk48t2rV5ZMmT66fNXt2qVYKbQz9Wfn5eRw8cNDZu3fvjM3vRM6MLptcf911N5eG435UP6AFECgyNJ6qcQ7V750xdMcrZ26cPLP+/p/fX5rfbRD9ADcSKM5j+/tvOjvf3TnDHjx48NqpFVNL4/E4l2L19LiMnzDBf6qhYduAQNeBsVdPK+3o8YPpP3ZHl6D4iqn+gYNObbuycNiBW+fcUpp31sVg+g/f5DJ76nf9dTW122wp5cySkhLC4QiXatm2jTFmtETmFwauojPoXTJsRxVhtBkthcwvHz6BeHvwkmEHTD7CmNG2EEIkEgk8L3fjUkoG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nFNtXjmDhvBEXbcdrjhiWr3UpyDv//yZ7EEsJ7Kz8Q0EerZWvMf7jxYy/73sXxY59eIb2xW/i8/voLW22FMnwiUSjEWNM2vVN6lAYw8kTx3NyzYWfCnr4oqUFy7LAJMcrIQWRaNRTTiTik31np+Z2Q/kih696urEt+hBiWx6eE/biyoloabC988pDQw+NBau/+n3GlliFNplZwCB8goSXwG5v73jl4MHaFeXl16CUyqk+JxsavtbILS0rKzwE4XCYUCj0djzSXtPTuH2Fb/BPcT2TM+kOKPj/R3spBXnqc7xE8O0uFa7ZrQ6tmCMnYFydm3WK8r8eYHY+kpKW/AiRiPsvq7a29vDIkSMnWpIJJVeU9vtN4vSpBvbsqT6+Zs2LS8821lUXBQZNLLTCE1RB+QXe0r6+WNKiILKL9pOvHz/ynz8v/TTcVF1cEJjoFDJhXHxov/e9b3ATOxIHjq9t2blUAMVA0W2VlUumTZv2VH/BT5w4sXnbtn+ujETDnYAGikZc/f0lV46/td/YXqLtaO3u1bdrSGP/6PIpS8blD3tSC21JIdDGIIxAyOSkntYhMOR+l9YhTLsb/PsbHftWGpfO/wH+lr/CdYGcQQAAAABJRU5ErkJggg=='); +} + +.vjs-default-skin .vjs-showannotations-annotation { + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAAAVCAYAAAAQAyPeAAAABmJLR0QA/wDoAACU1v3rAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QgdAgcPLA0+6gAABatJREFUWMOtmN9vFFUUx7/nzuyyUNdQCqUUa0oEyo9ETOBFfuiDlvAjATXxhfhgIMbgP2BCjL5BSEwMQYMm4AMaXmxABSkGogHUKgk0LeF3AQMtAq2FbXeX3Zl7zvFhtmuXdsrsLjeZzOTePZ8998w533vvEADs3rWrqbGxcW8ymVxtjEGlTVWRyWav9PX2bvpiz56uixcv8ssbPmuaUd+4NzE52UogqpgNhZfPXrl/r29T98kvu9IPL/G7iRVNc2Y2762tm9ZqyFTGJkBVMJQaunL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PdDAcyUBHAKeC3bITos1OsCLDZRYYQ6AKTvVhNsYYqAp0ghWtmibCUAO4voHrl+93mI0LM7L6MMgYjP6OElWgwr69BEuyQpQrFr+Jv9sIQIDDBJepbPZom5J+Q0H5ZLLZjKoWS+HXE8crd7YoKYRMNmvZy2RixqtIWEMn5FhYL21z7GXEKFwbCEG38zEib2ntGKkFoKAYIW/zMP39A/vOneuEG4+DHKeqyzgO3JiLdDqNoaGho7lM/77h24cQc+mplI0xhEl8CzafOvqA0/tO8HnEjAu3kDEumyc8h40TYurgfiKDDPwfnc7OzotNTU0LHIOW+pkNVTv+980bOHny1LVdu3ZvuXu761RNcuqCKU66hScvHkcyo1+OcTA5cxz917+7dun3z7dcSPeeqpucXOBNQcvcXPUl+VdtLw7nz17bc6d9CwGoA1CzccOGzcuWLfukWnhPT8/+traD2zPZ9CAAAVDz3LxXN8+ev75qts3fv9x54tM3BCiyX5vx4ua5iVkfCYljiCCqICWQCU7qxT4QFKVjxT6Q9vupb74f+Gu7+hj8D6dPKX8nggZiAAAAAElFTkSuQmCC'); +} + +.vjs-default-skin .vjs-statistics-annotation { + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAAAVCAYAAAAQAyPeAAAABmJLR0QA/wDoAACU1v3rAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QgdAhEHPk4DDwAABcNJREFUWMOtV21oHOcRfmb2vfPZyoWoimVFjhKFfMh1oC7EUGo3hDRRCAkopT/6w5DEtWkhkNISSH8VTP849IMW4QSHYkMikz+pyIcd7IQEBxtS44AtpBAnjr9aWwq2ZWSfdHe+292Z6Y+TTnvWrk+n9QvLDs++M8zOO/PMvAQAOwYHe7q7u3fl8/mnmBlLXWaGUrl8cmJ8fNMbO3eOnjhxQn468M+elZ3du3LL8/0EoiXbhsGvlk9evjSxaezQm6PFa9/I5tzGnvtW9e5q7/hBPxMvzTYBZorpwvTJM5fObNpXHhulv7z22sofrl079mR/f5eKQM2QZuVy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ACxguiPc7Dm+GOfBc9xEQM5gZz0c6zNx6cfOvW8L2DL0925INavNBOfqv7AKdVrGf/NafbdkKEOAJwQnh3onfL9C5//wfWsL+t3oQjqlWPqVyuWRmYCK8s2eoYehLktGEOIkJpXI5FL9UyrDf8ENpl/NChH4xrIhfUja4kDCxakcTj28caReOuA4EyhCqYRU8OXll9/HjI3DZLMjzwJ4Hmn2S5KSHPQ8u41AsFjE9Pb2/UprcPXPhfWTcrSEWZsIyOY+wWth/VYq7P5OvkGEHN5sxTriJnPQmZMzD5VwJJQR7vZGRkRM9PT1rPEZf56qu1I7/99xZHDp0+NTg4I6tFy+MHm7L37FmhVfsk+UPx1Dm4h+PPSwvfYrJM/8+9c0Xr2/9ujh+uGN5fo2/An0PVO5M7ffR9nHsqx47tfP7A1sJQAeAtucGBrasX79+W1rjp0+fHhoefm97qVycAqAA2u5+8LEtqx96NrXtsHr525HP/v4LBeq2n1j5oy0P5O76k5J6TAQ1AxmBuHZTr2MgGBq/1TGQTQaFPR9cObrdAkz9Hw14UPPRoMvjAAAAAElFTkSuQmCC'); +} + +/* --- ControlBar --> BackAnDisplay --- */ + +.vjs-default-skin .vjs-back-anpanel-annotation{ + float: left; + left: 0em; + right: 0em; + position:absolute; + background-color: rgba(0,0,0,0.3); + width: auto; + /*font-size: .3em;*/ + font-size: .9em; + -webkit-transition: top .4s,height .4s,font-size .4s,-webkit-transform .4s; + -moz-transition: top .4s,height .4s,font-size .4s,-moz-transform .4s; + -o-transition: top .4s,height .4s,font-size .4s,-o-transform .4s; + transition: top .4s,height .4s,font-size .4s,transform .4s; + opacity:1; + visibility:visible; + transition-delay:0s; + +} + + + +/* --- ControlBar --> BackAnDisplay --> RangeSelectorDisplay --- */ + +.vjs-default-skin .vjs-rangeselector-anpanel-annotation{ + height: 100%; + width: 100%; + position: absolute; + top: -1em; +} + +.vjs-default-skin .vjs-back-anpanel-annotation.statistics .vjs-rangeselector-anpanel-annotation{ + z-index:2; +} + +/* RangeSelectorLeft */ +.vjs-default-skin .vjs-leftselector-anpanel-annotation{ + height: 100%; + margin-top: 1em; + width:0%; + float:left; + position:absolute; + left: 0%; +} +.vjs-default-skin .vjs-leftselector-anpanel-annotation .vjs-selector-arrow{ + z-index:10; + border-left: 1em solid #FFE800; + cursor: e-resize; +} +.vjs-default-skin .vjs-leftselector-anpanel-annotation .vjs-leftselector-back{ + right:100%; + border-right: 1px dashed #FFE800; +} +.vjs-default-skin .vjs-leftselector-anpanel-annotation.include .vjs-leftselector-back{ + border-right: 1px dashed rgb(255, 163, 0); +} +.vjs-default-skin .vjs-leftselector-anpanel-annotation.include .vjs-selector-arrow{ + border-left: 1em solid rgb(255, 163, 0); +} + +/* RangeSelectorRight */ +.vjs-default-skin .vjs-rightselector-anpanel-annotation{ + height: 100%; + margin-top: 1em; + width:100%; + float:right; + position:absolute; +} +.vjs-default-skin .vjs-rightselector-anpanel-annotation .vjs-selector-arrow{ + z-index:20; + border-right: 1em solid #FFE800; + margin-left: -1em; + cursor: w-resize; +} +.vjs-default-skin .vjs-rightselector-anpanel-annotation .vjs-rightselector-back{ + border-left: 1px dashed #FFE800; +} +.vjs-default-skin .vjs-rightselector-anpanel-annotation.include .vjs-rightselector-back{ + border-left: 1px dashed rgb(255, 163, 0); +} +.vjs-default-skin .vjs-rightselector-anpanel-annotation.include .vjs-selector-arrow{ + border-right: 1em solid rgb(255, 163, 0); +} + +.vjs-default-skin .vjs-leftselector-back, +.vjs-default-skin .vjs-rightselector-back{ + height: 100%; + width: 100%; + position:absolute; + background-color: rgba(0,0,0,0.6); +} +.vjs-default-skin .vjs-selector-arrow{ + width: 0; + height: 0; + border-top: 1em solid transparent; + border-bottom: 1em solid transparent; + opacity: 0.8; + position: absolute; + top: -2em; +} + +/* RangeSelectorBar */ +.vjs-default-skin .vjs-barselector-anpanel-annotation{ + height: 2em; + margin-top: -1em; + background-color: rgba(0,0,0,0.6); + border: 1px solid rgba(255,255,255,0.6); + position: absolute; + float: left; + visibility:visible; + transition-delay:0s; +} +.vjs-default-skin .vjs-barselector-anpanel-annotation.disable{ + visibility:hidden; + opacity:0; + -webkit-transition: visibility 0.5s linear 0.5s,opacity 0.5s linear; + -moz-transition: visibility 0.5s linear 0.5s,opacity 0.5s linear; + -o-transition: visibility 0.5s linear 0.5s,opacity 0.5s linear; + transition:visibility 0.5s linear 0.5s,opacity 0.5s linear; +} +.vjs-default-skin .vjs-barselector-anpanel-annotation .vjs-barselector-left{ + float: left; + left: 1em; +} +.vjs-default-skin .vjs-barselector-anpanel-annotation .vjs-barselector-right{ + right: 1em; + float: right; +} +.vjs-default-skin .vjs-barselector-anpanel-annotation .vjs-barselector-right, +.vjs-default-skin .vjs-barselector-anpanel-annotation .vjs-barselector-left{ + height: 2em; + font-size: 1.3em; + position: absolute; +} +.vjs-default-skin .vjs-rangeselector-anpanel-annotation.active .vjs-barselector-anpanel-annotation{ + z-index: 1; +} + +/* --- ControlBar --> BackAnDisplay --> AnDisplay --- */ + +.vjs-default-skin .vjs-anpanel-annotation{ + float: left; + width: 100%; + height: 100%; + left: 0em; + right: 0em; + position:absolute; + /*background-color: #FFE800; + background: #FFE800; + background: -moz-linear-gradient(top, #FFE800, #A69700); + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFE800), to(#A69700)); + background: -webkit-linear-gradient(top, #FFE800, #A69700); + background: -o-linear-gradient(top, #FFE800, #A69700); + background: -ms-linear-gradient(top, #FFE800, #A69700); + background: linear-gradient(top, #FFE800, #A69700);*/ + opacity: 0.8; + overflow: hidden; +} + + +.vjs-default-skin .vjs-anpanel-annotation .annotation{ + height: 1em; + float: left; + width: 100%; + left: 0em; + right: 0em; + cursor:pointer; + position:absolute; + background-color: #FFE800; + background: #FFE800; + background: -moz-linear-gradient(top, #FFE800, #A69700); + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFE800), to(#A69700)); + background: -webkit-linear-gradient(top, #FFE800, #A69700); + background: -o-linear-gradient(top, #FFE800, #A69700); + background: -ms-linear-gradient(top, #FFE800, #A69700); + background: linear-gradient(top, #FFE800, #A69700); + opacity: 0.8; +} + +.vjs-default-skin .vjs-anpanel-annotation .annotation.active { + background-color: #2DCF02; + background: #2DCF02; + background: -moz-linear-gradient(top, #2DCF02, #114F01); + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#2DCF02), to(#114F01)); + background: -webkit-linear-gradient(top, #2DCF02, #114F01); + background: -o-linear-gradient(top, #2DCF02, #114F01); + background: -ms-linear-gradient(top, #2DCF02, #114F01); + background: linear-gradient(top, #2DCF02, #114F01); + z-index: 1; +} + +.vjs-default-skin .vjs-anpanel-annotation .annotation.point { + border-radius: 50%; + width: 1em; + height: 1em; + margin-left: -0.4em; +} + +.vjs-default-skin .vjs-back-anpanel-annotation.statistics .vjs-anpanel-annotation{ + visibility:hidden; +} + + + +/* --- ControlBar --> BackAnDisplay --> AnStat --- */ +.vjs-default-skin .vjs-anstat-annotation{ + float: left; + width: 100%; + height: 100%; + left: 0em; + right: 0em; + position: absolute; + opacity: 0.8; + visibility:visible; + transition-delay:0s; + font-size: 1.2em; +} + +.vjs-default-skin .vjs-anstat-annotation.disable{ + visibility:hidden; + opacity:0; +} + +.vjs-default-skin .vjs-totan-anstat-annotation, +.vjs-default-skin .vjs-maxcon-anstat-annotation{ + position: absolute; + top: 0.3em; + background-color: rgba(0,0,0,0.5); + border-radius: 0.5em; + padding: 0.1em; + color: rgb(255, 163, 0); +} +.vjs-default-skin .vjs-totan-anstat-annotation{ + float: right; + right:1em; +} +.vjs-default-skin .vjs-maxcon-anstat-annotation{ + float: left; + left:1em; +} + + + +/* --- ControlBar --> BackAnDisplay --> --- */ + +.vjs-default-skin .dashed-line{ + float: left; + right: 0em; + position:absolute; + color: #2DCF02; + border-left:0.23em dashed #2DCF02; + border-right:0.23em dashed #2DCF02; + opacity: 0.8; +} +.vjs-default-skin .dashed-line.point{ + border-right:0; +} + +.vjs-default-skin .box-dashed-line{ + height: 1em; + float: left; + right: 0em; + color: #2DCF02; + position:absolute; + background-color:#2DCF02; + opacity: 0.8; +} +.vjs-default-skin .boxup-dashed-line{ + height: 1em; + float: left; + right: 0em; + color: #2DCF02; + position:absolute; + opacity: 0.8; + background-color: #2DCF02; + background: #2DCF02; + background: -moz-linear-gradient(top, #2DCF02, #114F01); + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#2DCF02), to(#114F01)); + background: -webkit-linear-gradient(top, #2DCF02, #114F01); + background: -o-linear-gradient(top, #2DCF02, #114F01); + background: -ms-linear-gradient(top, #2DCF02, #114F01); + background: linear-gradient(top, #2DCF02, #114F01); + z-index: 4; + -webkit-transition: top 1s,-webkit-transform .4s; + -moz-transition: top 1s,-moz-transform .4s; + -o-transition: top 1s,-o-transform .4s; + transition: top 1s,transform .4s; +} + +.vjs-default-skin .boxup-dashed-line.point{ + border-radius: 50%; + width: 1em; + height: 1em; + margin-left: -0.4em; +} + + + +/* --- ControlBar --> BackAnDisplay --> BackAnDisplayScroll --- */ + +.vjs-default-skin .vjs-down-scroll-annotation, +.vjs-default-skin .vjs-up-scroll-annotation{ + width:2em; + height:2em; + float: left; + right: 0em; + position:absolute; + cursor: pointer; + border-left: 1em solid transparent; + border-right: 1em solid transparent; + /*font-size: .3em;*/ + font-size: .9em; + -webkit-transition: top .4s,height .4s,font-size .4s,-webkit-transform .4s; + -moz-transition: top .4s,height .4s,font-size .4s,-moz-transform .4s; + -o-transition: top .4s,height .4s,font-size .4s,-o-transform .4s; + transition: top .4s,height .4s,font-size .4s,transform .4s; + opacity: 0.8; + transition-delay:0s; +} + +.vjs-default-skin .vjs-up-scroll-annotation{ + border-bottom: 1em solid black; +} + +.vjs-default-skin .vjs-down-scroll-annotation{ + top: -3em; + border-top: 1em solid black; +} +.vjs-default-skin .vjs-scroll-anpanel-annotation.disable, +.vjs-default-skin .vjs-back-anpanel-annotation.disable{ + visibility:hidden; + opacity:0; + /*-webkit-transition: visibility 1s linear 1s,opacity 1s linear; + -moz-transition: visibility 1s linear 1s,opacity 1s linear; + -o-transition: visibility 1s linear 1s,opacity 1s linear; + transition:visibility 1s linear 1s,opacity 1s linear;*/ +} + +.vjs-default-skin:hover .vjs-back-anpanel-annotation, +.vjs-default-skin:hover .vjs-down-scroll-annotation, +.vjs-default-skin:hover .vjs-up-scroll-annotation { + font-size: .9em; + -webkit-transition: top .2s,height .2s,font-size .2s,-webkit-transform .2s; + -moz-transition: top .2s,height .2s,font-size .2s,-moz-transform .2s; + -o-transition: top .2s,height .2s,font-size .2s,-o-transform .2s; + transition: top .2s,height .2s,font-size .2s,transform .2s; +} + + + +/* --- ControlBar --> BackAnDisplay --> BackAnDisplayScroll--> BackAnDisplayScrollBar --- */ + +.vjs-default-skin .vjs-scrollbar-anpanel-annotation{ + float: left; + position: absolute; + cursor: pointer; + right: 0.5em; + width: 1em; + /*font-size: .3em;*/ + font-size: .9em; + background-color: black; + opacity: 0.8; + visibility:visible; + transition-delay:0s; + -webkit-transition: top .4s,height .4s,font-size .4s,-webkit-transform .4s; + -moz-transition: top .4s,height .4s,font-size .4s,-moz-transform .4s; + -o-transition: top .4s,height .4s,font-size .4s,-o-transform .4s; + transition: top .4s,height .4s,font-size .4s,transform .4s; +} + +.vjs-default-skin .vjs-scrollbar-anpanel-annotation.disable{ + visibility:hidden; + opacity:0; + -webkit-transition: visibility 1s linear 1s,opacity 1s linear; + -moz-transition: visibility 1s linear 1s,opacity 1s linear; + -o-transition: visibility 1s linear 1s,opacity 1s linear; + transition:visibility 1s linear 1s,opacity 1s linear; +} +.vjs-default-skin .vjs-scrollbar-anpanel-annotation:hover{ + opacity: 0.8; + visibility:visible; + transition-delay:0s; +} + +.vjs-default-skin:hover .vjs-scrollbar-anpanel-annotation{ + font-size: .9em; +} + +.vjs-default-skin .vjs-scrollbar-selector{ + width: 1em; + background-color: gray; + border: 1px solid black; + position:absolute; + height: 3em; + border-radius: 0.4em; +} + + + +/* --- ControlBar --> BackAnDisplay --> BackAnDisplayScroll--> BackAnDisplayScrollTime --- */ +.vjs-default-skin .vjs-down-scrolltime-annotation, +.vjs-default-skin .vjs-up-scrolltime-annotation{ + width: 100%; + height:1em; + float: left; + position:absolute; + font-size: .9em; + opacity: 0.8; + transition-delay:0s; + right: 3em; + text-align: right; + margin-top:0.2em; +} + +.vjs-default-skin .vjs-down-scrolltime-annotation{ + top: -2.6em; + margin-top: -0.2em; +} + +.vjs-default-skin .vjs-scrolltime-anpanel-annotation span{ + font-size: 1.3em; + background-color: rgba(0,0,0,1); + border-radius: 0.5em; + padding: 0.1em; + border: 0.1em solid white; + padding-left: 0.4em; + padding-right: 0.4em; +} + + + +/* ---------------- Modify the CSS of Annotator plugin ---------------- */ +.annotator-wrapper.vjs-fullscreen .annotator-adder, +.annotator-wrapper.vjs-fullscreen .annotator-outer, +.annotator-wrapper.vjs-fullscreen .annotator-widget, +.annotator-wrapper.vjs-fullscreen .annotator-notice { + z-index:3000000000; /*To fix full-screen*/ +} + + + +/* ---------------- Modify the CSS of Video-js plugin ---------------- */ + +.vjs-default-skin *, .vjs-default-skin *:before, .vjs-default-skin *:after { + -moz-box-sizing: border-box; + -webkit-box-sizing: border-box; + box-sizing: border-box; +} + + + +/* ---------------- Modify the CSS of Range Slider plugin ---------------- */ + +/* Selection bar in green color */ +.vjs-default-skin .vjs-rangeslider-holder.locked span.annotator-hl > div.vjs-selectionbar-RS { + background-color: #2DCF02; + background: #2DCF02; + background: -moz-linear-gradient(top, #2DCF02, #114F01); + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#2DCF02), to(#114F01)); + background: -webkit-linear-gradient(top, #2DCF02, #114F01); + background: -o-linear-gradient(top, #2DCF02, #114F01); + background: -ms-linear-gradient(top, #2DCF02, #114F01); + background: linear-gradient(top, #2DCF02, #114F01); +} + +.vjs-default-skin div.vjs-rangeslider-holder.locked .vjs-rangeslider-handle > div.vjs-selectionbar-line-RS { + background-color: #2DCF02; +} + +.vjs-default-skin div.vjs-rangeslider-holder.locked .vjs-rangeslider-handle > div.vjs-selectionbar-arrow-RS { + border-top-color: #2DCF02; +} + diff --git a/common/static/css/vendor/ova/rangeslider.css b/common/static/css/vendor/ova/rangeslider.css new file mode 100644 index 0000000000..9dd96bb0e2 --- /dev/null +++ b/common/static/css/vendor/ova/rangeslider.css @@ -0,0 +1,186 @@ +/*Range Slider Bar Time*/ +.vjs-default-skin .vjs-timebar-RS{ + color: red; + top: -1em; + height: 100%; + position: relative; + background: rgba(100,100,100,.5);/*Quitar*/ +} + + + +/*Selection Range Slider Bar Selected*/ +.vjs-default-skin .vjs-rangeslider-holder{height: 100%;} + +.vjs-default-skin .vjs-selectionbar-RS{ + height: 100%; + float: left; + width: 100%; + left: 0em; + right: 0em; + position:absolute; + background-color: #FFE800; + background: #FFE800; + background: -moz-linear-gradient(top, #FFE800, #A69700); + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFE800), to(#A69700)); + background: -webkit-linear-gradient(top, #FFE800, #A69700); + background: -o-linear-gradient(top, #FFE800, #A69700); + background: -ms-linear-gradient(top, #FFE800, #A69700); + background: linear-gradient(top, #FFE800, #A69700); + opacity: 0.8; +} + +.vjs-default-skin div.vjs-rangeslider-holder.locked > div.vjs-selectionbar-RS { + background-color: #FF6565; + background: #FF6565; + background: -moz-linear-gradient(top, #FF6565, #300000); + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FF6565), to(#300000)); + background: -webkit-linear-gradient(top, #FF6565, #300000); + background: -o-linear-gradient(top, #FF6565, #300000); + background: -ms-linear-gradient(top, #FF6565, #300000); + background: linear-gradient(top, #FF6565, #300000); +} + + +/*Arrow and Handle*/ +.vjs-default-skin div.vjs-rangeslider-handle { + position: absolute; + margin-top: 0; + cursor: pointer !important; + background-color: transparent; +} + +.vjs-default-skin .vjs-selectionbar-left-RS{height: 100%;left: 0;z-index:10} +.vjs-default-skin .vjs-selectionbar-right-RS{height: 100%;left: 100%;z-index:20} + +.vjs-default-skin div.vjs-selectionbar-left-RS, +.vjs-default-skin div.vjs-selectionbar-right-RS { + top: 0em; + position: absolute; + width:0em; +} + +.vjs-default-skin div.vjs-selectionbar-arrow-RS { + width: 0; + height: 0; + border-left: 1em solid transparent; + border-right: 1em solid transparent; + border-top: 1em solid #FFF273; + margin-left: -1em; + opacity: 0.8; + + position: absolute; + top: -1em; +} +.vjs-default-skin div.vjs-rangeslider-handle.active > div.vjs-selectionbar-arrow-RS { + border-top-color: #5F5FB3; +} + +.vjs-default-skin div.vjs-rangeslider-holder.locked .vjs-rangeslider-handle > div.vjs-selectionbar-arrow-RS { + border-top-color: #FF6565; +} + +.vjs-default-skin div.vjs-selectionbar-line-RS { + width: 1px; + height: 1em; + background-color: #FFF273; + + position:absolute; + top: 0em; +} +.vjs-default-skin div.vjs-rangeslider-handle.active > div.vjs-selectionbar-line-RS { + background-color: #5F5FB3; +} + +.vjs-default-skin div.vjs-rangeslider-holder.locked .vjs-rangeslider-handle > div.vjs-selectionbar-line-RS { + background-color: #FF6565; +} + + +/* Time Panel */ +.vjs-default-skin .vjs-timepanel-RS{ + width: 100%; + height: 1em; + font-weight: bold; + font-size: 15px; + top: -2em; + position: absolute; + visibility:visible; + opacity:1; + transition-delay:0s; +} +.vjs-default-skin .vjs-timepanel-RS.disable{ + visibility:hidden; + opacity:0; + -webkit-transition: visibility 1s linear 1s,opacity 1s linear; + -moz-transition: visibility 1s linear 1s,opacity 1s linear; + -o-transition: visibility 1s linear 1s,opacity 1s linear; + transition:visibility 1s linear 1s,opacity 1s linear; +} + +.vjs-default-skin .vjs-timepanel-left-RS, +.vjs-default-skin .vjs-timepanel-right-RS{ + font-weight: normal; + font-size: 1em; + color: #666666; + border: 1px solid #666666; + background-color: white; + border-radius: 5px; + position: absolute; + height:116%; + padding-right: 0.3em; + padding-left: 0.3em; +} +.vjs-default-skin .vjs-timepanel-left-RS{ + left:0.5% +} +.vjs-default-skin .vjs-timepanel-right-RS{ + left:92% +} + + + + +/* Control Time Panel */ +.vjs-default-skin .vjs-controltimepanel-RS{ + width: 18em; + font-size: 1em; + line-height: 3em; +} + +.vjs-default-skin .vjs-controltimepanel-RS input{ + width: 1.5em; + background: rgba(102, 168, 204, 0.16); + border: 1px solid transparent; + color: black; + font-size: 1em; + margin-left: 2px; + text-align: center; + color: white; +} + +.vjs-default-skin .vjs-controltimepanel-left-RS{ + width: 50%; + float: left; +} +.vjs-default-skin .vjs-controltimepanel-right-RS{ + float:right; + width: 48%; +} +.vjs-default-skin .vjs-controltimepanel-RS input{ + margin: 0; + padding: 0; + display: table-cell; +} + + +/* ---------------- Video-js plugin ---------------- */ + +.vjs-default-skin *, .vjs-default-skin *:before, .vjs-default-skin *:after { + -moz-box-sizing: border-box; + -webkit-box-sizing: border-box; + box-sizing: border-box; + margin: 0; + padding: 0; +} + diff --git a/common/static/css/vendor/ova/richText-annotator.css b/common/static/css/vendor/ova/richText-annotator.css new file mode 100644 index 0000000000..b03e0eec01 --- /dev/null +++ b/common/static/css/vendor/ova/richText-annotator.css @@ -0,0 +1,33 @@ +.annotator-viewer div:first-of-type.richText-annotation *, +.annotator-viewer div:first-of-type.richText-annotation{ + font-style: normal; + font-weight: inherit; + text-align: inherit; +} +.annotator-viewer div:first-of-type.richText-annotation{ + padding-top: 22px; +} + +/* Fix in the tinymce */ +.annotator-viewer div:first-of-type.richText-annotation strong{ + font-weight: bold; +} +.annotator-viewer div:first-of-type.richText-annotation em{ + font-style: italic; +} + +.mce-container { + z-index:3000000000!important; /*To fix full-screen problems*/ +} + + +/* Some change in the design of Annotator */ +.annotator-editor .annotator-widget{ + min-width: 400px; +} + +/*Rubric icon*/ +.mce-ico.mce-i-rubric{ + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QkBBB07nraNoQAAAhZJREFUKM+NkstrE1EUxr+5c08ykztpJtVoazHBF8FgQQzonyBKEZS6FrQKLl0EXBRT0ZULJSs3oii4TyHgu90IlTaL6qouWlv7Ck1N0BSnmZk714WbPHz07M4534+Pw3eAHdTY8A9+Nd9/bshU1DpnO4HXjh2ZY2J9/OSTxHTrnP8PvJYf+BDQ6qEDaQBB43jrTusUFy4oPjsYWYzF+VS91nxLYfdhKgONaQT3W/KMxr1XY5e+qj86f8zsKYYsZ6AvjWFzA8ORHkAnwN8So7evzL/8pzMAXL/Hq8mMv1up371T7Z+/c3n9cKeuDS6Xy6dN07zLuZ56Onk2Ed2/ANJsnE/PQMpgyffle+kYzwazB1+3waVS6X48Hr9BRPB9H57nYXplFKeSt8D1Hriug9XKF0x+Lmw+ys8m2m42DOOn4zhQSsGyLOi6jqONm9isbmFVFlDbaGKx8QaB1rvdlbNhGLAsC0IIGIYBIQSy2ROQ0oOp7wOPraHXEugRvDtnzjmi0SiICEIIEBGklAB9B6cmbG0AUnrY5m73h+m6DsYYTNMEYwxEBMY0hGNVhHkcZigBO9qHlDHS7cwYg23bAIBQKAQigud7IH0XwtxDoHwEIQ9SLKx0wa7rPiaivYyxESklXNeFBg0mjyNQTQSuATMSm6ipuYt//eVcLhdeXl5+UKlUlur1upqamVAv3j3/VCyOD3VqfwF6uLp3q+vMcgAAAABJRU5ErkJggg=='); + background-repeat: no-repeat; +} diff --git a/common/static/css/vendor/ova/share-annotator.css b/common/static/css/vendor/ova/share-annotator.css new file mode 100644 index 0000000000..d0968677a1 --- /dev/null +++ b/common/static/css/vendor/ova/share-annotator.css @@ -0,0 +1,203 @@ +/* Editor */ +.share-container-annotator{ + display: block; + min-width: 100%; + border: none; + margin: 0; + color: rgb(60, 60, 60); + background: none; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + -o-box-sizing: border-box; + box-sizing: border-box; + resize: none; + padding-left: 0.6em; + padding-right: 1em; + height: 3.1em; +} + +.share-container-annotator .share-text-annotator{ + float:left; + padding-top: 1em; +} + +.annotator-editor .share-container-annotator .share-text-annotator{ + height: 2.1em; +} + +.share-container-annotator .share-button{ + top: 0.3em; + outline: 0; + float:left; + position: relative; + text-align: center; + margin: 0; + padding: 0; + margin-left:0.3em; + height: 2.5em; + width: 2.5em; + background-repeat: no-repeat; + background-size: 2.5em; +} + +.share-container-annotator .share-button:hover{ + opacity: .6; + cursor: pointer; +} + +/* Popup */ + +.share-container-annotator .share-popup-overlay-bg{ + display: none; + position: fixed; + top: 0; + left: 0; + height:100%; + width: 100%; + cursor: pointer; + background: #000; /* fallback */ + background: rgba(0,0,0,0.75); + padding: 0; +} +.share-container-annotator .share-popup-overlay-bg .share-popup{ + background: #fff; + padding: 1% !important; + width: 30%; + position: relative; + top: 15%; + left: 50%; + margin: 0 0 0 -17% !important; /* add negative left margin for half the width to center the div */ + cursor: default; + border-radius: 4px; + box-shadow: 0 0 5px rgba(0,0,0,0.9); +} +.share-container-annotator .share-popup-overlay-bg .share-popup-copy, +.share-container-annotator .share-popup-overlay-bg .share-popup-title{ + font-style: normal; + font-weight: bold; + font-size: 21px; + padding-top: 0px; + padding-bottom: 20px; + color: #222; +} +.share-container-annotator .share-popup-overlay-bg .share-popup-uri{ + width:100%; + border: 1px solid rgb(144, 144, 144); + height: 24px; + margin-bottom: 10px; +} +.share-container-annotator .share-popup-overlay-bg .share-popup-copy{ + font-size: 15px; + float: left; + width: 100%; + padding:0; + margin: 1.0em 0em 0.5em 0em !important; +} +.share-container-annotator .share-popup-overlay-bg .share-popup .share-button{ + width: 50%; + padding: 0; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + -o-box-sizing: border-box; + box-sizing: border-box; + border: 1px solid; + margin: 0; + text-align: center; + alignment-baseline: central; + background-position: 0.5em; + height: 4em; + padding-top: 1.3em !important; +} +/* Close button */ +.share-container-annotator .share-popup-overlay-bg .close-btn { + cursor: pointer; + position: relative; + display: inline-block; + padding: 0 12px 0 12px; + color: rgb(54, 54, 54); + text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75); + text-decoration: none; + line-height: 24px; + font-size: 12px; + font-weight: bold; + border: 1px solid rgb(162, 162, 162); + background-color: rgb(212, 212, 212); + background-image: -webkit-gradient( linear, left top, left bottom, from(rgb(245, 245, 245)), color-stop(0.5, rgb(210, 210, 210)), color-stop(0.5, rgb(190, 190, 190)), to(rgb(210, 210, 210)) ); + background-image: -moz-linear-gradient( to bottom, rgb(245, 245, 245), rgb(210, 210, 210) 50%, rgb(190, 190, 190) 50%, rgb(210, 210, 210) ); + background-image: -webkit-linear-gradient( to bottom, rgb(245, 245, 245), rgb(210, 210, 210) 50%, rgb(190, 190, 190) 50%, rgb(210, 210, 210) ); + background-image: linear-gradient( to bottom, rgb(245, 245, 245), rgb(210, 210, 210) 50%, rgb(190, 190, 190) 50%, rgb(210, 210, 210) ); + -webkit-box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.2), inset 0 0 1px rgba(255, 255, 255, 0.8); + -moz-box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.2), inset 0 0 1px rgba(255, 255, 255, 0.8); + -o-box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.2), inset 0 0 1px rgba(255, 255, 255, 0.8); + box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.2), inset 0 0 1px rgba(255, 255, 255, 0.8); + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + -o-border-radius: 5px; + border-radius: 5px; +} + +.share-container-annotator .share-popup-overlay-bg .close-btn:hover { + outline: none; + border-color: rgb(67, 90, 160); + background-color: rgb(56, 101, 249); + background-image: -webkit-gradient( linear, left top, left bottom, from(rgb(118, 145, 251)), color-stop(0.5, rgb(80, 117, 251)), color-stop(0.5, rgb(56, 101, 249)), to(rgb(54, 101, 250)) ); + background-image: -moz-linear-gradient( to bottom, rgb(118, 145, 251), rgb(80, 117, 251) 50%, rgb(56, 101, 249) 50%, rgb(54, 101, 250) ); + background-image: -webkit-linear-gradient( to bottom, rgb(118, 145, 251), rgb(80, 117, 251) 50%, rgb(56, 101, 249) 50%, rgb(54, 101, 250) ); + background-image: linear-gradient( to bottom, rgb(118, 145, 251), rgb(80, 117, 251) 50%, rgb(56, 101, 249) 50%, rgb(54, 101, 250) ); + color: rgb(255, 255, 255); + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.42); +} + +.share-container-annotator .share-popup-overlay-bg .close-btn:active { + border-color: rgb(112, 12, 73); + background-color: rgb(209, 46, 142); + background-image: -webkit-gradient( linear, left top, left bottom, from(rgb(252, 124, 202)), color-stop(0.5, rgb(232, 93, 178)), color-stop(0.5, rgb(209, 46, 142)), to(rgb(255, 0, 156)) ); + background-image: -moz-linear-gradient( to bottom, rgb(252, 124, 202), rgb(232, 93, 178) 50%, rgb(209, 46, 142) 50%, rgb(255, 0, 156) ); + background-image: -webkit-linear-gradient( to bottom, rgb(252, 124, 202), rgb(232, 93, 178) 50%, rgb(209, 46, 142) 50%, rgb(255, 0, 156) ); + background-image: linear-gradient( to bottom, rgb(252, 124, 202), rgb(232, 93, 178) 50%, rgb(209, 46, 142) 50%, rgb(255, 0, 156) ); +} + + + +/* Viewer */ +.annotator-viewer .share-viewer-annotator div.share-text-annotator, +.annotator-viewer .share-viewer-annotator div.share-button{ + border-top: 0; + padding: 0; + background-size: 2em; + margin-top: -0.2em; + top: -0.5em; + font-style: normal; +} + + + +/* Buttons */ +.share-container-annotator .share-facebook-annotator { + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wDDBEyHq7FE8kAAAo8SURBVFjDtZhZjF1XlYa/tfY559atcs0uDxnsJN0iGAGJcIgYgkAgoEULCYH6oZtIIPGAExwgQYQExAsSCgmJEcIMfkCAQOEhQjSIILUYlAi6W93CYkg6jSUnHmJXYlelXNOtutPei4e9z1DBDlO40tW955x99vn3Wv//r7WPkD53f+0o9xzYH/8fedypyKggowgIgvHifgSwOGuwENaD+e49B66zu488xj0ffMWWcdz5pf/mvtteC8BdR373MhX3rpHC3ZQ7udo5yf5eAIMZPthGf+D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AxXH+VJnNJ6HEBTrVmPVy07wGqhIwbwwGgZFWxthojg+YNNRbprxMawmuqjpVN6Rb9ykX9cG4mOi3rkq9DzA+VtBqZXT7ARWB14POTDqfu+HS8lqv125ldvncNgvBokuJWPlAMWl0Q7GkqUZfFIl1WZ0DyV5AxSW/pXI3UTUzoVU4u2xulOHQ6Gz0enk27MpdoK+ffjiM5SvHl1bWl9Y6A/5xzwRz022zgIGIGVaZeZN3qeuJxy42t0n565vG4nKf+cUe8ws95he6XFgbsLLua6NGMRMLJiIqtmf3NnbNtu3JM6tmvvfUbHZuvipOt95yYNfxjeu+7Mb2vPtV+2aDaibHTq/J4oWu9Qci0afURFRiqWpWmLLjcZRlc/tkwexklhpZwwg4heXVHmfPbxoEEQIigXauduXOEdm7u23zi5s8cXzBT8nxu985df8XP3D/mUEG8Kapb5/ztI6c2Che/j+Pu5fsu2Y8XP+SaetsBlntDGzgY5VGIneaZi44RGt1lwKxaq8cwBwWAjOTBTOTuZgFEwKtXGR6PEPFwvGnO3JqfkVm9MQPrmn970MfuP/MAMB9/Lb3cvsDR3nnayeeHm11n+l0s6tPPZftWFwe6MCbFFlmzjlxTsmcok5QdWSqqNO4cXKKU0WzyEOXuXisghNJv6DOyITEX2zQ98wvdjl2asWWlpY6O90T/76n+NVnHzj84DGAz9xyfUzxHQffz6HD3+TTB2/KO/zDqxcGe/75wmDnDV7a0yIuvv55XvNqUvYwjY5bU7skZRtgkN4UYLH3CxgSQowsZhaGwxYrZ2eypx+dcScfvu/wQ08B3HnwPdx3+Hu1H9x+8Ga+cPg7HLntSk5y42QvtHcGdMIHXKphYFX/0XzZljyNurczq984WP32oX4Zb2CCqpgKvUyHSy1WFj57+MebAHfc+m8c+sqDjbY1fe740Ps49OVvAXDngTfj3ax4b5hPXGpugSykM89/v9sc98clTxtl1amSuYFN9/6DT359AMCtH7yZrxz5TjX+DwV2mkY3fbDAAAAAAElFTkSuQmCC'); +} + + +.share-container-annotator .share-twitter-annotator { + background-image: url('data:image/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Rk/0yXK7tx6OJ8b1yFhO7MmnjdnCidSMkcZAaZU4ZOyCyMCjLn68ipWElUqEK8VyEzIcK1/cRumE7lTFbaW4PC7fz+00eGbxRLY+nzU39032+8dvBzR+Jef+rmzR2b7cRSOONi6XNu7WaVdWKudYER+B8krOlxzXzfXZ/JON97Y0Yvgi2hy391eWivD0V2HHvsXyZf/s5f/NOT/3oGIPrdT/weP3zxv5m9fv+bNzz/jVcW9ty4/6RMbJofllIikkZ+54lqa8jYSFVJREgiz8REhUh8oo/D6UOkECNEXjqIEIaVcS4r7eWFzF1cXsl2Pf2lJ3pnX//iA48f/vEYte6+514efeRhbv39+/VXL5z4pYv77/joyp7rby07k7NeEmUcwaZEq8skHetlauRcOHypw8JcOB80C/eg5TDrzp1+Y8sPnjlW5sOnH3ziyTcB7rzzTo4ePTpy8SfvvpsvP/ooAJ/5yO2TMbZVRKYtiuNaRUZnN/Vp1egc0TY4l5bW0bA/h5HWM0Ewc47c0uTSan9m7kuPP5EDHDx4kCNHjlxewh06dIjDhw83n2/7w0+zTaoxpWuIKkJ9jC7vVU237tS1PpvRm5zkmRdf5uy3/r15a3p6mqWlpebz/wJ5Ut7CxANClQAAAABJRU5ErkJggg=='); +} + + +.share-container-annotator .share-google-annotator { + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3AsJEzYNSj34jgAACUBJREFUWMO9mF1sHNUVx3/3zuxs1t7EEEOcDxJBGycCFBMaRzFSw1v5KN9BSA1QaEQfEBVtpJYWUKMQwUMlmhdo+oZQRVNCQoooaqAEAX0oUqkKIQ2IKNAmNiixieP4c2d3557Th70zmV2veaAVK408M75z7v98/c8519D8M/7S3PPX+RPAzO8smMnpurQCCIAQkJduumXDgsAurjvXtGakcxkHVt5JoElb6UYNrjjG5CX7MRLOiWKJUTZHddIVCtgAjaKCvHLwk0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DGqyokTx3FJ0tShz9X3Scu7tlmsuRjUFm4yxvCvw4ep1Wps2DDABd0XEMexH3BcZoFKHDMwcBUjIyO89eabmfXSmJPc2jz9tLo39WT7maSl2IsIYRjyh927+eijj6jX6zy1axfr+vspFAqEYYi1lqhQ4NLLLuNHDz7I9m3bOHHiRLMCaZLkQLpcAmaVJ0fSqVdCYFkQBFcu6el5SVUx6YjpKSftijs6Orh10+30r+vnm70rOTs2xsjICFNTU0xNTjE+fpYDB/7M558NEUXFpjmn7RSXb2bzVNNQ4NDJ4eEtswCKL2nGx1d270th2nYZYymV5iG+UQBwviFtd3Ki7UDmO+r8mNEAeejk8PCWsN0BEKqotdkJkslNcelAZIyhVqs2Wbjd7Puls3BuBsmefbvXOtWpc66ayTD+cCaXQKblyNVo7tzGrzW+uWidsZuUz2d0m7+5mTsBNPTrHTAuqiPAItPcQWSdjvElsOnYtY07TZsBPA+u9d7kvJACrdfrhwAN0uM3YL6InC1G0Xpoc/jZEgKznluG/Vnv53D/LOWMwYkcHT1z5llV/Tw9NJ8PLAZ6wyDoK5fLA9baC77mQ3Q1IHG1eqwSx++KyIfAf1IARWCBB7kM6AbKQOFrOu1P60QVGAdGgM+A0yZXUQpApwfW6UEHc4XU//ln/MSRADEwBUwC8X8BTYvqIryh+pIAAAAASUVORK5CYII='); +} + + +.share-container-annotator .share-email-annotator { + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAABIUExURf///7KysrKyss/Pz9DQ0NHR0dLS0u7u7vDw8PHx8fLy8vPz8/T09PX19fb29vf39/j4+Pn5+fr6+vv7+/z8/P39/f7+/v///37mbPQAAAACdFJOUwCWb//7SQAAAQNJREFUSMft1M2SgyAQRtHkC0RtbP6V93/TWZikFDuQ2c7krrCKU1gKXC7f/lNX9LvuAVB6AUdw78y/V2CEXltpjEcwmabQMNMR0GwbQsPOVAF2AXqR0wiOK2DYh/RGaKTg2VTA+pgXUWgsOXorghUq1ymsDVBOQqE0QYFK+xRKBxyFQumCvVAoH4ACFbe2+f0VnkKhfLICnmsoPJ46X2l7q1u4PUYdgNdxeY2aQDp4b/40+5AyxM2NLGw+YhcisrhbM+J5e9NsPWLKUinCnw7QZBg+hCgVggfXR3QksHVezlkGVZfAADIzs5Ving1hqO6lYZyIjBzRNA7He+nXV+W3v98P7gg+L5LCf08AAAAASUVORK5CYII='); +} + +.share-container-annotator .share-button-annotator { + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC8AAAAvCAMAAABE+WOeAAAAA3NCSVQICAjb4U/gAAAATlBMVEXMzMzZ2dn////r6+vPz8/n5+f5+fnl5eXT09P19fXz8/Pg4ODX19f7+/vR0dHp6enu7u7d3d339/fj4+PV1dX////b29vt7e3h4eHx8fHJkyUPAAAAGnRSTlP//wD//////////////////////////////zDtagYAAAAJcEhZcwAACxIAAAsSAdLdfvwAAAAedEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzUuMasfSOsAAAAVdEVYdENyZWF0aW9uIFRpbWUAOC8xNi8xM7KZeroAAAFnSURBVEiJrZaNbsMgDIS9jpCQ0dBoVaW9/4vOQHD4OVIh9aRKLf0UG9scoduYqF7Qs1UUpeys3/Buo1Kbu+BnQpo7/KogznmtiMcPr0MIv1/gRHvNLy0zcXH0dPxYSh483cR/TBmBerlPKYMUYT75FWQsndJpZRUeFTIr4SGVeFjJlg8ZUb5wnU94Bn8cwr/u9X5ZLvD1iHn9SjYmW908r1t6+eM0bNGvlCSB3e4MfqOovGO62XqRO6U702SZl+LH+E9uiwHTFKSYT9+NbNH1DgJXVHiZl/urS+c86s8VD/r/UX40H9mvgZ06+VQ8qWfXV2L9pb+xX767TcuTLJifn/44hPlp9mdNMfS5NJz/p/HzCcZ5652vBzwux/kCDVKnYeYRLvxBjm+2veQPyH/AeIj/IH8D/OlvIKN2nDL/BP7c2G3hz8D/Kzuv/B9FyPvV3C/D99fw/dgN0bt/vcbud6+x94e3+gd13Qxqz2VnfwAAAABJRU5ErkJggg=='); +} + + +/* Api */ +.annotator-wrapper .annotator-hl.api { + background:rgba(0, 190, 99, 0.3); +} diff --git a/common/static/css/vendor/ova/tags-annotator.css b/common/static/css/vendor/ova/tags-annotator.css new file mode 100644 index 0000000000..e1e5828628 --- /dev/null +++ b/common/static/css/vendor/ova/tags-annotator.css @@ -0,0 +1,97 @@ +/* Editor */ +li.token-input-token { + overflow: hidden; + height: auto !important; + margin: 3px; + padding: 1px 3px; + background-color: #eff2f7; + color: #000; + cursor: default; + border: 1px solid #ccd5e4; + font-size: 11px; + border-radius: 5px; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + display: inline; + white-space: nowrap; +} + +li.token-input-token p { + display: inline; + padding: 0; + margin: 0; +} + +li.token-input-token span { + color: #a6b3cf; + margin-left: 5px; + font-weight: bold; + cursor: pointer; +} + +li.token-input-selected-token { + background-color: #5670a6; + border: 1px solid #3b5998; + color: #fff; +} + +li.token-input-input-token { + margin: 0; + padding: 0; + list-style-type: none; +} + +div.token-input-dropdown { + position: absolute; + width: 120px; + background-color: #fff; + overflow: hidden; + border-left: 1px solid #ccc; + border-right: 1px solid #ccc; + border-bottom: 1px solid #ccc; + cursor: default; + font-size: 11px; + font-family: Verdana; + z-index: 1000000000; +} + +div.token-input-dropdown p { + margin: 0; + padding: 5px; + font-weight: bold; + color: #777; +} + +div.token-input-dropdown ul { + margin: 0; + padding: 0; +} + +div.token-input-dropdown ul li { + background-color: #fff; + padding: 3px; + margin: 0; + list-style-type: none; +} + +div.token-input-dropdown ul li.token-input-dropdown-item { + background-color: #fff; +} + +div.token-input-dropdown ul li.token-input-dropdown-item2 { + background-color: #fff; +} + +div.token-input-dropdown ul li em { + font-weight: bold; + font-style: normal; +} + +div.token-input-dropdown ul li.token-input-selected-dropdown-item { + background-color: #3b5998; + color: #fff; +} + +.token-input-list{ + padding:0px; +} \ No newline at end of file diff --git a/common/static/css/vendor/ova/video-js.font.dev.svg b/common/static/css/vendor/ova/video-js.font.dev.svg new file mode 100644 index 0000000000..496cf6d102 --- /dev/null +++ b/common/static/css/vendor/ova/video-js.font.dev.svg @@ -0,0 +1,65 @@ + + + + +This is a custom SVG font generated by IcoMoon. + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/common/static/css/vendor/ova/video-js.fw.png b/common/static/css/vendor/ova/video-js.fw.png new file mode 100644 index 0000000000..2c7f208c21 Binary files /dev/null and b/common/static/css/vendor/ova/video-js.fw.png differ diff --git a/common/static/css/vendor/ova/video-js.less b/common/static/css/vendor/ova/video-js.less new file mode 100644 index 0000000000..e5d1da1120 --- /dev/null +++ b/common/static/css/vendor/ova/video-js.less @@ -0,0 +1,949 @@ +/*! +Video.js Default Styles (http://videojs.com) +Version GENERATED_AT_BUILD +Create your own skin at http://designer.videojs.com +*/ + +// To customize the player skin, change the values of the variables or edit the +// CSS below. +// (This file uses LESS. Learn more at http://lesscss.org/) + +// The base font size controls the size of everything, not just text. All +// diminensions use em-based sizes so that the scale along with the font size. +// Try increasing it to 20px and see what happens. +@base-font-size: 10px; +@touch-device-font-size: 15px; + +// The main font color controls the color of the text and the icons (font icons) +@main-font-color: #CCCCCC; // e.g. rgb(255, 255, 255) or #ffffff + +// The default color of control backgrounds is mostly black but with a little +// bit of blue so it can still be seen on all black video frames, which are +// common. +@control-bg-color: #07141E; // e.g. rgb(255, 255, 255) or #ffffff +@control-bg-alpha: 0.7; // 1.0 = 100% opacity, 0.0 = 0% opacity + +// The slider bar color is used for the progress bar and the volume bar +@slider-bar-color: #66A8CC; // e.g. rgb(255, 255, 255) or #ffffff +// The background of the progress bar and volume bar have a lined pattern that +// is created from a base64 encoded image. You can generate your own pattern at +// http://www.patternify.com/ then replace the value in the quotes with your own +@slider-bar-pattern: ~'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAP0lEQVQIHWWMAQoAIAgDR/QJ/Ub//04+w7ZICBwcOg5FZi5iBB82AGzixEglJrd4TVK5XUJpskSTEvpdFzX9AB2pGziSQcvAAAAAAElFTkSuQmCC'; +// The color of the slider background +@slider-background-color: #333333; +@slider-background-alpha: 0.9; // 1.0 = 100% opacity, 0.0 = 0% opacity + +// The "Big Play Button" is the play button that shows before the video plays. +// To center it set the align values to center and middle. The typical location +// of the button is the center, but there is trend towards moving it to a corner +// where it gets out of the way of valuable content in the poster image. +@big-play-align: left; // left, center, or right +@big-play-vertical-align: top; // top, middle, or bottom +// The button colors match the control colors by default but you can customize +// them by replace the variables (@control-bg-color) with your own color values. +@big-play-bg-color: @control-bg-color; +@big-play-bg-alpha: @control-bg-alpha; +// The font size is what makes the big play button, big. All width/height values +// use ems, which are a multiple of the font size. +// If the @base-font-size is 10px, then 3em equals 30px. +@big-play-font-size: 3em; +// Now that font size is set, the following em values will be a multiple of the +// new font size. If @big-play-font-size is 3em (30px), then setting the any of +// the following values to 2em would equal 60px. 2 * font-size +@big-play-margin: 0.5em; +@big-play-width: 4em; +@big-play-height: 2.6em; +@big-play-border-radius: 0.8em; +@big-play-border-width: 0.1em; +@big-play-border-color: #3b4249; + +/* SKIN +================================================================================ +The main class name for all skin-specific styles. To make your own skin, +replace all occurances of 'vjs-default-skin' with a new name. Then add your new +skin name to your video tag instead of the default skin. +e.g.