Adding maps for test metadata
Documentation of metadata functions/methods
This commit is contained in:
parent
ce0a72c6ce
commit
96545c618a
16 changed files with 1571 additions and 59 deletions
21
maps/tests/Metadata/showHideLayer.html
Normal file
21
maps/tests/Metadata/showHideLayer.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<script src="http://play.workadventure.localhost/iframe_api.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<label for="show/hideLayer">Crysal Layer : </label><input type="checkbox" id="show/hideLayer" name="visible" value="show" checked>
|
||||
</div>
|
||||
<script>
|
||||
document.getElementById('show/hideLayer').onclick = () => {
|
||||
if (document.getElementById('show/hideLayer').checked) {
|
||||
WA.showLayer('crystal');
|
||||
}
|
||||
else {
|
||||
WA.hideLayer('crystal');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue