This code has no errors in my page, so I'm not looking for any help there. I'm just curious if there is a shorter way to do this, there's a lot of code being repeated with just some class names being changed each time. Could I make this shorter in a function or loop of some sort? Thanks
//menu
$('.aboutOne').click(function(){
$.scrollTo('.basicsRow', 1000, {axis:'yx'});
$.scrollTo('.basicsRow', 1000, {axis:'xy'});
})
$('.aboutTwo').click(function(){
$.scrollTo('.storyRow', 1000, {axis:'yx'});
$.scrollTo('.storyRow', 1000, {axis:'xy'});
})
$('.aboutThree').click(function(){
$.scrollTo('.teamRow', 1000, {axis:'yx'});
$.scrollTo('.teamRow', 1000, {axis:'xy'});
})
$('.aboutOne').click(function(){
$.scrollTo('.basicsRow', 1000, {axis:'yx'});
$.scrollTo('.basicsRow', 1000, {axis:'xy'});
})
$('.aboutTwo').click(function(){
$.scrollTo('.storyRow', 1000, {axis:'yx'});
$.scrollTo('.storyRow', 1000, {axis:'xy'});
})
$('.aboutThree').click(function(){
$.scrollTo('.teamRow', 1000, {axis:'yx'});
$.scrollTo('.teamRow', 1000, {axis:'xy'});
})
$('.titleOne').click(function(){
$.scrollTo('.homeRow', 1000, {axis:'yx'});
$.scrollTo('.homeRow', 1000, {axis:'xy'});
})
$('.docsOne').click(function(){
$.scrollTo('.startRow', 1000, {axis:'yx'});
$.scrollTo('.startRow', 1000, {axis:'xy'});
})
$('.docsTwo').click(function(){
$.scrollTo('.pinpointRow', 1000, {axis:'yx'});
$.scrollTo('.pinpointRow', 1000, {axis:'xy'});
})
$('.docsThree').click(function(){
$.scrollTo('.swipeRow', 1000, {axis:'yx'});
$.scrollTo('.swipeRow', 1000, {axis:'xy'});
})
$('.docsFour').click(function(){
$.scrollTo('.restRow', 1000, {axis:'yx'});
$.scrollTo('.restRow', 1000, {axis:'xy'});
})
$('.docsFive').click(function(){
$.scrollTo('.actionRow', 1000, {axis:'yx'});
$.scrollTo('.actionRow', 1000, {axis:'xy'});
})
$('.contactOne').click(function(){
$.scrollTo('.contactRow', 1000, {axis:'yx'});
$.scrollTo('.contactRow', 1000, {axis:'xy'});
})
$('.downloadOne').click(function(){
$.scrollTo('.downloadRow', 1000, {axis:'yx'});
$.scrollTo('.downloadRow', 1000, {axis:'xy'});
})