Commit 186fee6b by Kyle Fiedler

merged in kf-highlight-speed

parents 129b42a0 e0ad7491
...@@ -7,6 +7,7 @@ div.book-wrapper { ...@@ -7,6 +7,7 @@ div.book-wrapper {
@extend .tran; @extend .tran;
ul#booknav { ul#booknav {
font-size: 12px;
a { a {
color: #000; color: #000;
......
...@@ -166,6 +166,13 @@ div.course-wrapper { ...@@ -166,6 +166,13 @@ div.course-wrapper {
} }
} }
} }
section.tutorials {
ul {
list-style: disc outside none;
margin-left: lh();
}
}
} }
&.closed { &.closed {
......
...@@ -165,6 +165,10 @@ section.course-content { ...@@ -165,6 +165,10 @@ section.course-content {
li { li {
cursor: pointer; cursor: pointer;
@include inline-block(); @include inline-block();
&.active {
font-weight: bold;
}
} }
} }
} }
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<li><a id="video_control" class="pause">Pause</a></li> <li><a id="video_control" class="pause">Pause</a></li>
<li> <li>
<div id="vidtime">0:00/0:00</div> <div id="vidtime">0:00 / 0:00</div>
</li> </li>
</ul> </ul>
......
...@@ -33,15 +33,21 @@ ajax_video=good; ...@@ -33,15 +33,21 @@ ajax_video=good;
loadNewVideo(streams["1.0"], ${ position }); loadNewVideo(streams["1.0"], ${ position });
function add_speed(key, stream) { function add_speed(key, stream) {
var id = 'speed_' + stream; var id = 'speed_' + stream;
//TODO: this should be smarter and know which video is first selected when we have
// video speed as an option/parameter per user that is saved
if (key == 1.0) {
$("#video_speeds").append(' <li class=active id="'+id+'">'+key+'x</li>');
} else {
$("#video_speeds").append(' <li id="'+id+'">'+key+'x</li>'); $("#video_speeds").append(' <li id="'+id+'">'+key+'x</li>');
}
$("#"+id).click(function(){ $("#"+id).click(function(){
change_video_speed(key, stream); change_video_speed(key, stream);
$(this).siblings().removeClass("active"); $(this).siblings().removeClass("active");
$(this).addClass("active"); $(this).addClass("active");
}); });
} }
var l=[] var l=[]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment