Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Play HTML5 within a div on a webpage

New Here ,
Jan 11, 2020 Jan 11, 2020

Created a micro learning project (HTML5). I need it to run within a div on a webpage. Right now, I am loading the project into the div via JQuery .load command. However, the div is blank on the page and it displays full width. The project is small (300x400).

 

Any way to do this?

TOPICS
Advanced , Advanced actions
433
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Community Expert , Jan 11, 2020 Jan 11, 2020

I think you would be better off running it in an iframe on the page, not a DIV.

Translate
LEGEND , Jan 12, 2020 Jan 12, 2020

Same answer here, I always put a link to the published course in an iFrame when inserting a published example in my blog posts. Have a look at the most recent published example:

http://blog.lilybiri.com/find-the-differences-game

Translate
Community Expert ,
Jan 11, 2020 Jan 11, 2020

I think you would be better off running it in an iframe on the page, not a DIV.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 12, 2020 Jan 12, 2020

Same answer here, I always put a link to the published course in an iFrame when inserting a published example in my blog posts. Have a look at the most recent published example:

http://blog.lilybiri.com/find-the-differences-game

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 12, 2020 Jan 12, 2020
LATEST

That worked! Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources