This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Опросник</title> | |
</head> | |
<body> | |
<h1>Опросник</h1> | |
<form> | |
<p>1. Как часто вы занимаетесь спортом?</p> |
This file contains hidden or 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
// select the target node | |
var target = document.querySelector('video'); | |
// create an observer instance | |
var observer = new MutationObserver(function(mutations) { | |
// console.log('mutations', mutations); | |
mutations.forEach(function(mutation) { | |
if (mutation.type!='attributes') | |
return console.log('another type of mutation', mutation); | |
console.log('mutation changed ', mutation.attributeName,' from ', mutation.oldValue, ' to ', target.getAttribute(mutation.attributeName)); |
This file contains hidden or 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
/** | |
* @license | |
* Video.js 5.10.2-25 <http://videojs.com/> | |
* Copyright Brightcove, Inc. <https://www.brightcove.com/> | |
* Available under Apache License Version 2.0 | |
* <https://github.com/videojs/video.js/blob/master/LICENSE> | |
* | |
* Includes vtt.js <https://github.com/mozilla/vtt.js> | |
* Available under Apache License Version 2.0 | |
* <https://github.com/mozilla/vtt.js/blob/master/LICENSE> |