<script src="https://vladconstantinescu.com/proctor/proctor.js"></script>
<script>
var session = Proctor.start({
requireFullscreen: true,
onViolation: function (count, event) { console.log(count, event.type); }
});
startButton.onclick = function () { session.enterFullscreen(); };
// when the contest ends
var report = session.stop(); // events, summary, chain
Proctor.verify(report) === -1; // true if the log was not edited
</script>