<input type="hidden" value="" name="annotation-data" id="annotation-data"/>
<style>html, body, .style-elements { height: 100% } #mturk_form { display: none }</style>
<script src="https://annotation-app.pizenberg.fr/elm-pep.js"></script>
<script src="https://annotation-app.pizenberg.fr/Main.js"></script>
// Function returning the size of the container element for the app.
// In our case, the full layout viewport.
const layoutViewportSize = () => ({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
const containerSize = layoutViewportSize;
// comment to prevent mturk templating system to merge those two '}'
deviceSize: containerSize(),
"annotations": [ "point", "bbox", "stroke", "outline", "polygon" ]
const app = Elm.Main.fullscreen(flags);
<script src="https://annotation-app.pizenberg.fr/ports-mturk.js"></script>