Commit 186fee6b by Kyle Fiedler

merged in kf-highlight-speed

parents 129b42a0 e0ad7491
......@@ -7,6 +7,7 @@ div.book-wrapper {
@extend .tran;
ul#booknav {
font-size: 12px;
a {
color: #000;
......
......@@ -166,6 +166,13 @@ div.course-wrapper {
}
}
}
section.tutorials {
ul {
list-style: disc outside none;
margin-left: lh();
}
}
}
&.closed {
......
......@@ -165,6 +165,10 @@ section.course-content {
li {
cursor: pointer;
@include inline-block();
&.active {
font-weight: bold;
}
}
}
}
......
......@@ -21,7 +21,7 @@
<li><a id="video_control" class="pause">Pause</a></li>
<li>
<div id="vidtime">0:00/0:00</div>
<div id="vidtime">0:00 / 0:00</div>
</li>
</ul>
......
......@@ -33,15 +33,21 @@ ajax_video=good;
loadNewVideo(streams["1.0"], ${ position });
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>');
}
$("#"+id).click(function(){
change_video_speed(key, stream);
$(this).siblings().removeClass("active");
$(this).addClass("active");
});
$("#"+id).click(function(){
change_video_speed(key, stream);
$(this).siblings().removeClass("active");
$(this).addClass("active");
});
}
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