• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Problems with html5

C

Chel

Guest
Good day, can you find out how you can place 2 applications html5 on one page? Only 1 application works, when placing the second image on the same page, it does not work

here's the code for one

<html>
<canvas id="canvas" width="999" height="499">
</canvas>


<script id='edit_src' src='kalkul/Kalk_okon.js'></script>


<script>

if(screen.width>1000)
{
edit_src:document.getElementById('edit_src').setAttribute('src', 'kalkul/Kalk_okon.js')
window.onload = GameMaker_Init;
}
else
{

window.onload = GameMaker_Init;
}
</script>
</html>
 

YellowAfterlife

ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ
Forum Staff
Moderator
You'll need to enclose each application in an iframe, as otherwise one of them will get to override GameMaker_Init (and also fight over input events)
 
Top