Web Integration
Website
Depending on your needs we have two examples on how you can integrate your game on your website.
-
Embed Code
-
Fullscreen iframe
[WEB] Embed Code
<script id="embed-script-v1" type="application/javascript" height="90vh" expander="true" src="https://play.flarie.com/embed.js" embed-url="{your-game-url}"> </script>
Optional attributes
Attribute |
Description |
|
Set an optional |
|
Set an optional |
|
Set an optional |
|
Activate an expander button that will trigger fullscreen mode. Example: |
|
Override the default expander minimize image. Example: |
|
Override the default expander fullscreen image. |
[WEB] Fullscreen iframe
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no minimal-ui'/>
<meta name='apple-mobile-web-app-capable' content='yes'/>
<meta name='screen-orientation' content='portrait'/>
<meta http-equiv='ScreenOrientation' content='autoRotate:disabled'>
<style>
body, html{
height: 100%;
margin:0;
padding:0;
overflow:hidden;
}
#iframe-game {
overflow:hidden;
display:block;
position: absolute;
height: 100%;
width: 100%;
margin:0;
padding:0;
border:0;
}
</style>
</head>
<body>
<iframe id="iframe-game" src="YOUR_GAME_URL"></iframe>
</body>
</html>