@ -4631,37 +4631,38 @@ if(typeof VMM != 'undefined' && typeof VMM.Slider == 'undefined') {
/ * S I Z E S L I D E S
=== === === === === === === === === === === === === === === === == * /
var sizeSlides = function ( ) {
var layout _text _media = ".slider-item .layout-text-media .media .media-container " ;
var layout _media = ".slider-item .layout-media .media .media-container " ;
var layout _both = ".slider-item .media .media-container" ;
var mediasize = {
text _media : {
width : ( config . slider . content . width / 100 ) * 60 ,
height : config . slider . height - 60 ,
video : {
width : 0 ,
height : 0
var layout _text _media = ".slider-item .layout-text-media .media .media-container " ,
layout _media = ".slider-item .layout-media .media .media-container " ,
layout _both = ".slider-item .media .media-container" ,
layout _caption = ".slider-item .media .media-container .media-shadow .caption" ,
mediasize = {
text _media : {
width : ( config . slider . content . width / 100 ) * 60 ,
height : config . slider . height - 60 ,
video : {
width : 0 ,
height : 0
} ,
text : {
width : ( ( config . slider . content . width / 100 ) * 40 ) - 30 ,
height : config . slider . height
}
} ,
text : {
width : ( ( config . slider . content . width / 100 ) * 40 ) - 30 ,
height : config . slider . height
}
} ,
media : {
width : config . slider . content . width ,
height : config . slider . height - 110 ,
video : {
width : 0 ,
height : 0
media : {
width : config . slider . content . width ,
height : config . slider . height - 110 ,
video : {
width : 0 ,
height : 0
}
}
}
}
} ;
VMM . master _config . sizes . api . width = mediasize . media . width ;
VMM . master _config . sizes . api . height = mediasize . media . height ;
VMM . master _config . sizes . api . width = mediasize . media . width ;
VMM . master _config . sizes . api . height = mediasize . media . height ;
mediasize . text _media . video = VMM . Util . ratio . fit ( mediasize . text _media . width , mediasize . text _media . height , 16 , 9 ) ;
mediasize . media . video = VMM . Util . ratio . fit ( mediasize . media . width , mediasize . media . height , 16 , 9 ) ;
mediasize . text _media . video = VMM . Util . ratio . fit ( mediasize . text _media . width , mediasize . text _media . height , 16 , 9 ) ;
mediasize . media . video = VMM . Util . ratio . fit ( mediasize . media . width , mediasize . media . height , 16 , 9 ) ;
VMM . Lib . css ( ".slider-item" , "width" , config . slider . content . width ) ;
VMM . Lib . height ( ".slider-item" , config . slider . height ) ;
@ -4775,6 +4776,10 @@ if(typeof VMM != 'undefined' && typeof VMM.Slider == 'undefined') {
VMM . Lib . width ( layout _media + ".plain-text-quote" , mediasize . media . width ) ;
VMM . Lib . width ( layout _media + ".plain-text" , mediasize . media . width ) ;
// CAPTION WIDTH
VMM . Lib . css ( layout _text _media + ".caption" , "max-width" , mediasize . text _media . video . width ) ;
VMM . Lib . css ( layout _media + ".caption" , "max-width" , mediasize . media . video . width ) ;
// MAINTAINS VERTICAL CENTER IF IT CAN
for ( var i = 0 ; i < slides . length ; i ++ ) {
@ -4896,7 +4901,14 @@ if(typeof VMM != 'undefined' && typeof VMM.Slider == 'undefined') {
VMM . Lib . css ( ".slider" , "overflow-y" , "scroll" ) ;
} else {
VMM . Lib . css ( layout , "overflow-y" , "hidden" ) ;
VMM . Lib . animate ( layout , _duration , _ease , { scrollTop : VMM . Lib . prop ( layout , "scrollHeight" ) - VMM . Lib . height ( layout ) } ) ;
var scroll _height = 0 ;
try {
scroll _height = VMM . Lib . prop ( layout , "scrollHeight" ) ;
VMM . Lib . animate ( layout , _duration , _ease , { scrollTop : scroll _height - VMM . Lib . height ( layout ) } ) ;
}
catch ( err ) {
scroll _height = VMM . Lib . height ( layout ) ;
}
}
preloadSlides ( ) ;
@ -6421,6 +6433,7 @@ if(typeof VMM != 'undefined' && typeof VMM.Timeline == 'undefined') {
hash _bookmark : false ,
start _at _end : false ,
start _at _slide : 0 ,
start _zoom _adjust : 0 ,
start _page : false ,
api _keys : {
google : "" ,
@ -6449,6 +6462,9 @@ if(typeof VMM != 'undefined' && typeof VMM.Timeline == 'undefined') {
right _min : 0 ,
right _max : 0
} ,
zoom : {
adjust : 0
} ,
multiplier : {
current : 6 ,
min : . 1 ,
@ -6536,13 +6552,14 @@ if(typeof VMM != 'undefined' && typeof VMM.Timeline == 'undefined') {
}
}
config . nav . width = config . width ;
config . nav . height = 200 ;
config . feature . width = config . width ;
config . feature . height = config . height - config . nav . height ;
VMM . Timeline . Config = config ;
VMM . master _config . Timeline = VMM . Timeline . Config ;
this . events = config . events ;
config . nav . width = config . width ;
config . nav . height = 200 ;
config . feature . width = config . width ;
config . feature . height = config . height - config . nav . height ;
config . nav . zoom . adjust = parseInt ( config . start _zoom _adjust , 10 ) ;
VMM . Timeline . Config = config ;
VMM . master _config . Timeline = VMM . Timeline . Config ;
this . events = config . events ;
}
/ * C R E A T E T I M E L I N E S T R U C T U R E
@ -7283,10 +7300,11 @@ if(typeof VMM.Timeline != 'undefined' && typeof VMM.Timeline.TimeNav == 'undefin
for ( var i = 0 ; i < temp _multiplier ; i ++ ) {
if ( averageMarkerPositionDistance ( ) < 75 ) {
if ( config . nav . multiplier . current > 1 ) {
config . nav . multiplier . current = config . nav . multiplier . current - 1 ;
config . nav . multiplier . current = ( config . nav . multiplier . current - 1 ) ;
}
}
}
}
var calculateInterval = function ( ) {
@ -8252,6 +8270,19 @@ if(typeof VMM.Timeline != 'undefined' && typeof VMM.Timeline.TimeNav == 'undefin
reSize ( true ) ;
// USER CONFIGURABLE ADJUSTMENT TO DEFAULT ZOOM
if ( config . nav . zoom . adjust != 0 ) {
if ( config . nav . zoom . adjust < 0 ) {
for ( var i = 0 ; i < Math . abs ( config . nav . zoom . adjust ) ; i ++ ) {
onZoomOut ( ) ;
}
} else {
for ( var j = 0 ; j < config . nav . zoom . adjust ; j ++ ) {
onZoomIn ( ) ;
}
}
}
} ;
var buildInterval = function ( ) {