2022-09-28 07:16:30 +02:00
< html >
2022-09-28 07:46:39 +02:00
< head >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" >
</ head >
< body >
2022-09-28 07:16:30 +02:00
Send text and commands to the immersive space :
< form >
< textarea rows = "5" cols = "33" >
</ textarea >
< br >
2022-09-28 07:46:39 +02:00
< input type = button onclick = replaceWithThisText(this) value = Clear ></ input >
2022-09-28 07:16:30 +02:00
< input type = button onclick = sendtovr(this) value = Send ></ input >
</ form >
< br >
2022-09-28 07:46:39 +02:00
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 >
2022-09-28 07:16:30 +02:00
< hr >
< br >
Documentation as :
< ul >
2022-09-28 07:46:39 +02:00
< 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 >
2022-09-28 07:16:30 +02:00
< 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 >
2022-09-28 07:46:39 +02:00
< 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 >
2022-10-22 06:54:02 +02:00
< li >< a href = https://fabien.benetou.fr/pub/home/future_of_text_demo/engine/?background=../content/future_of_text_symposium/HORN-2001-FutureOfHumanCognomeCL.png&fontcolor=lightgray > background</ a > as URL parameter. Feel free to use your own content.</ li >
2022-09-28 07:16:30 +02:00
</ ul >
< script >
function replaceWithThisText ( element ){
document . querySelector ( "textarea" ). value = element . innerText
}
const url = 'https://fabien.benetou.fr/PIMVRdata/FoT?action='
function sendtovr ( cabin ){
text = document . querySelector ( "textarea" ). value
document . querySelector ( "textarea" ). value = ''
2022-09-28 07:46:39 +02:00
if ( text ) fetch ( url + 'source' )
2022-09-28 07:16:30 +02:00
. then ( response => { return response . text () } )
. then ( data => {
fetch ( url + 'edit' , {
method : 'POST' ,
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 ))
})
2022-09-28 07:46:39 +02:00
else alert ( "empty text, please write something and try again" )
2022-09-28 07:16:30 +02:00
}
</ script >
2022-09-28 07:46:39 +02:00
</ body >
2022-09-28 07:16:30 +02:00
</ html >