78 lines
1.5 KiB
JavaScript
78 lines
1.5 KiB
JavaScript
/*
|
|
Name: View - Home
|
|
Written by: Okler Themes - (http://www.okler.net)
|
|
Theme Version: 8.0.0
|
|
*/
|
|
|
|
(function($) {
|
|
|
|
'use strict';
|
|
|
|
/*
|
|
Circle Slider
|
|
*/
|
|
if ($.isFunction($.fn.flipshow)) {
|
|
var circleContainer = $('.fc-slideshow');
|
|
|
|
$.each( circleContainer, function() {
|
|
|
|
var $container = $(this);
|
|
|
|
$container.flipshow();
|
|
|
|
setTimeout(function circleFlip() {
|
|
$container.data().flipshow._navigate($container.find('div.fc-right span:first'), 'right');
|
|
setTimeout(circleFlip, 3000);
|
|
}, 3000);
|
|
|
|
});
|
|
}
|
|
|
|
/*
|
|
Move Cloud
|
|
*/
|
|
if ($('.cloud').get(0)) {
|
|
var moveCloud = function() {
|
|
$('.cloud').animate({
|
|
'top': '+=20px'
|
|
}, 3000, 'linear', function() {
|
|
$('.cloud').animate({
|
|
'top': '-=20px'
|
|
}, 3000, 'linear', function() {
|
|
moveCloud();
|
|
});
|
|
});
|
|
};
|
|
|
|
moveCloud();
|
|
}
|
|
|
|
/*
|
|
Nivo Slider
|
|
*/
|
|
if ($.isFunction($.fn.nivoSlider)) {
|
|
$('#nivoSlider').nivoSlider({
|
|
effect: 'random',
|
|
slices: 15,
|
|
boxCols: 8,
|
|
boxRows: 4,
|
|
animSpeed: 500,
|
|
pauseTime: 3000,
|
|
startSlide: 0,
|
|
directionNav: true,
|
|
controlNav: true,
|
|
controlNavThumbs: false,
|
|
pauseOnHover: true,
|
|
manualAdvance: false,
|
|
prevText: 'Prev',
|
|
nextText: 'Next',
|
|
randomStart: false,
|
|
beforeChange: function(){},
|
|
afterChange: function(){},
|
|
slideshowEnd: function(){},
|
|
lastSlide: function(){},
|
|
afterLoad: function(){}
|
|
});
|
|
}
|
|
|
|
}).apply(this, [jQuery]); |