Created
March 16, 2016 09:27
-
-
Save msanroman/b0e8abf171640f7507b0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
var womenSliderStarted = false; | |
var width = $(window).width(); | |
$("#mujeres").click(function () { | |
$("#men_slider").hide(); | |
$("#women_slider").show(); | |
if( !womenSliderStarted ) { | |
if (width >= 1023) { | |
new Slider( | |
"#women_slider", | |
{ | |
visibleImages: 3, | |
imageMargin: 160 | |
} | |
); | |
} else { | |
new Slider( | |
"#women_slider", | |
{ | |
visibleImages: 1, | |
imageMargin: 10 | |
} | |
); | |
} | |
womenSliderStarted = true; | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment