# HG changeset patch # User durandn # Date 1446476639 -3600 # Node ID ba9f193121c3a8cd4e7068c7fdf26d5c01a0366f # Parent 21c941c07e7cc2976730b15bc425f4dceca04af6 Adjustements on Markers scenario (now displays a "teacher" markers row) + Added a new "markers_teacher" scenario to edit the teacher markers and browse user markers diff -r 21c941c07e7c -r ba9f193121c3 server/src/remie/static/remie/css/markers.css --- a/server/src/remie/static/remie/css/markers.css Mon Nov 02 16:02:47 2015 +0100 +++ b/server/src/remie/static/remie/css/markers.css Mon Nov 02 16:03:59 2015 +0100 @@ -26,19 +26,37 @@ /* ----------------- Media Panel ----------------- */ /* ----------------------------------------------- */ -#player_container_widget_Markers_7{ +#markers_upper_container{ width: 560px !important; - height: 50px !important; margin: 0 40px !important; - top: -35px; + background: #FFFFFF none repeat scroll 0% 0%; } -#player_container_widget_Markers_7 .Ldt-Markers-Position{ +#markers_upper_container .Ldt-Markers-List, +#markers_lower_container .Ldt-Markers-List{ + background-color: #E0E0E0; +} + +#markers_lower_container{ + width: 560px !important; + margin: 0 40px !important; + background: #FFFFFF none repeat scroll 0% 0%; +} + +#markers_upper_container .Ldt-Markers-Position, +#markers_lower_container .Ldt-Markers-Position{ margin-left: -2px; width: 4px; background-color: #5a5a5a; } +.Ldt-Markers-userFilter-dropdown{ + position: relative; + top: -35px; + left: 565px; + width: 100px; +} + /* -------- Override video player style -------- */ #player_container_widget_Slider_3{ @@ -93,9 +111,10 @@ /* display: none; */ /* } */ +/* -------- Override Markers style -------- */ + .Ldt-Markers-Display, .Ldt-Markers-List { display: block; - height: 100% !important; } .Ldt-Markers-Marker{ @@ -104,7 +123,6 @@ } .Ldt-Markers-MarkerBall { - background-color: #1abacc !important; border: 3px solid white !important; border-radius: 50% !important; height: 25px !important; @@ -156,11 +174,13 @@ border-radius: 0; border-width: 2px; font-family: Open-Sans-Light; - min-height: 100px; + min-height: 25px; + max-height: 100px; padding: 10px; width: 100%; box-sizing: border-box; max-width: none; + margin-right: 5px; } .Ldt-Markers-Screen.Ldt-Markers-ScreenMain .Ldt-Markers-RoundButton { @@ -214,17 +234,3 @@ } -#player_container_widget_Markers_7 .Ldt-Markers-Inputs{ - background-color: rgba(225, 225, 225, 0); -} - -.Ldt-Markers-Screen.Ldt-Markers-ScreenMain .Ldt-Markers-Info { - position: absolute; - left: 0; - width: 100%; -} - -.Ldt-Markers-Screen.Ldt-Markers-ScreenMain .Ldt-Markers-Info .Ldt-Markers-MarkerEdit, -.Ldt-Markers-Info .Ldt-Markers-MarkerDescription{ - margin: 10px 0 0; -} \ No newline at end of file diff -r 21c941c07e7c -r ba9f193121c3 server/src/remie/static/remie/css/markers_student.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/server/src/remie/static/remie/css/markers_student.css Mon Nov 02 16:03:59 2015 +0100 @@ -0,0 +1,35 @@ +/* -------- Override Marker student scenario style -------- */ + +#markers_upper_container .Ldt-Markers-Marker:not(.Ldt-Markers-PlaceholderMarker) .Ldt-Markers-MarkerBall { + background-color: #a2cf18 !important; +} + +#markers_lower_container .Ldt-Markers-Marker:not(.Ldt-Markers-PlaceholderMarker) .Ldt-Markers-MarkerBall { + background-color: #1abacc !important; +} + +#markers_upper_container .Ldt-Markers-RoundButton { + display: none !important; +} + +#markers_upper_container .Ldt-Markers-Info{ + width: 100%; +} + +#markers_upper_container .Ldt-Markers-MarkerDescription{ + width: calc(100% - 54px); + margin-left: 29px; + margin-bottom: 10px; + margin-top: 10px; +} + +#markers_upper_container .Ldt-Markers-Inputs, +#markers_lower_container .Ldt-Markers-Inputs{ + background-color: rgba(225, 225, 225, 0); +} + + +#markers_lower_container .Ldt-Markers-Screen.Ldt-Markers-ScreenMain .Ldt-Markers-Info .Ldt-Markers-MarkerEdit, +#markers_lower_container .Ldt-Markers-Info .Ldt-Markers-MarkerDescription{ + margin: 10px -5px 0; +} \ No newline at end of file diff -r 21c941c07e7c -r ba9f193121c3 server/src/remie/static/remie/css/markers_teacher.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/server/src/remie/static/remie/css/markers_teacher.css Mon Nov 02 16:03:59 2015 +0100 @@ -0,0 +1,62 @@ +/* -------- Override Markers teacher scenario style -------- */ + + +#markers_upper_container .Ldt-Markers-Marker:not(.Ldt-Markers-PlaceholderMarker) .Ldt-Markers-MarkerBall { + background-color: #a2cf18 !important; +} + +#markers_lower_container .Ldt-Markers-Marker:not(.Ldt-Markers-PlaceholderMarker) .Ldt-Markers-MarkerBall { + background-color: #1abacc !important; +} + +#markers_upper_container .Ldt-Markers-Info{ + width: 100%; +} + +#markers_lower_container .Ldt-Markers-Info{ + width: 100%; +} + + +#markers_upper_container .Ldt-Markers-Screen.Ldt-Markers-ScreenMain .Ldt-Markers-Info .Ldt-Markers-MarkerEdit, +#markers_upper_container .Ldt-Markers-MarkerDescription{ + width: calc(100% - 54px); + margin-left: 29px; + margin-bottom: 10px; + margin-top: 10px; +} + +#markers_lower_container .Ldt-Markers-Screen.Ldt-Markers-ScreenMain .Ldt-Markers-Info .Ldt-Markers-MarkerEdit, +#markers_lower_container .Ldt-Markers-MarkerDescription{ + width: calc(100% - 54px); + margin-left: 29px; + margin-bottom: 10px; + margin-top: -10px; +} + +#markers_upper_container .Ldt-Markers-Inputs, +#markers_lower_container .Ldt-Markers-Inputs{ + background-color: rgba(225, 225, 225, 0); +} + + +#markers_upper_container .Ldt-Markers-Screen.Ldt-Markers-ScreenMain .Ldt-Markers-RoundButton.Ldt-Markers-Create{ + background-color: #a2cf18 !important; + border-color: #a2cf18 !important; +} + +#markers_upper_container .Ldt-Markers-Screen.Ldt-Markers-ScreenMain .Ldt-Markers-RoundButton.Ldt-Markers-Create:hover{ + border-color: #5a5a5a !important; +} + +#markers_lower_container .Ldt-Markers-RoundButton { + display: none !important; +} + +#markers_upper_container .Ldt-Markers-ScreenMain { + margin-top: -32px; +} + +#markers_upper_container .Ldt-Markers-Screen.Ldt-Markers-ScreenMain .Ldt-Markers-RoundButton{ + top: 40px; +} \ No newline at end of file diff -r 21c941c07e7c -r ba9f193121c3 server/src/remie/static/remie/metadataplayer/Markers.css --- a/server/src/remie/static/remie/metadataplayer/Markers.css Mon Nov 02 16:02:47 2015 +0100 +++ b/server/src/remie/static/remie/metadataplayer/Markers.css Mon Nov 02 16:03:59 2015 +0100 @@ -19,8 +19,7 @@ .Ldt-Markers-Position { background: #fc00ff; - position: absolute; - top: -1px; + position: relative; left: 0; margin-left: -1px; width: 2px; @@ -56,7 +55,8 @@ line-height: 20px; } -.Ldt-Markers-RoundButton.Ldt-Markers-CannotCreate{ +.Ldt-Markers-RoundButton.Ldt-Markers-CannotCreate, +.Ldt-Markers-RoundButton.Ldt-Markers-PreviewDelete{ background-color: #999999; border-color: #797979 #444444 #222222 #696969; } @@ -72,14 +72,12 @@ } .Ldt-Markers-Info{ - height: 125px; width: 90%; display: inline-block; margin: 0px; } .Ldt-Markers-Screen{ - height: 125px; margin: 0px; } @@ -101,7 +99,10 @@ } a.Ldt-Markers-Close { - position: absolute; right: 2px; + position: relative; + float: right; + right: 2px; + top: 2px; display: inline-block; width: 17px; height: 17px; margin: 4px; background: url(img/widget-control.png); } @@ -116,12 +117,12 @@ } .Ldt-Markers-MarkerDescription{ - height: 45%; width: 90%; border: 1px solid #68273c; margin: 10px; padding: 10px; background: #ffffff; + overflow: scroll; } .Ldt-Markers-MarkerDescription:hover{ @@ -129,7 +130,6 @@ } .Ldt-Markers-MarkerEdit{ - height: 70%; width: 100%; margin: 10px; } @@ -179,7 +179,8 @@ border-color: #222222 #e87d9f #f0adc3 #68273c; } -.Ldt-Markers-RoundButton.Ldt-Markers-CannotCreate:hover{ +.Ldt-Markers-RoundButton.Ldt-Markers-CannotCreate:hover, +.Ldt-Markers-RoundButton.Ldt-Markers-PreviewDelete:hover{ background-color: #999999; border-color: #797979 #444444 #222222 #696969; } \ No newline at end of file diff -r 21c941c07e7c -r ba9f193121c3 server/src/remie/static/remie/metadataplayer/Markers.js --- a/server/src/remie/static/remie/metadataplayer/Markers.js Mon Nov 02 16:02:47 2015 +0100 +++ b/server/src/remie/static/remie/metadataplayer/Markers.js Mon Nov 02 16:03:59 2015 +0100 @@ -6,6 +6,9 @@ IriSP.Widgets.Markers.prototype = new IriSP.Widgets.Widget(); IriSP.Widgets.Markers.prototype.defaults = { + pre_draw_callback: function(){ + return this.importUsers(); + }, annotation_type: "markers", line_height: 8, background: "#e0e0e0", @@ -32,12 +35,18 @@ custom_send_button: false, custom_cancel_button: false, preview_mode: false, + filter_per_user: false, + api_users_endpoint: "", + make_username_string_function: function(params){ + return params.username ? params.username : "Anonymous"; + }, + hide_if_empty: false, }; IriSP.Widgets.Markers.prototype.template = '