Reputation: 7409
I tried this snippet of code
And got the SyntaxError: missing ) after argument list
Is there any better debugger to show the more understandable and accuracy error on Mac ?
jQuery(document).ready(
$('.fancy .slot').jSlots({
number : 2,
winnerNumber : 1,
spinner : '#playFancy',
easing : 'easeOutSine',
time : 7000,
loops : 6,
onStart : function() {
$('.slot').removeClass('winner');
},
onWin : function(winCount, winners) {
// only fires if you win
$.each(winners, function() {
this.addClass('winner');
});
// react to the # of winning slots
if ( winCount === 1 ) {
alert('You got ' + winCount + ' 7!!!');
}
else if ( winCount > 1 ) {
alert('You got ' + winCount + ' 7’s!!!');
}
}
});
);
Upvotes: 0
Views: 124
Reputation: 11
You are missing the first { after document.ready should look like this
$( document ).ready(function() {
});
Upvotes: 0
Reputation: 219930
You're missing the function
keyword:
jQuery(document).ready(function (){
// code here
});
Upvotes: 3