jekyll-poly 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/jekyll-poly.rb +1 -21
- data/lib/jekyll-poly/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7851d1abb3cdf9bdc6c4111eaf672f18750bcf3c59222870318e099f3b7cd848
|
4
|
+
data.tar.gz: '03292241c3efdcb131572d6048a53821991fe78da0f173f6b5533472fac6236c'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 334d8336e6c27ce4c197fb41cf12eabd1de2b01f8616bc59fbddb1006a8ddab4b7eada88256893caca057cadeedde97c7ef35f8700e685a26979ddc2d357cbb9
|
7
|
+
data.tar.gz: b0b8c299845d176098e564b51509204e9f58dc16b99e7b50919c8c1558bf27ba4ce7565efdd1e380f1c153afd6bbfabbc3b7663773446ab9621e15b234de525c
|
data/lib/jekyll-poly.rb
CHANGED
@@ -8,27 +8,7 @@ class PolyEmbed < Liquid::Tag
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def generate_iframe(poly_id)
|
11
|
-
%Q{<style>
|
12
|
-
.embed-container {
|
13
|
-
position: relative;
|
14
|
-
padding-bottom: 56.25%;
|
15
|
-
height: 0;
|
16
|
-
overflow: hidden;
|
17
|
-
max-width: 100%;
|
18
|
-
}
|
19
|
-
.embed-container iframe,
|
20
|
-
.embed-container object,
|
21
|
-
.embed-container embed {
|
22
|
-
position: absolute;
|
23
|
-
top: 0;
|
24
|
-
left: 0;
|
25
|
-
width: 100%;
|
26
|
-
height: 100%;
|
27
|
-
}
|
28
|
-
</style>
|
29
|
-
<div class=".embed-container">
|
30
|
-
<iframe width="100%" height="480px" src="https://poly.google.com/view/#{ poly_id }/embed" frameborder="0" style="border:none;" allowvr="yes" allow="vr; xr; accelerometer; magnetometer; gyroscope; autoplay;" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel="" ></iframe>
|
31
|
-
</div>}
|
11
|
+
%Q{<style>.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%;}.embed-container iframe,.embed-container object,.embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%;}</style><div class=".embed-container"><iframe width="100%" height="480px" src="https://poly.google.com/view/#{ poly_id }/embed" frameborder="0" style="border:none;" allowvr="yes" allow="vr; xr; accelerometer; magnetometer; gyroscope; autoplay;" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel="" ></iframe></div>}
|
32
12
|
end
|
33
13
|
|
34
14
|
def generate_from_template(context, tmpl_path, poly_id)
|
data/lib/jekyll-poly/version.rb
CHANGED