Using index.html to display items above or below the canvas

Wondering if anyone has tweaked the index.html page to allow content on the page and have the canvas NOT take up the full height.

I’m thinking about the possibility of have a banner advert on the page as we can’t monetise in HTML5. 

In ‘normal’ HTML5 the canvas doesn’t have to take up the full screen.

Has anyone experimented with putting the index.html in an iframe on another page?

Hi,

You can use defaultMode = “normal” in the build settings to constrain the canvas to a specific size https://docs.coronalabs.com/guide/distribution/win32Build/index.html#defaultmode

I know some devs have posted games on Kongregate and Newgrounds and they appear to be in a frame of some type so I assume iframes work.

I have a modal plugin as well that I will release that lets you put a window on top of the canvas.

-dev

I tried with AdSense and it works perfectly fine with a banner ad on the bottom.

Yeah it’s possible.  Here’s something that I was messing around with.  Edited index.html, no iframes.

http://www.aquietspace.org/modernretro/

Hi,

You can use defaultMode = “normal” in the build settings to constrain the canvas to a specific size https://docs.coronalabs.com/guide/distribution/win32Build/index.html#defaultmode

I know some devs have posted games on Kongregate and Newgrounds and they appear to be in a frame of some type so I assume iframes work.

I have a modal plugin as well that I will release that lets you put a window on top of the canvas.

-dev

I tried with AdSense and it works perfectly fine with a banner ad on the bottom.

Yeah it’s possible.  Here’s something that I was messing around with.  Edited index.html, no iframes.

http://www.aquietspace.org/modernretro/