<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("video").on("mouseover" , function(){
this.play();
$( this ).css( "background-color", "black" );
});
$("video").on("mouseleave", function(){
this.pause();
})
})
</script>
<video width=320 src="http://www.mokselle.ru/video/video-bg.mp4">
</video>
$(document).ready(function() {
var arr = ["#a", "#b", "#c", "#d", "#e"];
var p = -1;
$(arr[0]).click(function() {
var pp = 1;
alert(pp);
});
if (pp == 1) {
alert(pp)
}
$(arr[1]).click(function() {
var pp = 2;
alert(pp);
});
if (pp == 2) {
alert(pp);
}
});
window.onload = function() {
new Vue({
el: '#app',
data: {
message: 'Hello Vue.js!'
}
});
};