Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#artic").droppable({
- drop: function(event, ui){
- if( $(ui.draggable).is("#Penguin") && $("#" + animalArray[selectedAnimal]).is("#Penguin")) {
- $("#feedback").text("He looks ready to chillax.");
- $("#Penguin").hide();
- selectRandomAnimal();
- }
- if( $(ui.draggable).is("#Seal") && $("#" + animalArray[selectedAnimal]).is("#Seal")) {
- $("#feedback").text("He looks ready to chillax.");
- $("#Seal").hide();
- selectRandomAnimal();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement