tramway-landing 1.4.5 → 1.4.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 581631f11fea187d843b2d35471cd3e2e5563e9a401441e9b852fa7d31904f30
4
- data.tar.gz: 15fbf07dc4b090b2cf07d6d5c96e44bd540df8a39aa205de30a09fd0fa916b55
3
+ metadata.gz: 0c0eb6c9cd6f3465274d80a5b9e9c3e8b6cc794b1f3a6b2f6b36e3a8bd411797
4
+ data.tar.gz: ee9bbda89220272bfd1e8cbd772f25c6db18e134ae0dc86d1cc42e73183ce45a
5
5
  SHA512:
6
- metadata.gz: 27dda1c39258c2dca027720b943ba1af1b612b2ed2f3cdb148c9ba1eddfe1e5837f124c2a77ee873dbd4b6c04c47b7a3cf2bb52f3e1fccd9931cf820e1095c5d
7
- data.tar.gz: 4de79ff6b8f513c8cf37b4d7b3ac1e73d4454d6309da32d17b1c2bc8d1454b63e3dc2d92ac958e32fc75c0e84acd12629c8f8e4cb06b1ba26a72341d3cf5c83f
6
+ metadata.gz: 56135cbee52361e3014bdb2a2e3c2f599e2636a594588f8031aa6ce07a4b42cbcc91fcb8cf019959e338ae0e764f7d151b52aea9635ebdc90146bc374da3cd8d
7
+ data.tar.gz: 0c8f408fea10a8ec2ddeb14ded492fba2265dc2e46e54eece7c9130d341e7613462ec70e7d8a5811940c6d304e6d0e1798562d89c936b4267d00a85d9f7910d5
@@ -7,3 +7,11 @@ $(document).ready ->
7
7
  $('.header-buttons').click ->
8
8
  anchor = $(this).data('anchor')
9
9
  $(window).scrollTop $(anchor).offset().top
10
+
11
+ iframe_selectors_for_video = ['iframe[src*="vk.com"]', 'iframe[src*="youtu.be"]']
12
+ for selector in iframe_selectors_for_video
13
+ $(selector).each ->
14
+ width = $(this).parents('div').first().width()
15
+ height = width / 16 * 9
16
+ $(this).width(width)
17
+ $(this).height(height)
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Landing
3
- VERSION = '1.4.5'
3
+ VERSION = '1.4.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-landing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.5
4
+ version: 1.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-10 00:00:00.000000000 Z
11
+ date: 2019-03-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Landing Engine for your Rails projects
14
14
  email: