- kopieren von fragen erschweren

This commit is contained in:
ma0048
2023-12-11 13:30:39 +01:00
parent 483b6171c7
commit 8f46613620
6 changed files with 96 additions and 3 deletions
+20
View File
@@ -434,6 +434,26 @@ if (isset($_POST['save']) && isset($_SESSION['prestudent_id']))
});';
?>
$(document).bind('cut copy paste', function(e)
{
if (document.querySelector('.frage'))
{
e.preventDefault();
}
});
$(document).on("keydown", function (e)
{
if (((e.ctrlKey || e.metaKey) && e.keyCode === 85) || e.keyCode === 123)
{
e.preventDefault();
}
});
$(document).on("contextmenu", function (e)
{
e.preventDefault();
});
// If Browser is any other than Mozilla Firefox and the test includes any MathML,
// show message to use Mozilla Firefox
var ua = navigator.userAgent;