pageflow-progress-navigation-bar 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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MGZmNGNjMGJiM2E5ODkzMGI2YTg2NTBiNmM4ZmE5Y2ZlNThhNTA1OQ==
4
+ MzY2MWZiY2RkZjFlODgwMDI4ZGNkNzRkNzBiZjYzMzY4ZmRjYjg5Zg==
5
5
  data.tar.gz: !binary |-
6
- MDI5NWQyY2VhMzhlYjBmNmQ2M2I4Y2YwMDVhNGY1ZjQwMDJlY2VkNw==
6
+ ZmVkOGY0ZjQwNzYyMTgyMGEyY2E2NDBmZmFjZDBmMjhlMDI1NmEyZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YTQ0MjhkMWY3Y2U0Mjg0ZTEyNTEyZDM2OTI0ZGY1OGE2ZjNlMGQyYzhlNDJk
10
- ZTY1NGM0ZDcxOTExMTYwNWMxMjFmMTdlNDA1MDU3ODhhN2Q1MDQ4ZTc3Mjg5
11
- ODBlZWE2Njc5NDQ3MDBlZWMyNDUxMzMyNGZkNDRjZTlhNzFlOWY=
9
+ NDE4YmIxOGRjNGE0NGMxNzc3NzczZjFmOTgxNDAwZTg3ODIwNWYyODEyNTJk
10
+ N2IyNmIzNDQxMTAxYjM4NWE1Njc0MjgxOGNhNjI5MDg1NjliOGRmN2E2YjMy
11
+ ZWRjZjQ0MmUzM2JhYzYyZmViNGRkMzJlYmM0MTdmMTA1MDdkMmU=
12
12
  data.tar.gz: !binary |-
13
- N2VkYjNlMTNkNWI5ODEyZjljMTMwMzIzNDA0MWM1MGZjM2NlNTdkYzkyOWRm
14
- MmM1NTQ1YzYzNzVmMGUyNjAyYjkzMWIwNzBmNDA3ZTkyNzJlODFjY2U4MTk1
15
- MDE2YTRjZTU1YmVkYWJhMzY1OWJlNDdkZDhhNzcyOWRhMGNmZTM=
13
+ MDg0MDQyNTVmZGRmNjI0ZWQ0ZGI2ZmU5ZDhlOTU0NDAxZmNjZDA1MTExZGQ0
14
+ ZTNkMzk5MmIyMjdjYmQ5OWIyZWM4YmRlMTM5M2UxMDc2YjJiZTFiMjVkMzU4
15
+ YjA4ODQ5N2U1MzAyNjYzM2MwOTUyOTU4ZGY5MGRlMTY3MjQ0ZmY=
@@ -2,10 +2,23 @@
2
2
 
3
3
  ### Changes on `master`
4
4
 
