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 +4 -4
- data/app/assets/javascripts/tramway/landing/application.js +19 -0
- data/app/assets/javascripts/tramway/landing/{footer.js.coffee → footer.js} +0 -0
- data/app/views/tramway/landing/blocks/templates/_section_with_image_and_text.html.haml +1 -1
- data/lib/tramway/landing/version.rb +1 -1
- metadata +5 -5
- data/app/assets/javascripts/tramway/landing/application.js.coffee +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60e8dc5855814eb2761e9dfff2135310458382cf84302a4545694d00a86a0130
|
4
|
+
data.tar.gz: 43d15831ee5fae4d2a0a5321d883687f0e62f85552fb5865694ee69edb93d2a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+
});
|
File without changes
|
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.
|
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-
|
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
|
26
|
-
- app/assets/javascripts/tramway/landing/footer.js
|
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.
|
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)
|