diff --git a/examples/basic/upload.html b/examples/basic/upload.html index 2ef45356..3c1e85ce 100644 --- a/examples/basic/upload.html +++ b/examples/basic/upload.html @@ -1,9 +1,10 @@
- + + - Drag & drop video or image to upload! +

Drag & drop videos, songs, or images to upload!

@@ -22,11 +23,12 @@ $('html').upload(function resize(eve, up){ }) gun.get('test').get('paste').on(function(data){ - $('video, img').css({display: 'none'}) + $('video, audio, img').css({display: 'none'}) if(!data){ return } var type = data.split(';')[0], ui; if(type.indexOf('image') + 1){ ui = $("img") } if(type.indexOf('video') + 1){ ui = $('video') } + if(type.indexOf('audio') + 1){ ui = $('audio') } ($(ui).css({display: 'block'}).get(0)||{}).src = data; }) \ No newline at end of file diff --git a/examples/basic/video.html b/examples/basic/video.html index 2d0ddd8c..22dc64c8 100644 --- a/examples/basic/video.html +++ b/examples/basic/video.html @@ -1,9 +1,8 @@ - +
- Record or
@@ -13,27 +12,36 @@ \ No newline at end of file