JSFiddle - React, Tailwind, and code Playground

by bohdantheone

HTML

<html>
 <head>
  <title>Тег DIV</title>
     <script type="text/javascript">
    
      function youtubeFeedCallback(json){ 
         var j=json["data"]["duration"];
         var h=Math.floor(j / 3600);
         var m=(Math.floor(j / 60) - (Math.floor(j / 3600) * 60));
         var s=j % 60;
          
       
         var hm="час.";
         var mm="мин.";
         var sm="сек.";
           
       
         if(h!='0')
         {document.write("Продолжительность: "+ h + hm + m + mm + s + sm);
        }
         else if(h=='0' && m=='0'){
         document.write("Продолжительность: " + s + sm);}
         else
         { document.write("Продолжительность: " + m + mm + s + sm);}
     
         
         }
        
</script>
     <script type="text/javascript" src="http://gdata.youtube.com/feeds/api/videos/VJ2GA-t2dBY?v=2&amp;alt=jsonc&amp;callback=youtubeFeedCallback&amp;prettyprint=true"></script>
 
 </head>
 <body>
<table border=1>
<tr>
<td>
  <div class="block1"></div>
</td>
</tr>
</table>
 </body>
</html>