This repository was archived by the owner on Aug 12, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed
Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ function update(node){
8585 break ;
8686 case "url" :
8787 var url = player . getVideoUrl ( ) ;
88- document . getElementById ( "url" ) . innerHTML = "<a href=\"" + url + "\">" + url + "</a>" ;
88+ document . getElementById ( "url" ) . innerHTML = "<a href=\"" + url + "\" target=\"_blank\" >" + url + "</a>" ;
8989 break ;
9090 case "embedCode" :
9191 var embedCode = player . getVideoEmbedCode ( ) ;
Original file line number Diff line number Diff line change 5151 < td > Current Player Rate:</ td >
5252 < td >
5353 <!-- div for displaying rate status for a method you will implement -->
54- < span id ="currentState "> </ span >
54+ < span id ="currentRate "> </ span >
5555 </ td >
5656 </ tr >
5757 </ table >
Original file line number Diff line number Diff line change @@ -52,5 +52,7 @@ function onPlaybackRateChange(event){
5252 // Implment this function to display the rate of the player on the page
5353 var currentRate ;
5454
55+ // You code goes here
56+
5557 document . getElementById ( 'currentRate' ) . innerText = currentRate ;
5658}
Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ function onPlayerReady (){
2020 setTimeout ( pauseVideo , 4000 ) ;
2121 setTimeout ( loadNewVideo , 6000 ) ;
2222 setTimeout ( stopVideo , 8500 ) ;
23- // Uncommend the following line after implmenting getContent
24- //setInterval(getContent, 1000);
23+ setInterval ( getContent , 1000 ) ;
2524} ;
2625
2726function pauseVideo ( ) {
You can’t perform that action at this time.
0 commit comments