Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(document).ready(function($){
- /************************************/
- /* RESIZE
- /************************************/
- function windowResizeFunctions(e) {
- var windowH = $(window).height(),
- headerH = $('.site-header').height();
- $('.banner').css('height', windowH);
- }
- $(window).resize(function(){
- window.requestAnimationFrame(windowResizeFunctions);
- });
- setTimeout(function() { windowResizeFunctions(); } );
- });
- /************************************/
- /* SCROLL TO
- /************************************/
- (function($) {
- $('a[href*=#]:not([href=#])').click(function()
- {
- if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
- || location.hostname == this.hostname)
- {
- var target = $(this.hash),
- headerHeight = $(".site-header").height(); // Get fixed header height
- target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
- if (target.length)
- {
- $('html,body').animate({
- scrollTop: target.offset().top - headerHeight
- }, 500);
- return false;
- }
- }
- });
- })(jQuery);
- $(document).ready(function(){
- /************************************/
- /* OWL CAROUSEL
- /************************************/
- $('#owl-partners').owlCarousel({
- margin: 20,
- dots: false,
- nav: false,
- navText: [],
- loop: true,
- autoplay: true,
- autoplayHoverPause: true,
- responsive: {
- 0: {
- items: 1
- },
- 600: {
- items: 3
- },
- 1000: {
- items: 6
- }
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement