pageflow-linkmap-page 2.6.1 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/CHANGELOG.md +7 -20
- data/app/assets/javascript/pageflow/linkmap_page/page_type.js +23 -10
- data/app/assets/javascript/pageflow/linkmap_page/widgets/hover_video.js +5 -0
- data/app/assets/javascript/pageflow/linkmap_page/widgets/linkmap.js +4 -0
- data/config/locales/de.yml +1 -3
- data/config/locales/en.yml +1 -1
- data/lib/pageflow/linkmap_page/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 83d3c8769a850d2e0fd78e7be7b6e0d9b6531703
|
4
|
+
data.tar.gz: 00a2904f41804a23f93159697c21ec2afeb6fee2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 711a2d93aabe16e4de29d6cb7521072d53fa3a21c2d6011865cfddfaf719db81c00096b42d101a06878725288cab25e2f9b96ca3bfcff4ae7333583889a7efe2
|
7
|
+
data.tar.gz: 98f2ca1f2d8449c4bca1490ccac8e0e6e28395a5327b667cff00a0ddc92f81ed4165e8f21b3133f33f977831edc092310bfc59b13017d7e156f86eb23a42bd1b
|
data/CHANGELOG.md
CHANGED
@@ -1,29 +1,16 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
-
### Version 2.
|
3
|
+
### Version 2.7.0
|
4
4
|
|
5
|
-
|
5
|
+
2020-04-01
|
6
6
|
|
7
|
-
[Compare changes](https://github.com/codevise/pageflow-linkmap-page/compare/
|
7
|
+
[Compare changes](https://github.com/codevise/pageflow-linkmap-page/compare/2-6-stable...v2.7.0)
|
8
8
|
|
9
|
+
- Enabled video autoplay for mobile devices.
|
10
|
+
([#70](https://github.com/codevise/pageflow-linkmap-page/pull/70))
|
9
11
|
- Delete cleanup migration
|
10
|
-
([#
|
11
|
-
|
12
|
-
### Version 2.6.0
|
13
|
-
|
14
|
-
2019-11-04
|
15
|
-
|
16
|
-
[Compare changes](https://github.com/codevise/pageflow-linkmap-page/compare/2-5-stable...v2.6.0)
|
17
|
-
|
18
|
-
- Specify mysql service for Travis build
|
19
|
-
([#66](https://github.com/codevise/pageflow-linkmap-page/pull/66))
|
20
|
-
- Use perma id for color map file and components
|
21
|
-
([#65](https://github.com/codevise/pageflow-linkmap-page/pull/65))
|
22
|
-
- Wait for color map file to be persisted
|
23
|
-
([#64](https://github.com/codevise/pageflow-linkmap-page/pull/64))
|
24
|
-
- Add import and export
|
25
|
-
([#63](https://github.com/codevise/pageflow-linkmap-page/pull/63))
|
12
|
+
([#68](https://github.com/codevise/pageflow-linkmap-page/pull/68))
|
26
13
|
|
27
14
|
See
|
28
|
-
[2-
|
15
|
+
[2-6-stable branch](https://github.com/codevise/pageflow-linkmap-page/blob/2-6-stable/CHANGELOG.md)
|
29
16
|
for previous changes.
|
@@ -187,14 +187,20 @@ pageflow.pageType.register('linkmap_page', _.extend({
|
|
187
187
|
wrapper
|
188
188
|
.attr('data-width', template.data('videoWidth'))
|
189
189
|
.attr('data-height', template.data('videoHeight'));
|
190
|
-
|
191
|
-
var
|
190
|
+
|
191
|
+
var options = {
|
192
192
|
volumeFading: true,
|
193
193
|
fallbackToMutedAutoplay: true,
|
194
|
-
|
195
194
|
width: '100%',
|
196
195
|
height: '100%'
|
197
|
-
}
|
196
|
+
}
|
197
|
+
if (pageflow.browser.has('mobile platform')) {
|
198
|
+
// to enable autoplay videos on mobile, 'muted' and 'playsinline' needs to be set
|
199
|
+
// video can be unmuted on user interaction
|
200
|
+
options.muted = true;
|
201
|
+
options.playsinline = true;
|
202
|
+
}
|
203
|
+
var videoPlayer = this.videoPlayer = new pageflow.VideoPlayer.Lazy(template, options);
|
198
204
|
|
199
205
|
videoPlayer.ready(function() {
|
200
206
|
videoPlayer.on('playmuted', function() {
|
@@ -431,18 +437,25 @@ pageflow.pageType.register('linkmap_page', _.extend({
|
|
431
437
|
},
|
432
438
|
|
433
439
|
isVideoEnabled: function(configuration) {
|
434
|
-
return
|
435
|
-
(configuration.background_type === 'video' || configuration.background_type === 'hover_video');
|
440
|
+
return this.isBackgroundVideoEnabled(configuration) || this.isHoverVideoEnabled(configuration)
|
436
441
|
},
|
437
442
|
|
438
443
|
isBackgroundVideoEnabled: function(configuration) {
|
439
|
-
|
440
|
-
configuration.background_type === 'video'
|
444
|
+
if (pageflow.browser.has('mobile platform')) {
|
445
|
+
return configuration.background_type === 'video' && configuration.panorama_image_id == undefined
|
446
|
+
}
|
447
|
+
else{
|
448
|
+
return configuration.background_type === 'video'
|
449
|
+
}
|
441
450
|
},
|
442
451
|
|
443
452
|
isHoverVideoEnabled: function(configuration) {
|
444
|
-
|
445
|
-
configuration.background_type === 'hover_video'
|
453
|
+
if (pageflow.browser.has('mobile platform')) {
|
454
|
+
return configuration.background_type === 'hover_video' && configuration.hover_image_id == undefined
|
455
|
+
}
|
456
|
+
else{
|
457
|
+
return configuration.background_type === 'hover_video'
|
458
|
+
}
|
446
459
|
},
|
447
460
|
|
448
461
|
updateNavigationMode: function(configuration) {
|
@@ -33,6 +33,10 @@
|
|
33
33
|
'click': function(event) {
|
34
34
|
var area = this.areaAt(this.positionFromEvent(event));
|
35
35
|
|
36
|
+
if (area.length && area.hasClass('hover_area')){
|
37
|
+
this.options.hoverVideo.unmute();
|
38
|
+
}
|
39
|
+
|
36
40
|
if (area.length && area.hasClass('enabled')) {
|
37
41
|
area.first().trigger($.Event('linkmapareaclick', {originalEvent: event}));
|
38
42
|
}
|
data/config/locales/de.yml
CHANGED
@@ -101,9 +101,7 @@ de:
|
|
101
101
|
so viele Hotspots angelegt werden wie gewünscht.
|
102
102
|
|
103
103
|
Der Panorama Typ entscheidet darüber, ob die Seite ein
|
104
|
-
Hintergrund-Bild oder Hintergrund-Video zeigt. (
|
105
|
-
Hintergrund-Videos auf mobilen Geräten nicht abgespielt werden,
|
106
|
-
deshalb wähle ein zusätzliches Panorama-Bild für die mobile Version)
|
104
|
+
Hintergrund-Bild oder Hintergrund-Video zeigt. (Ein zusätzliches Fallback-Image für die mobile Version kann bereitgestellt werden, wenn das Video nicht passt)
|
107
105
|
|
108
106
|
Die Hotspot-Seite ermöglicht auch die Nutzung von Panorama-Bildern,
|
109
107
|
die größer sind, als der sichtbare Bildschirmbereich. So können Nutzer
|
data/config/locales/en.yml
CHANGED
@@ -98,7 +98,7 @@ en:
|
|
98
98
|
|
99
99
|
Hotspots can play audio files, link to other pages in a Pageflow or to external websites. You can define as many hotspots as you want.
|
100
100
|
|
101
|
-
Decide if you want to show a background image or a background video. (
|
101
|
+
Decide if you want to show a background image or a background video. (An additional fallback image for the mobile version can be provided if video does not fit)
|
102
102
|
|
103
103
|
The hotspot page type allows to use panoramic images that are wider and taller than the screen-size. It enables users to explore these images by horizontal or vertical scrolling.
|
104
104
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pageflow-linkmap-page
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.7.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:
|
11
|
+
date: 2020-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pageflow
|
@@ -372,7 +372,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
372
372
|
version: '0'
|
373
373
|
requirements: []
|
374
374
|
rubyforge_project:
|
375
|
-
rubygems_version: 2.
|
375
|
+
rubygems_version: 2.6.11
|
376
376
|
signing_key:
|
377
377
|
specification_version: 4
|
378
378
|
summary: Pageflow page type for a page that contains customizable link areas
|