diff --git a/js/main.js b/js/main.js index 8a9af32..d7030d5 100644 --- a/js/main.js +++ b/js/main.js @@ -22,7 +22,9 @@ function sef(filename) { new Audio("assets/music/" + filename + ".mp3").play(); } $("#playBegin").click(function () { - document.getElementsByTagName("html")[0].requestFullscreen(); + try { + document.getElementsByTagName("html")[0].requestFullscreen(); + } catch(e){} audiosegm(); $(this).fadeOut(); }); @@ -104,4 +106,4 @@ $(".ans").click(function () { } displayQuestion(); $("#correct").fadeOut(); -}); \ No newline at end of file +});