missing : after property ID
I also have an error show to definition of my function like below.
function test(a) {
//do something;
}
My case to solve the problem by change it to:
test : function(a) {
//do something;
}
The error is gone.
Problem is with this line:
$('#imagegallery img').each(function({$(this).css({ width: '100%'});});
should be:
// missing ) --------------------v
$('#imagegallery img').each(function(){$(this).css({ width: '100%'});});
Although you can shorten it like this:
$('#imagegallery img').css({ width: '100%'});