more examples in moblie submission interface

warmup
Fabien Benetou 2 years ago
parent b1afc6f2f4
commit b8b4f8e7fb
  1. 19
      submit.html

@ -1,22 +1,33 @@
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
Send text and commands to the immersive space :
<form>
<textarea rows="5" cols="33">
</textarea>
<br>
<input type=button onclick=replaceWithThisText(this) value=Clear></input>
<input type=button onclick=sendtovr(this) value=Send></input>
</form>
<br>
<a onclick=replaceWithThisText(this)>jxr toggleVisibilityEntitiesFromClass('fot')</a>
Examples, tap to add, optionally modify and send :
<ul>
<li><a onclick=replaceWithThisText(this)>jxr qs a-sphere sa color green</a></li>
<li><a onclick=replaceWithThisText(this)>jxr toggleVisibilityEntitiesFromClass('fot')</a></li>
</ul>
<hr>
<br>
Documentation as :
<ul>
<li><a href=https://fabien.benetou.fr/PIMVRdata/FoT>what has already been added by others</a> in a PIM as a wiki (also editable),</li>
<li><a href=https://fabien.benetou.fr/PIMVRdata/CabinCommands?action=source>example of instructions and commands already positioned</a>,</li>
<li><a href=https://fabien.benetou.fr/pub/home/future_of_text_demo/engine/>live result</a> (ideally in VR) and</li>
<li>open-source <a href=https://git.benetou.fr/utopiah/text-code-xr-engine/issues>code repository</a> where you can see the code and make your own suggestions via issues. </li>
<li>open-source <a href=https://git.benetou.fr/utopiah/text-code-xr-engine/issues>code repository</a> of the code and to make your own suggestions via issues. </li>
<li><a href=qrcode.png>QRcode</a> of this page to share with others also on mobile.</li>
</ul>
<script>
function replaceWithThisText(element){
@ -28,7 +39,7 @@ function sendtovr(cabin){
text = document.querySelector("textarea").value
document.querySelector("textarea").value = ''
fetch(url+'source')
if (text) fetch(url+'source')
.then( response => { return response.text() } )
.then( data => {
@ -37,7 +48,9 @@ document.querySelector("textarea").value = ''
headers: {'Content-Type':'application/x-www-form-urlencoded'},
body: "post=1&author=PIMVR&authpw=edit_password&text="+ data+'%0a'+text }).then(res => res).then(res => console.log("saved remotely", res))
})
else alert("empty text, please write something and try again")
}
</script>
</body>
</html>

Loading…
Cancel
Save