134
rated 0 times
[
135]
[
1]
/ answers: 1 / hits: 25878
/ 9 Years ago, sun, august 2, 2015, 12:00:00
Iam trying to make a swipeable menu in blogger and this is my code :
<script type=text/javascript src=http://code.jquery.com/jquery-1.9.1.js></script>
<script type=text/javascript src=https://www.googledrive.com/host/0B2Iusn9ixPQ2cFFldHoweXRsWms></script>
<script type=text/javascript>
$(window).load(function(){
$([data-toggle]).click(function() {
var toggle_el = $(this).data(toggle);
$(toggle_el).toggleClass(open-sidebar);
});
$(.swipe-area).swipe({
swipeStatus:function(event, phase, direction, distance, duration, fingers)
{
if (phase==move && direction ==right) {
$(.container).addClass(open-sidebar);
return false;
}
if (phase==move && direction ==left) {
$(.container).removeClass(open-sidebar);
return false;
}
}
});
});
</script>
and Iam getting this error at $(.swipe-area).swipe({ : uncaught typeerror $(...).swipe is not a function
PLease Help,
Thanks
More From » jquery