vendor/assets/src/index_wasm.html in atome-0.5.7.1.0 vs vendor/assets/src/index_wasm.html in atome-0.5.7.1.7

- old
+ new

@@ -12,22 +12,24 @@ <script defer src="js/third_parties/browser.script.iife.min.js" type="text/javascript"></script> <script type="text/javascript" src="js/third_parties/interact.min.js" defer></script> <script type="text/javascript" src="js/third_parties/popmotion.min.js" defer></script> <script type="text/javascript" src="js/third_parties/sortable.min.js" defer></script> <script type="text/javascript" src="js/third_parties/wad.min.js" defer></script> + <script type="text/javascript" src="js/third_parties/wavesurfer.min.js" defer></script> + <script type="text/javascript" src="js/third_parties/webaudio-pianoroll.min.js" defer></script> <script type="text/javascript" src="js/third_parties/sha256.min.js" defer></script> <script type="text/javascript" src="js/third_parties/ping.min.js" defer></script> <script type="text/javascript" src="js/third_parties/fabric.min.js" defer></script> <script type="text/javascript" src="js/third_parties/papaparse.min.js" defer></script> <script defer src="js/atome/atome_helpers/communication.js" type="text/javascript"></script> <script defer src="js/atome/atome_helpers/file.js" type="text/javascript"></script> - <script> - // to prevent right click - document.addEventListener("contextmenu", function (e) { - e.preventDefault(); - }); - </script> +<!-- <script>--> +<!-- // to prevent right click--> +<!-- document.addEventListener("contextmenu", function (e) {--> +<!-- e.preventDefault();--> +<!-- });--> +<!-- </script>--> <title>atome</title> </head> <body id='user_view' class='atome'> <div id='copyright'>©atome 2024</div> @@ -45,18 +47,24 @@ <script defer src="js/atome/specific/wasm.js" type="text/javascript"></script> <script type="text/javascript"> const NativeMode = false; // used by atome.js to load code on the fly </script> <script defer src="js/atome/atome.js" type="text/javascript"></script> +<script> + // to prevent right click + document.addEventListener("contextmenu", function (e) { + e.preventDefault(); + }); +</script> <script defer> - document.addEventListener('touchstart', function(event) { + document.addEventListener('touchstart', function (event) { if (event.touches.length > 1) { event.preventDefault(); } - }, { passive: false }); - document.addEventListener('wheel', function(event) { + }, {passive: false}); + document.addEventListener('wheel', function (event) { if (event.ctrlKey === true) { - event.preventDefault(); // Empêche le zoom quand Ctrl est pressé et que l'utilisateur scroll avec le trackpad + event.preventDefault(); // prevent zoom } - }, { passive: false }); -</script > + }, {passive: false}); +</script> </html>