Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1.  
  2. arr = [];
  3. obj = jQuery.parseJSON($('.play.playable').attr('data-list'));
  4. $.each(obj, function(i, v) {
  5. if (v.playable_url) arr.push('https://storage.bananastreet.ru' + v.playable_url);
  6. });
  7. $.each(arr, function(key, value) {
  8. $('<iframe></iframe>').hide().attr('src', value).appendTo($('body')).load(function() {
  9. var that = this;
  10. setTimeout(function() {
  11. $(that).remove();
  12. }, 100);
  13. });
  14. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement