pageflow-panorama 0.2.0 → 0.3.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: 1b3a059bb86379c004fda59427d80e3e55a9019a
4
- data.tar.gz: a9b6da525eab8ccde6e12ac8c278d262212d36d2
3
+ metadata.gz: acb5097faba23f51c911ebbcd0f8bfb1858bf776
4
+ data.tar.gz: 7507871e96e9c34315fa51730a8d4b6eb6077c0c
5
5
  SHA512:
6
- metadata.gz: 210524d325c4b0a965f4951e2fd79b75d51023e9863ae5379479c34d252dd1b709dd1d746c364276e28bac0114e3041e87115b386a1d19a54b4fb8eb5ae2f312
7
- data.tar.gz: a5a92ce7e808b26758408f4d62ba222b3abdb5466a6be0d95778530e393d5ad7e1e15cea595c6732bf2c579fc141c9c0f7bfb5bb95cb86d09bb7168e5dff4914
6
+ metadata.gz: c0f19e3b882d533d714f3f113d1fa9a8258eb3ba55d470db41e7e3a5b2576174beb679a79ba340b0019a0320b163a7430d88283d1c8ffd66c25efc783a3aa525
7
+ data.tar.gz: c4e2071b78cbbdd11a5b504d558a31e28439f692c0a33430a94f0c19670acdf3496c980032f84915739278ce167b36d91be75b544ca14f943c841ce105d4c7cf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # CHANGELOG
2
2
 
3
+ ### Version 0.3.0
4
+
5
+ 2016-09-09
6
+
7
+ [Compare changes](https://github.com/codevise/pageflow-panorama/compare/v0.2.0...v0.3.0)
8
+
9
+ - Add support for slim player control theme variant
10
+ ([#8](https://github.com/codevise/pageflow-panorama/pull/8))
11
+
3
12
  ### Version 0.2.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 panorama.gemspec
4
4
  gemspec
5
-
6
- gem 'state_machine', git: 'https://github.com/tf/state_machine.git', branch: 'master'
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'
@@ -1,8 +1,10 @@
1
1
  pageflow.pageType.register('panorama', _.extend({
2
2
  enhance: function(pageElement, configuration) {
3
+ var that = this;
4
+
3
5
  pageElement.addClass('hide_content_with_text');
4
6
 
5
- pageElement.find('.play_button').on('mousedown touchstart', function() {
7
+ pageElement.find('.play_button').on('click', function() {
6
8
  pageflow.hideText.activate();
7
9
  });
8
10
 
@@ -10,6 +12,14 @@ pageflow.pageType.register('panorama', _.extend({
10
12
  pageflow.hideText.deactivate();
11
13
  e.stopPropagation();
12
14
  });
15
+
16
+ this.removeUnplayedClass = function() {
17
+ pageElement.find('.content_and_background').removeClass('unplayed');
18
+ };
19
+
20
+ this.enableScrollIndicator = function() {
21
+ that.scrollIndicator.enable();
22
+ };
13
23
  },
14
24
 
15
25
  prepare: function(pageElement, configuration) {
@@ -22,11 +32,18 @@ pageflow.pageType.register('panorama', _.extend({
22
32
 
23
33
  activating: function(pageElement, configuration) {
24
34
  this._ensureIframe(pageElement, configuration);
35
+ pageElement.find('.content_and_background').addClass('unplayed');
25
36
  },
26
37
 
27
- activated: function(pageElement, configuration) {},
38
+ activated: function(pageElement, configuration) {
39
+ pageflow.hideText.on('activate', this.removeUnplayedClass);
40
+ pageflow.hideText.on('deactivate', this.enableScrollIndicator);
41
+ },
28
42
 
29
- deactivating: function(pageElement, configuration) {},
43
+ deactivating: function(pageElement, configuration) {
44
+ pageflow.hideText.off('activate', this.removeUnplayedClass);
45
+ pageflow.hideText.off('deactivate', this.enableScrollIndicator);
46
+ },
30
47
 
31
48
  deactivated: function(pageElement, configuration) {},
32
49
 
@@ -14,7 +14,7 @@
14
14
  </div>
15
15
 
16
16
  <div class="content">
17
- <div class="controls">
17
+ <div class="controls" data-role="player_controls">
18
18
  <span class="hint"><%= t('pageflow.public.panorama.start') %></span>
19
19
  <%= info_box(configuration) %>
20
20
  <div class="vjs-control-bar view-control">
@@ -1,5 +1,5 @@
1
1
  module Pageflow
2
2
  module Panorama
3
- VERSION = '0.2.0'.freeze
3
+ VERSION = '0.3.0'.freeze
4
4
  end
5
5
  end
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
16
16
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
17
17
  spec.require_paths = ["lib"]
18
18
 
19
- spec.add_runtime_dependency "pageflow", "~> 0.10"
19
+ spec.add_runtime_dependency "pageflow", "~> 0.11"
20
20
  spec.add_runtime_dependency "rubyzip", "~> 1.1"
21
21
  spec.add_runtime_dependency 'pageflow-public-i18n', '~> 1.0'
22
22
 
@@ -27,5 +27,5 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency "mysql2"
28
28
 
29
29
  # Semantic versioning rake tasks
30
- spec.add_development_dependency 'semmy', '~> 0.2'
30
+ spec.add_development_dependency 'semmy', '~> 0.3.0'
31
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pageflow-panorama
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.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: rubyzip
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '0.2'
131
+ version: 0.3.0
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '0.2'
138
+ version: 0.3.0
139
139
  description:
140
140
  email:
141
141
  - info@codevise.de
@@ -209,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
209
  version: '0'
210
210
  requirements: []
211
211
  rubyforge_project:
212
- rubygems_version: 2.2.5
212
+ rubygems_version: 2.5.1
213
213
  signing_key:
214
214
  specification_version: 4
215
215
  summary: Pagetype for iframe embedded 360° panoramas