pageflow-before-after 0.4.0 → 0.5.0

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: 5fd332b27a95e066bd3805dea138e9f4b26af8f8
4
- data.tar.gz: f8165d131b391121f1300f74fcd6f77703aae1ab
3
+ metadata.gz: 34a129a02915f1c5a3ca5b4c9913b6eb3883d89c
4
+ data.tar.gz: 233127e79d416677fa810385573b1515cbdddf42
5
5
  SHA512:
6
- metadata.gz: 2ab84046cd1e157768130f37008239b996341b08eb86da13c484e0ff8a324e979bbeeddab603f3e4ac061a8c5de3a6a5536f8dfb684c0a4c51acea859b7dede5
7
- data.tar.gz: aff2f522693163c17f060c5ea4ea2ef83e3260bb7736b0aea9850cd7aa645898455a0b20386f40159ee47f4e538433da76c893465cbc4d39a43feb9e20263b08
6
+ metadata.gz: aadbec2bd9aff49fb03693b1a5e7a01d670c94145a4b612d4e312353b119e4a61d6cef7a4a7194b6bae0f575c3e0c03d7b6ee0c61f52661908f17be6558aa065
7
+ data.tar.gz: 5ff673f2b1bcd8fd141586062c81e94c254b744b5021399985e12eb744c8ea4b7a1b7852c5aca70c525bc7062852c784f250b5e21c9e5de80d45d7fc8a2e9181
@@ -1,5 +1,14 @@
1
1
  # CHANGELOG
2
2
 
3
+ ### Version 0.5.0
4
+
5
+ 2016-09-09
6
+
7
+ [Compare changes](https://github.com/codevise/pageflow-before-after/compare/v0.4.0...v0.5.0)
8
+
9
+ - Add support for slim player control theme variant
10
+ ([#15](https://github.com/codevise/pageflow-before-after/pull/15))
11
+
3
12
  ### Version 0.4.0
4
13
 
5
14
  2016-06-09
data/Gemfile CHANGED
@@ -2,9 +2,3 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in chart.gemspec
4
4
  gemspec
5
-
6
- # Rails 4 compat
7
- gem 'activeadmin', :git => 'https://github.com/codevise/active_admin.git', :branch => 'rails4'
8
- gem 'ransack'
9
- gem 'inherited_resources', '1.4.1'
10
- gem 'formtastic', '2.3.0.rc2'
@@ -6,9 +6,11 @@ pageflow.pageType.register('before_after', _.extend({
6
6
  prepareNextPageTimeout: 0,
7
7
 
8
8
  enhance: function(pageElement, configuration) {
9
+ var that = this;
10
+
9
11
  pageElement.addClass('hide_content_with_text');
10
12
 
11
- pageElement.find('.play_button').on('mousedown touchstart', function() {
13
+ pageElement.find('.play_button').on('click', function() {
12
14
  pageflow.hideText.activate();
13
15
  });
14
16
 
@@ -16,6 +18,14 @@ pageflow.pageType.register('before_after', _.extend({
16
18
  pageflow.hideText.deactivate();
17
19
  e.stopPropagation();
18
20
  });
21
+
22
+ this.removeUnplayedClass = function() {
23
+ pageElement.find('.content_and_background').removeClass('unplayed');
24
+ };
25
+
26
+ this.enableScrollIndicator = function() {
27
+ that.scrollIndicator.enable();
28
+ };
19
29
  },
20
30
 
21
31
  prepare: function(pageElement, configuration) {
@@ -34,12 +44,18 @@ pageflow.pageType.register('before_after', _.extend({
34
44
  pageElement.find(".before_after").before_after();
35
45
  pageElement.find(".before_after").before_after("refresh");
36
46
  pageElement.find('.scroller').scroller("refresh");
47
+ pageElement.find('.content_and_background').addClass('unplayed');
37
48
  },
38
49
 
39
50
  activated: function(pageElement, configuration) {
51
+ pageflow.hideText.on('activate', this.removeUnplayedClass);
52
+ pageflow.hideText.on('deactivate', this.enableScrollIndicator);
40
53
  },
41
54
 
42
- deactivating: function(pageElement, configuration) {},
55
+ deactivating: function(pageElement, configuration) {
56
+ pageflow.hideText.off('activate', this.removeUnplayedClass);
57
+ pageflow.hideText.off('deactivate', this.enableScrollIndicator);
58
+ },
43
59
 
44
60
  deactivated: function(pageElement, configuration) {},
45
61
 
@@ -23,7 +23,7 @@
23
23
  </div>
24
24
 
25
25
  <div class="content">
26
- <div class="controls">
26
+ <div class="controls" data-role="player_controls">
27
27
  <span class="hint"><%= t('pageflow.public.before_after.hint') %></span>
28
28
  <%= info_box(configuration) %>
29
29
  <div class="vjs-control-bar view-control">
@@ -1,5 +1,5 @@
1
1
  module Pageflow
2
2
  module BeforeAfter
3
- VERSION = '0.4.0'.freeze
3
+ VERSION = '0.5.0'.freeze
4
4
  end
5
5
  end
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ['lib']
19
19
 
20
- spec.add_dependency 'pageflow', '~> 0.10'
20
+ spec.add_dependency 'pageflow', '~> 0.11'
21
21
  spec.add_dependency 'pageflow-public-i18n', '~> 1.0'
22
22
 
23
23
  spec.add_dependency 'jquery-ui-rails', '~> 5.0'
@@ -26,5 +26,5 @@ Gem::Specification.new do |spec|
26
26
  spec.add_dependency 'i18n-js'
27
27
 
28
28
  # Semantic versioning rake tasks
29
- spec.add_development_dependency 'semmy', '~> 0.2.1'
29
+ spec.add_development_dependency 'semmy', '~> 0.3.0'
30
30
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pageflow-before-after
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Codevise Solutions
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-09 00:00:00.000000000 Z
11
+ date: 2016-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pageflow
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.10'
19
+ version: '0.11'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.10'
26
+ version: '0.11'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pageflow-public-i18n
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.2.1
75
+ version: 0.3.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.2.1
82
+ version: 0.3.0
83
83
  description:
84
84
  email:
85
85
  - info@codevise.de
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  version: '0'
137
137
  requirements: []
138
138
  rubyforge_project:
139
- rubygems_version: 2.2.5
139
+ rubygems_version: 2.5.1
140
140
  signing_key:
141
141
  specification_version: 4
142
142
  summary: Pageflow page type for before/after image slider.