41fd848fa0
Some HTML files were importing iframe_api.js automatically by detecting the referrer document. While this was done in a safe way (the map container does not use cookies), it is not a best practice to load a script originating from document.referrer. This PR solves the issue by using PHP to inject the correct domain name in the HTML files.
125 lines
4.1 KiB
JSON
125 lines
4.1 KiB
JSON
{ "compressionlevel":-1,
|
|
"editorsettings":
|
|
{
|
|
"export":
|
|
{
|
|
"target":"."
|
|
}
|
|
},
|
|
"height":10,
|
|
"infinite":false,
|
|
"layers":[
|
|
{
|
|
"data":[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
|
|
"height":10,
|
|
"id":1,
|
|
"name":"floor",
|
|
"opacity":1,
|
|
"type":"tilelayer",
|
|
"visible":true,
|
|
"width":10,
|
|
"x":0,
|
|
"y":0
|
|
},
|
|
{
|
|
"data":[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
"height":10,
|
|
"id":2,
|
|
"name":"start",
|
|
"opacity":1,
|
|
"type":"tilelayer",
|
|
"visible":true,
|
|
"width":10,
|
|
"x":0,
|
|
"y":0
|
|
},
|
|
{
|
|
"data":[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 34, 34, 34, 34, 34, 0, 0, 0, 0, 0, 34, 34, 34, 34, 34, 0, 0, 0, 0, 0, 34, 34, 34, 34, 34, 0, 0, 0, 0, 0, 34, 34, 34, 34, 34, 0, 0, 0, 0, 0, 34, 34, 34, 34, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
"height":10,
|
|
"id":5,
|
|
"name":"iframe_api",
|
|
"opacity":1,
|
|
"properties":[
|
|
{
|
|
"name":"openWebsite",
|
|
"type":"string",
|
|
"value":"iframe.php"
|
|
},
|
|
{
|
|
"name":"openWebsiteAllowApi",
|
|
"type":"bool",
|
|
"value":true
|
|
}],
|
|
"type":"tilelayer",
|
|
"visible":true,
|
|
"width":10,
|
|
"x":0,
|
|
"y":0
|
|
},
|
|
{
|
|
"data":[0, 0, 93, 0, 104, 0, 0, 0, 0, 0, 0, 0, 104, 0, 115, 0, 0, 0, 93, 0, 0, 0, 115, 0, 0, 0, 93, 0, 104, 0, 0, 0, 0, 0, 0, 0, 104, 0, 115, 93, 0, 0, 0, 0, 0, 0, 115, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 115, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
"height":10,
|
|
"id":6,
|
|
"name":"Metadata",
|
|
"opacity":1,
|
|
"type":"tilelayer",
|
|
"visible":true,
|
|
"width":10,
|
|
"x":0,
|
|
"y":0
|
|
},
|
|
{
|
|
"draworder":"topdown",
|
|
"id":3,
|
|
"name":"floorLayer",
|
|
"objects":[
|
|
{
|
|
"height":141,
|
|
"id":1,
|
|
"name":"",
|
|
"rotation":0,
|
|
"text":
|
|
{
|
|
"fontfamily":"Sans Serif",
|
|
"pixelsize":11,
|
|
"text":"Test:\nWalk on carpet, an iframe open, click the \"Send chat message\" button\nResult:\nThe chat opens and a \"Hello world!\" message is displayed.\nTest:\nEnter something in the chat\nResult:\nThe message is displayed in the iframe",
|
|
"wrap":true
|
|
},
|
|
"type":"",
|
|
"visible":true,
|
|
"width":316.770833333333,
|
|
"x":0.28125,
|
|
"y":187.833333333333
|
|
}],
|
|
"opacity":1,
|
|
"type":"objectgroup",
|
|
"visible":true,
|
|
"x":0,
|
|
"y":0
|
|
}],
|
|
"nextlayerid":7,
|
|
"nextobjectid":3,
|
|
"orientation":"orthogonal",
|
|
"renderorder":"right-down",
|
|
"tiledversion":"1.4.3",
|
|
"tileheight":32,
|
|
"tilesets":[
|
|
{
|
|
"columns":11,
|
|
"firstgid":1,
|
|
"image":"tileset1.png",
|
|
"imageheight":352,
|
|
"imagewidth":352,
|
|
"margin":0,
|
|
"name":"tileset1",
|
|
"spacing":0,
|
|
"tilecount":121,
|
|
"tileheight":32,
|
|
"tilewidth":32
|
|
}],
|
|
"tilewidth":32,
|
|
"type":"map",
|
|
"version":1.4,
|
|
"width":10
|
|
}
|