tramway-landing 2.0.1.1 → 2.0.1.2

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
  SHA256:
3
- metadata.gz: ded374af38a09aabfdedce152a16dd68544db986c1a51d751e92278a54ac4b5b
4
- data.tar.gz: 49d1869b8fa72ae94dfa83af9676265487b64d17022fa120961ee2a4b213baa6
3
+ metadata.gz: 60e8dc5855814eb2761e9dfff2135310458382cf84302a4545694d00a86a0130
4
+ data.tar.gz: 43d15831ee5fae4d2a0a5321d883687f0e62f85552fb5865694ee69edb93d2a6
5
5
  SHA512:
6
- metadata.gz: 8dd6a295278324f5192d1206a2bf5e2e38c7457d543a3cc48de62967c1b9b73f89766b9ae0838abcd7de3f4b03db86f041fc24abeb701a24b479369bcf2769a3
7
- data.tar.gz: 146daaa7d8262cf353c81ddfa61b6d5e5d849f0cd3f632381b8e7458be1ca35adfe497145ea196d41353b9f4e0de45167794698bdd0683749a4b0637ed9d42d4
6
+ metadata.gz: 7102c3b6501d02b1edfac4d389b2da9ad20b42aa361bd2ed68db5ee9892f58c5123302503a60852f5398a44c7eacfce421abbbbb23253e0116e8152f3276d226
7
+ data.tar.gz: 57643b2e8c6123712cb7d62de63779afa258b35f7189860a3e0b86fc2bfb28797fc3321d331a4897746af293918570eeac6ce2adfd9fec4d9692edd0aeffad0b
@@ -0,0 +1,19 @@
1
+ //= require tramway/core/application
2
+ //= require_tree .
3
+
4
+ $(document).ready(function() {
5
+ $('.header-buttons').click(function() {
6
+ const anchor = $(this).data('anchor');
7
+ $(window).scrollTop($(anchor).offset().top);
8
+ });
9
+
10
+ const iframe_selectors_for_video = ['iframe[src*="vk.com"]', 'iframe[src*="youtu.be"]', 'iframe[src*="youtube.com"]'];
11
+ for (const selector in iframe_selectors_for_video) {
12
+ $(selector).each(function() {
13
+ width = $(this).parents('div').first().width();
14
+ height = width / 16 * 9;
15
+ $(this).width(width);
16
+ $(this).height(height);
17
+ });
18
+ }
19
+ });
@@ -1,5 +1,5 @@
1
1
  .row.page{ id: block.anchor }
2
2
  .col-md-7
3
- = image_tag block.background, class: 'img-fluid'
3
+ = image_tag block.background.url, class: 'img-fluid'
4
4
  .col-md-5{ style: 'text-align: justify' }
5
5
  = render 'tramway/landing/blocks/templates/text', block: block
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Landing
5
- VERSION = '2.0.1.1'
5
+ VERSION = '2.0.1.2'
6
6
  end
7
7
  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: 2.0.1.1
4
+ version: 2.0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-11 00:00:00.000000000 Z
11
+ date: 2020-03-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Landing Engine for your Rails projects
14
14
  email:
@@ -22,8 +22,8 @@ files:
22
22
  - Rakefile
23
23
  - app/assets/config/tramway_landing_manifest.js
24
24
  - app/assets/javascripts/justified_images.js
25
- - app/assets/javascripts/tramway/landing/application.js.coffee
26
- - app/assets/javascripts/tramway/landing/footer.js.coffee
25
+ - app/assets/javascripts/tramway/landing/application.js
26
+ - app/assets/javascripts/tramway/landing/footer.js
27
27
  - app/assets/javascripts/tramway/landing/smooth-scroll.js
28
28
  - app/assets/stylesheets/tramway/landing/application.sass
29
29
  - app/assets/stylesheets/tramway/landing/collage.css.sass
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
100
  requirements: []
101
- rubygems_version: 3.0.3
101
+ rubygems_version: 3.1.2
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: Landing Engine for your Rails projects
@@ -1,15 +0,0 @@
1
- #= require tramway/core/application
2
- #= require_tree .
3
-
4
- $(document).ready ->
5
- $('.header-buttons').click ->
6
- anchor = $(this).data('anchor')
7
- $(window).scrollTop $(anchor).offset().top
8
-
9
- iframe_selectors_for_video = ['iframe[src*="vk.com"]', 'iframe[src*="youtu.be"]', 'iframe[src*="youtube.com"]']
10
- for selector in iframe_selectors_for_video
11
- $(selector).each ->
12
- width = $(this).parents('div').first().width()
13
- height = width / 16 * 9
14
- $(this).width(width)
15
- $(this).height(height)