Created
July 27, 2015 02:17
-
-
Save lucemia/45872706b019d32a88da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.link').on({ | |
click: function(e) { | |
e.stopPropagation(); | |
var id = $(this).parents('.item')[0].id; | |
id = parseInt(id.replace('item-', '')); | |
Ad.click(data[id]['url']); | |
} | |
}); | |
$('.item').on({ | |
mouseover: function(e) { | |
var id = parseInt(this.id.replace('item-', '')); | |
Ad.statemachine.Highlight(id) | |
}, | |
mouseout: function(e) { | |
if (Ad.statemachine.current == 'Highlight') | |
Ad.statemachine.Slideshow(); | |
} | |
}); | |
$('.item').hoverIntent({ | |
interval: 300, | |
over: function(e) { | |
var id = parseInt(this.id.replace('item-', '')); | |
Ad.statemachine.Detail(id); | |
}, | |
out: function(e) { | |
Ad.statemachine.Slideshow(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment