- This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- The forum ‘JavaScript’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › Stopping jquery plugin
Hey,
I am building an one page website, and I am using Fullpage.js.
I want that when the device width is less than 580px, the plugin stops to work and normal scrolling begin.
I am using this code for that but it is not working:
<script>
$(document).ready(function(){
$(window).resize(function(){
if ($("#home-text-responsiveness").css("font-size") == "40px" ){
$("#fullpage").fullpage().stop();
}
});
});
</script>
I have a three column container and want that when the device width is <= 768px those column turn into slider using Fullpage.js slider functionality.
Any help regarding this?
Without seeing it in action, unless there is something obviously wrong in the JS, it’s hard to help.
so how can I show you? there’s a demo of it available at http://alvarotrigo.com/fullPage/
I am building an one page website,
Show us where you are so far. Do you have a link to the non-working page?
If not, a reduced case example using Codepen.io.
Hey guys i found the solution here :
http://stackoverflow.com/questions/13234894/how-to-disable-javascript-for-responsive-design
thanks to alvarotrigo.