Importing an HTML game into the survey | XM Community
Question

Importing an HTML game into the survey

  • 13 May 2020
  • 1 reply
  • 135 views

Hey there,
I am trying to import an HTML game into the survey, but I am having some trouble with the way the game is framed in the survey window.
This is how I embedded the game btw:
1) in the Look and feel >>> style Custom CSS, I inserted the following code:
display:none;
}

.resp-container {
position: relative;
overflow: hidden;
padding-top: 56.25%;
}

.resp-iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
}
2) in the HTML view of the question, I inserted the following code:

">https://cdn.htmlgames.com/TetroClassic/">

--------
Now my issue, for some reason the game only takes a very small portion of the window, even if it's the only question on the page. Do you know how I could fix that? Also, is there any way to make the survey automatically go into full screen mode ?
Thank you
image.png


1 reply

Userlevel 3
Badge +2

Add some css width, and height to the div resp-container, or the iframe that should solve your problem.

Leave a Reply