vzaar_uploader 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f90a317b00610765d621dd31297b856cb41cf08
|
4
|
+
data.tar.gz: 8778be68048f495dde47b5eacad086c2683181d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fc65d22bfe6a30e61e44fa3774b8b821842e344f5acab49183b911f4501f8bd1f77f818b3f9f352fd91ba6acccee9aa05112c9e2b305661ec31b57f5f8854aa
|
7
|
+
data.tar.gz: 1009953a3ae7a3b9d1419d7f8e326476c97e675662e5f3fa486fd8d897e3b91ea1cc9e21f2e8e9fae3fbe36abc0850d5b64a05b72f2b0eaad7e67ebe5b6ad5e4
|
@@ -4,7 +4,9 @@ $ ->
|
|
4
4
|
video = $(this)
|
5
5
|
src = $(this).attr('src') || $(this).find('source').attr('src')
|
6
6
|
if src.search('vzaar.com') >= 0
|
7
|
-
|
7
|
+
pattern = /\/\/view.vzaar.com\/([0-9]*)\/player/i
|
8
|
+
match = pattern.exec($(this).attr('src'))
|
9
|
+
$(this).replaceWith("""<iframe id="vzvd-#{match[1]}" #{if video.attr("width") then "width='#{video.attr("width")}'" else ""} #{if video.attr("height") then "width='#{video.attr("height")}'" else ""} name="vzvd-#{match[1]}" title="video player" class="embed-responsive-item" type="text/html" allowfullscreen allowTransparency="true" mozallowfullscreen webkitAllowFullScreen src="#{src}"></iframe>""")
|
8
10
|
|
9
11
|
$('video').not('exclude_vzaar_iframe').each ->
|
10
12
|
$(this).VzaarPlayer()
|
@@ -1,4 +1,4 @@
|
|
1
1
|
<div class="form-group">
|
2
|
-
<input name="meta[
|
2
|
+
<input name="meta[enable_vzaar_featured_video]" type="hidden" value="false"/>
|
3
3
|
<label class="check0"><%= check_box_tag 'meta[enable_vzaar_featured_video]', true, @post_type.get_option('enable_vzaar_featured_video', false) %> Enable Featured Video</label>
|
4
4
|
</div>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vzaar_uploader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Owen Peredo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|