You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
598 B
24 lines
598 B
$(function(){
|
|
$('.video').hover(function(){
|
|
$(this).find("video").get(0).play();
|
|
}, function(){
|
|
$(this).find("video").get(0).pause();
|
|
});
|
|
|
|
$('.v-collect').click(function(){
|
|
var hclass =$(this).hasClass('chosed');
|
|
if(hclass){
|
|
$(this).removeClass('chosed');
|
|
}else{
|
|
$(this).addClass('chosed');
|
|
}
|
|
});
|
|
$('.video').on('click',function(){
|
|
var thisvideo= $(this).find("video")[0];
|
|
if (thisvideo.paused){
|
|
thisvideo.play();
|
|
}else{
|
|
thisvideo.pause();
|
|
}
|
|
});
|
|
});
|
|
|