Skip to content

Instantly share code, notes, and snippets.

@mjesusabarca
Created August 10, 2017 15:58
Show Gist options
  • Select an option

  • Save mjesusabarca/56e366bd56d022468d0087c5d6b26569 to your computer and use it in GitHub Desktop.

Select an option

Save mjesusabarca/56e366bd56d022468d0087c5d6b26569 to your computer and use it in GitHub Desktop.
delete slider nivoSlider
<script>
jQuery(window).bind('scroll', function() {
var wwd = jQuery(window).width();
if( wwd > 939 ){
var navHeight = jQuery( window ).height() - 575;
}
});
jQuery(window).load(function() {
jQuery('#slider').nivoSlider({
effect:'random', //sliceDown, sliceDownLeft, sliceUp, sliceUpLeft, sliceUpDown, sliceUpDownLeft, fold, fade, random, slideInRight, slideInLeft, boxRandom, boxRain, boxRainReverse, boxRainGrow, boxRainGrowReverse
animSpeed: 500,
pauseTime: 4000,
directionNav: true,
controlNav: true,
pauseOnHover: false,
});
});
jQuery(window).load(function() {
jQuery('.owl-carousel').owlCarousel({
loop:true,
autoplay: true,
autoplayTimeout: 8000,
margin:20,
nav:false,
dots: true,
responsive:{
0:{
items:1
},
600:{
items:1
},
1000:{
items:1
}
}
})
});
jQuery(document).ready(function() {
jQuery('.link').on('click', function(event){
var $this = jQuery(this);
if($this.hasClass('clicked')){
$this.removeAttr('style').removeClass('clicked');
} else{
$this.css('background','#7fc242').addClass('clicked');
}
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment