Page path:

HTML games, animations, interactive features, etc.

The HTML entry allows you to upload zipped HTML projects so that they can be displayed in the front end. This is particularly suitable for small, interactive games and animations, etc.

When creating HTML projects, please note the following:

  • In xpedeo, only one HTML entry may be used per page; this is displayed in full-screen mode. We recommend using flexible, responsive layouts.
  • Images and scripts must be referenced using relative paths.
  • The ID and class attributes of the HTML elements and the corresponding CSS selectors should be unique enough to avoid conflicts with the xpedeo system’s selectors. The CSS rules should be included in a separate file or specified directly within the HTML file.

MULTILINGUALISM: This entry is language-independent and will therefore be translated into the secondary language(s). 

If you have any requests for HTML-based games in xpedeo, we’re sure we can help. Perhaps we can adapt a game from our collection for you or develop something new.

 

 

Slingshot Tongue game
An example of a game at Botanika Bremen

You must ensure that users can navigate back from the page. On xpedeo, the navigation elements (header bar with main menu, Back and Next arrows) are hidden after a few seconds.
It is best to ensure that the navigation elements are displayed again in response to touch events in your HTML application; this is how it works on other sites as well.

To do this, use JavaScript and call:

window.parent.postMessage({ method: 'touchstart' }, '*')
window.parent.postMessage({ method: 'touchend }, '*')

In addition, you can use the following features:

  • Back to the previous page:
    window.parent.postMessage({ method: 'back' }, '*')
  • Go to the next page:
    window.parent.postMessage({ method: 'goToNextPage' }, '*')
  • Go to a specific page:
    window.parent.postMessage({ method: 'showPage', pageId: 123 }, '*')
  • Open a link in a new tab:
    window.parent.postMessage({ method: 'openLink', href: 'https://www.xpedeo.de/' }, '*')