Update Vegas

This commit is contained in:
2024-12-10 11:05:29 +01:00
parent 3d22f9c5d8
commit 2ee149f14b
18 changed files with 40 additions and 127 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

0
vegas/_js/overlays/01.png → vegas/js/overlays/01.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 100 B

After

Width:  |  Height:  |  Size: 100 B

0
vegas/_js/overlays/02.png → vegas/js/overlays/02.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 100 B

After

Width:  |  Height:  |  Size: 100 B

0
vegas/_js/overlays/03.png → vegas/js/overlays/03.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 98 B

After

Width:  |  Height:  |  Size: 98 B

0
vegas/_js/overlays/04.png → vegas/js/overlays/04.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 100 B

After

Width:  |  Height:  |  Size: 100 B

0
vegas/_js/overlays/05.png → vegas/js/overlays/05.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 102 B

After

Width:  |  Height:  |  Size: 102 B

0
vegas/_js/overlays/06.png → vegas/js/overlays/06.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 100 B

After

Width:  |  Height:  |  Size: 100 B

0
vegas/_js/overlays/07.png → vegas/js/overlays/07.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 104 B

After

Width:  |  Height:  |  Size: 104 B

0
vegas/_js/overlays/08.png → vegas/js/overlays/08.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 106 B

After

Width:  |  Height:  |  Size: 106 B

0
vegas/_js/overlays/09.png → vegas/js/overlays/09.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 118 B

After

Width:  |  Height:  |  Size: 118 B

108
vegas/_js/vegas.css → vegas/js/vegas.css Normal file → Executable file
View File

