32 lines
1.3 KiB
HTML
32 lines
1.3 KiB
HTML
|
<!doctype html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<script>
|
||
|
var script = document.createElement('script');
|
||
|
// Don't do this at home kids! The "document.referrer" part is actually inserting a XSS security.
|
||
|
// We are OK in this precise case because the HTML page is hosted on the "maps" domain that contains only static files.
|
||
|
script.setAttribute('src', document.referrer + 'iframe_api.js');
|
||
|
document.head.appendChild(script);
|
||
|
|
||
|
window.addEventListener('load', () => {
|
||
|
WA.room.setTiles([
|
||
|
{x: 0, y: 0, tile: 92, layer: 'setTiles'},
|
||
|
{x: 0, y: 2, tile: 'Red', layer: 'setTiles'},
|
||
|
{x: 0, y: 3, tile: 99, layer: 'setTiles'},
|
||
|
{x: 0, y: 5, tile: 117, layer: 'setTiles'},
|
||
|
{x: 0, y: 6, tile: 117, layer: 'setTiles'},
|
||
|
{x: 0, y: 9, tile: 74, layer: 'setTiles'}
|
||
|
]);
|
||
|
WA.room.setTiles([
|
||
|
{x: 6, y: 4, tile: 'blue', layer: 'setTiles'},
|
||
|
{x: 7, y: 4, tile: 109, layer: 'setTiles'},
|
||
|
{x: 8, y: 4, tile: 109, layer: 'setTiles'},
|
||
|
{x: 9, y: 4, tile: 'blue', layer: 'setTiles'}
|
||
|
]);
|
||
|
});
|
||
|
</script>
|
||
|
</head>
|
||
|
<body>
|
||
|
</body>
|
||
|
</html>
|