web/resources/scripts/general.js
// Show Page Anyway after this Time
Show Page Anyway after this Time
Show Page Anyway after this Time
function hideLoader() {
				var flySlider = $('.fly-slider'),
					videoBackground = $('.video-container'),
					hideLoaderDelay = 0;
				if (flySlider.length) {
					hideLoaderDelay = flySlider.data('rotation-duration') ? flySlider.data('rotation-duration') : 1000;
				}
				if (videoBackground.length) {
					hideLoaderDelay = 2000;
				}
				setTimeout(function() {
					loader.css({
						right: -scrollBarWidth
					});
					$('html').removeClass('page-loader-overflow-hidden');
					loader.addClass('inactive');
					if (Modernizr.csstransitions) {
						loader.one('webkitTransitionEnd mozTransitionEnd MSTransitionEnd otransitionend transitionend', function() {
							$window.trigger('pageLoaded');
							loader.off('webkitTransitionEnd mozTransitionEnd MSTransitionEnd otransitionend transitionend');
						});
					} else {
						$window.trigger('pageLoaded');
					}
				}, hideLoaderDelay);
			}
function hideLoader ( ) { var flySlider = $ ( '.fly-slider' ) , videoBackground = $ ( '.video-container' ) , hideLoaderDelay = 0 ; if ( flySlider . length ) { hideLoaderDelay = flySlider . data ( 'rotation-duration' ) ? flySlider . data ( 'rotation-duration' ) : 1000 ; } if ( videoBackground . length ) { hideLoaderDelay = 2000 ; } setTimeout ( function ( ) { loader . css ( { right : - scrollBarWidth } ) ; $ ( 'html' ) . removeClass ( 'page-loader-overflow-hidden' ) ; loader . addClass ( 'inactive' ) ; if ( Modernizr . csstransitions ) { loader . one ( 'webkitTransitionEnd mozTransitionEnd MSTransitionEnd otransitionend transitionend' , function ( ) { $window . trigger ( 'pageLoaded' ) ; loader . off ( 'webkitTransitionEnd mozTransitionEnd MSTransitionEnd otransitionend transitionend' ) ; } ) ; } else { $window . trigger ( 'pageLoaded' ) ; } } , hideLoaderDelay ) ; }
Show Page Anyway after this Time
Show Page Anyway after this Time