@@ -325,17 +325,7 @@ body.vegas-container > .vegas-slide {
/* kenburns animation */ /* kenburns animation */
/*******************************************/ /*******************************************/
.vegas-animation-kenburns { .vegas-animation-kenburns {
-webkit-animation: kenburns ease-out; animation: kenburns ease-out;
animation: kenburns ease-out;
}
@-webkit-keyframes kenburns {
0% {
transform: scale(1.5);
}
100% {
transform: scale(1);
}
} }
@keyframes kenburns { @keyframes kenburns {
@@ -351,17 +341,7 @@ body.vegas-container > .vegas-slide {
/* kenburnsDownLeft animation */ /* kenburnsDownLeft animation */
/*******************************************/ /*******************************************/
.vegas-animation-kenburnsDownLeft { .vegas-animation-kenburnsDownLeft {
-webkit-animation: kenburnsDownLeft ease-out; animation: kenburnsDownLeft ease-out;
animation: kenburnsDownLeft ease-out;
}
@-webkit-keyframes kenburnsDownLeft {
0% {
transform: scale(1.5) translate(10%, -10%);
}
100% {
transform: scale(1) translate(0, 0);
}
} }
@keyframes kenburnsDownLeft { @keyframes kenburnsDownLeft {
@@ -377,17 +357,7 @@ body.vegas-container > .vegas-slide {
/* kenburnsDownRight animation */ /* kenburnsDownRight animation */
/*******************************************/ /*******************************************/
.vegas-animation-kenburnsDownRight { .vegas-animation-kenburnsDownRight {
-webkit-animation: kenburnsDownRight ease-out; animation: kenburnsDownRight ease-out;
animation: kenburnsDownRight ease-out;
}
@-webkit-keyframes kenburnsDownRight {
0% {
transform: scale(1.5) translate(-10%, -10%);
}
100% {
transform: scale(1) translate(0, 0);
}
} }
@keyframes kenburnsDownRight { @keyframes kenburnsDownRight {
@@ -403,17 +373,7 @@ body.vegas-container > .vegas-slide {
/* kenburnsDown animation */ /* kenburnsDown animation */
/*******************************************/ /*******************************************/
.vegas-animation-kenburnsDown { .vegas-animation-kenburnsDown {
-webkit-animation: kenburnsDown ease-out; animation: kenburnsDown ease-out;
animation: kenburnsDown ease-out;
}
@-webkit-keyframes kenburnsDown {
0% {
transform: scale(1.5) translate(0, -10%);
}
100% {
transform: scale(1) translate(0, 0);
}
} }
@keyframes kenburnsDown { @keyframes kenburnsDown {
@@ -429,17 +389,7 @@ body.vegas-container > .vegas-slide {
/* kenburnsLeft animation */ /* kenburnsLeft animation */
/*******************************************/ /*******************************************/
.vegas-animation-kenburnsLeft { .vegas-animation-kenburnsLeft {
-webkit-animation: kenburnsLeft ease-out; animation: kenburnsLeft ease-out;
animation: kenburnsLeft ease-out;
}
@-webkit-keyframes kenburnsLeft {
0% {
transform: scale(1.5) translate(10%, 0);
}
100% {
transform: scale(1) translate(0, 0);
}
} }
@keyframes kenburnsLeft { @keyframes kenburnsLeft {
@@ -455,17 +405,7 @@ body.vegas-container > .vegas-slide {
/* kenburnsRight animation */ /* kenburnsRight animation */
/*******************************************/ /*******************************************/
.vegas-animation-kenburnsRight { .vegas-animation-kenburnsRight {
-webkit-animation: kenburnsRight ease-out; animation: kenburnsRight ease-out;
animation: kenburnsRight ease-out;
}
@-webkit-keyframes kenburnsRight {
0% {
transform: scale(1.5) translate(-10%, 0);
}
100% {
transform: scale(1) translate(0, 0);
}
} }
@keyframes kenburnsRight { @keyframes kenburnsRight {
@@ -481,17 +421,7 @@ body.vegas-container > .vegas-slide {
/* kenburnsUpLeft animation */ /* kenburnsUpLeft animation */
/*******************************************/ /*******************************************/
.vegas-animation-kenburnsUpLeft { .vegas-animation-kenburnsUpLeft {
-webkit-animation: kenburnsUpLeft ease-out; animation: kenburnsUpLeft ease-out;
animation: kenburnsUpLeft ease-out;
}
@-webkit-keyframes kenburnsUpLeft {
0% {
transform: scale(1.5) translate(10%, 10%);
}
100% {
transform: scale(1) translate(0, 0);
}
} }
@keyframes kenburnsUpLeft { @keyframes kenburnsUpLeft {
@@ -507,17 +437,7 @@ body.vegas-container > .vegas-slide {
/* kenburnsUpRight animation */ /* kenburnsUpRight animation */
/*******************************************/ /*******************************************/
.vegas-animation-kenburnsUpRight { .vegas-animation-kenburnsUpRight {
-webkit-animation: kenburnsUpRight ease-out; animation: kenburnsUpRight ease-out;
animation: kenburnsUpRight ease-out;
}
@-webkit-keyframes kenburnsUpRight {
0% {
transform: scale(1.5) translate(-10%, 10%);
}
100% {
transform: scale(1) translate(0, 0);
}
} }
@keyframes kenburnsUpRight { @keyframes kenburnsUpRight {
@@ -533,17 +453,7 @@ body.vegas-container > .vegas-slide {
/* kenburnsUp animation */ /* kenburnsUp animation */
/*******************************************/ /*******************************************/
.vegas-animation-kenburnsUp { .vegas-animation-kenburnsUp {
-webkit-animation: kenburnsUp ease-out; animation: kenburnsUp ease-out;
animation: kenburnsUp ease-out;
}
@-webkit-keyframes kenburnsUp {
0% {
transform: scale(1.5) translate(0, 10%);
}
100% {
transform: scale(1) translate(0, 0);
}
} }
@keyframes kenburnsUp { @keyframes kenburnsUp {

31
vegas/_js/vegas.js → vegas/js/vegas.js Normal file → Executable file
View File

@@ -1,10 +1,10 @@
/*!----------------------------------------------------------------------------- /*!-----------------------------------------------------------------------------
* Vegas - Fullscreen Backgrounds and Slideshows. * Vegas - Fullscreen Backgrounds and Slideshows.
* v2.5.4 - built 2021-01-30 * v2.6.0 - built 2024-07-30
* Licensed under the MIT License. * Licensed under the MIT License.
* http://vegas.jaysalvat.com/ * http://vegas.jaysalvat.com/
* ---------------------------------------------------------------------------- * ----------------------------------------------------------------------------
* Copyright (C) 2010-2021 Jay Salvat * Copyright (C) 2010-2024 Jay Salvat
* http://jaysalvat.com/ * http://jaysalvat.com/
* --------------------------------------------------------------------------*/ * --------------------------------------------------------------------------*/
@@ -53,7 +53,7 @@
// cover: true, // cover: true,
// video: { // video: {
// src: [], // src: [],
// mute: true, // muted: true,
// loop: true // loop: true
// } // }
// ... // ...
@@ -61,6 +61,7 @@
}; };
var videoCache = {}; var videoCache = {};
var instances = 0;
var Vegas = function (elmt, options) { var Vegas = function (elmt, options) {
this.elmt = elmt; this.elmt = elmt;
@@ -77,6 +78,8 @@
this.timeout = null; this.timeout = null;
this.first = true; this.first = true;
this.instance = instances++;
this.transitions = [ this.transitions = [
'fade', 'fade2', 'fade', 'fade2',
'blur', 'blur2', 'blur', 'blur2',
@@ -113,14 +116,12 @@
this.support = { this.support = {
objectFit: 'objectFit' in document.body.style, objectFit: 'objectFit' in document.body.style,
transition: 'transition' in document.body.style || 'WebkitTransition' in document.body.style, transition: 'transition' in document.body.style || 'WebkitTransition' in document.body.style
video: $.vegas.isVideoCompatible()
}; };
if (this.settings.shuffle === true) { if (this.settings.shuffle === true) {
this.shuffle(); this.shuffle();
} }
this._init(); this._init();
}; };
@@ -210,7 +211,7 @@
} }
if (this.settings.preload || this.settings.preloadVideos) { if (this.settings.preload || this.settings.preloadVideos) {
if (this.support.video && this.settings.slides[i].video) { if (this.settings.slides[i].video) {
if (this.settings.slides[i].video instanceof Array) { if (this.settings.slides[i].video instanceof Array) {
this._video(this.settings.slides[i].video); this._video(this.settings.slides[i].video);
} else { } else {
@@ -266,7 +267,7 @@
_video: function (srcs) { _video: function (srcs) {
var video, var video,
source, source,
cacheKey = srcs.toString(); cacheKey = this.instance + srcs.toString();
if (videoCache[cacheKey]) { if (videoCache[cacheKey]) {
return videoCache[cacheKey]; return videoCache[cacheKey];
@@ -278,6 +279,8 @@
video = document.createElement('video'); video = document.createElement('video');
video.preload = true; video.preload = true;
video.playsInline = true;
video.controls = false;
srcs.forEach(function (src) { srcs.forEach(function (src) {
source = document.createElement('source'); source = document.createElement('source');
@@ -291,7 +294,7 @@
}, },
_fadeOutSound: function (video, duration) { _fadeOutSound: function (video, duration) {
var self = this, var self = this,
delay = duration / 10, delay = duration / 10,
volume = video.volume - 0.09; volume = video.volume - 0.09;
@@ -307,7 +310,7 @@
}, },
_fadeInSound: function (video, duration) { _fadeInSound: function (video, duration) {
var self = this, var self = this,
delay = duration / 10, delay = duration / 10,
volume = video.volume + 0.09; volume = video.volume + 0.09;
@@ -355,7 +358,7 @@
video, video,
img; img;
var transition = this._options('transition'), var transition = this._options('transition'),
transitionDuration = this._options('transitionDuration'), transitionDuration = this._options('transitionDuration'),
animation = this._options('animation'), animation = this._options('animation'),
animationDuration = this._options('animationDuration'); animationDuration = this._options('animationDuration');
@@ -412,7 +415,7 @@
// Video // Video
if (this.support.video && videoSettings) { if (videoSettings) {
if (videoSettings instanceof Array) { if (videoSettings instanceof Array) {
video = this._video(videoSettings); video = this._video(videoSettings);
} else { } else {
@@ -420,7 +423,7 @@
} }
video.loop = videoSettings.loop !== undefined ? videoSettings.loop : true; video.loop = videoSettings.loop !== undefined ? videoSettings.loop : true;
video.muted = videoSettings.mute !== undefined ? videoSettings.mute : true; video.muted = videoSettings.muted !== undefined ? videoSettings.muted : true;
if (video.muted === false) { if (video.muted === false) {
video.volume = 0; video.volume = 0;
@@ -745,7 +748,7 @@
$.vegas.defaults = defaults; $.vegas.defaults = defaults;
$.vegas.isVideoCompatible = function () { $.vegas.isVideoCompatible = function () {
return !/(Android|webOS|Phone|iPad|iPod|BlackBerry|Windows Phone)/i.test(navigator.userAgent); return true;
}; };
})(window.jQuery || window.Zepto || window.m4q); })(window.jQuery || window.Zepto || window.m4q);

2
vegas/_js/vegas.min.css → vegas/js/vegas.min.css vendored Normal file → Executable file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

11
vegas/js/vegas.min.js vendored Executable file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long