5
- [Compare changes](https://github.com/codevise/pageflow-progress-navigation-bar/compare/v0.2.0...master)
5
+ [Compare changes](https://github.com/codevise/pageflow-progress-navigation-bar/compare/v0.3.0...master)
6
6
 
7
7
  None so far.
8
8
 
9
+ ### Version 0.3.0
10
+
11
+ 2015-10-23
12
+
13
+ [Compare changes](https://github.com/codevise/pageflow-progress-navigation-bar/compare/v0.2.0...v0.3.0)
14
+
15
+ - Add theme option to hide overview button.
16
+ ([#4](https://github.com/codevise/pageflow-progress-navigation-bar/pull/4))
17
+ - Use shared volume slider and mute button widget.
18
+ ([#3](https://github.com/codevise/pageflow-progress-navigation-bar/pull/3))
19
+ - Remove executables property from gemspec.
20
+ ([#2](https://github.com/codevise/pageflow-progress-navigation-bar/pull/2))
21
+
9
22
  ### Version 0.2.0
10
23
 
11
24
  2015-05-04
@@ -80,63 +80,10 @@
80
80
  });*/
81
81
 
82
82
  /* Volume */
83
-
84
- var handlingVolume = false;
85
- var volumeBeforeMute = 1;
86
- var muteButton = $('.navigation_bg.navigation_mute', that.element);
87
- var changeVolume = function(event) {
88
- var volume = 1 - (event.pageY - $('.volume-slider', that.element).offset().top) / $(('.volume-slider')).height();
89
- if (volume > 1) { volume = 1; }
90
- if (volume < 0) { volume = 0; }
91
- setVolume(volume);
92
- };
93
-
94
- var setVolume = function(volume) {
95
- $('.volume-level', that.element).css({height: volume * 100 + "%"});
96
- pageflow.settings.set('volume', volume);
97
-
98
- if (volume === 0) {
99
- muteButton
100
- .attr('title', muteButton.attr('data-muted-title'))
101
- .addClass('muted');
102
- }
103
- else {
104
- muteButton
105
- .attr('title', muteButton.attr('data-not-muted-title'))
106
- .removeClass('muted');
107
- }
108
- };
109
-
110
- var toggleMute = function () {
111
- if (pageflow.settings.get('volume') > 0) {
112
- volumeBeforeMute = pageflow.settings.get('volume');
113
- setVolume(0);
114
- }
115
- else {
116
- setVolume(volumeBeforeMute);
117
- }
118
- };
119
-
120
- muteButton.on("click", function() {
121
- toggleMute();
122
- });
123
-
124
- $('.volume-level', this.element).css({
125
- height: pageflow.settings.get("volume") * 100 + "%"
126
- });
127
-
128
- $('.navigation_volume_box', this.element).on("mousedown", function(event) {
129
- handlingVolume = true;
130
- changeVolume(event);
83
+ that.element.find('.navigation_volume_box').volumeSlider({
84
+ orientation: 'v'
131
85
  });
132
-
133
- $('.navigation_volume_box', this.element).on("mousemove", function(event) {
134
- if(handlingVolume) {
135
- changeVolume(event);
136
- }
137
- });
138
-
139
- setVolume(pageflow.settings.get('volume'));
86
+ that.element.find('.navigation_mute').muteButton();
140
87
 
141
88
  /* hide buttons on mobile devices */
142
89
  if (pageflow.features.has('mobile platform')) {
@@ -8,6 +8,7 @@ $nav-active-chapter-beginning: desaturate($main-color, 40%);
8
8
 
9
9
  $nav-hint-color: #A9A9A9 !default;
10
10
  $nav-display-header-button: false !default;
11
+ $nav-display-overview-button: true !default;
11
12
 
12
13
  $nav-chapter-beginning: #afafaf;
13
14
  $nav-dot-even: #9B9B9B;
@@ -67,6 +68,12 @@ $nav-bg-color-transparent: $basic-background-color-transparent;
67
68
  }
68
69
  }
69
70
 
71
+ @if not $nav-display-overview-button {
72
+ .navigation_overview_item {
73
+ display: none;
74
+ }
75
+ }
76
+
70
77
  .navigation_button_area .navigation_bar_buttons {
71
78
  &:after {
72
79
  background-color: $nav-bg-color;
@@ -12,7 +12,7 @@
12
12
  <span class="navi_hint"><%= t('.first_page') %></span>
13
13
  </a>
14
14
  </li>
15
- <li>
15
+ <li class="navigation_overview_item">
16
16
  <a class="navigation_bullet navigation_index" tabindex="2" title="<%= t('.display_overview') %>" data-active-title="<%= t('.hide_overview') %>">
17
17
  <span class="button"></span>
18
18
  <span class="navi_hint"><%= t('.overview') %></span>
@@ -2,19 +2,18 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'pageflow-progress-navigation-bar'
5
- spec.version = '0.2.0'
5
+ spec.version = '0.3.0'
6
6
  spec.authors = ['Codevise Solutions Ltd.']
7
7
  spec.email = ['info@codevise.de']
8
8
  spec.summary = 'Pageflow navigation widget.'
9
- spec.homepage = ''
9
+ spec.homepage = 'https://github.com/codevise/pageflow-progress-navigation-bar'
10
10
  spec.license = 'MIT'
11
11
 
12
12
  spec.files = `git ls-files`.split($/)
13
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
14
13
  spec.test_files = spec.files.grep(%r{^spec/})
15
14
  spec.require_paths = ['lib']
16
15
 
17
- spec.add_runtime_dependency 'pageflow', '~> 0.7'
16
+ spec.add_runtime_dependency 'pageflow', '~> 0.9'
18
17
 
19
18
  spec.add_development_dependency 'bundler'
20
19
  spec.add_development_dependency 'rake'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pageflow-progress-navigation-bar
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 Ltd.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-04 00:00:00.000000000 Z
11
+ date: 2015-10-23 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.7'
19
+ version: '0.9'
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.7'
26
+ version: '0.9'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -83,7 +83,7 @@ files:
83
83
  - lib/pageflow/progress_navigation_bar/engine.rb
84
84
  - lib/pageflow/progress_navigation_bar/widget_type.rb
85
85
  - pageflow-progress-navigation-bar.gemspec
86
- homepage: ''
86
+ homepage: https://github.com/codevise/pageflow-progress-navigation-bar
87
87
  licenses:
88
88
  - MIT
89
89
  metadata: {}