Advertisement
phpface

Untitled

Nov 26th, 2015
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. try {
  2.     if( jQuery('#video_kgvid_0_caption a').attr('href') !='' ){
  3.  
  4.         var $downloadURL = jQuery('#video_kgvid_0_caption a').attr('href');
  5.         var strVar="";
  6.         strVar += "<div class=\"col-sm-3 col-xs-6 box-download\">";
  7.         strVar += ' <a href='+$downloadURL+' class=\"option download\" id=\"off\">';
  8.         strVar += "     <i class=\"fa fa-download\"><\/i>";
  9.         strVar += "     <span class=\"option-text\">Download<\/span>";
  10.         strVar += " <\/a>";
  11.         strVar += "<\/div>";
  12.  
  13.         jQuery( '.video-options' ).append( strVar );
  14.     }      
  15. } catch (e) {
  16.         // TODO: handle exception
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement