From 4153bccc1ee54af2edff700d061cf265e9aae189 Mon Sep 17 00:00:00 2001 From: Fabien Benetou Date: Thu, 25 May 2023 10:32:31 +0200 Subject: [PATCH] moved editors set --- index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 0a6815a..276bc86 100644 --- a/index.html +++ b/index.html @@ -3082,13 +3082,14 @@ function tiltId(id, value){ // used for testing AFRAME.registerComponent('startfunctions', { init: function () { - if (false) fetch( 'https://webdav.benetou.fr/fot-demo-day/mobydick-extract.txt').then(r=>r.text()).then( src => { + fetch( 'https://webdav.benetou.fr/fot-demo-day/mobydick-extract.txt').then(r=>r.text()).then( src => { addCodeMultipleEditors(2, src, '', name='splitreader') }) + setTimeout( _ => editors.filter(e=>e.element.id.includes('reader') ).map( e=> e.element.object3D.position.x++ ), 1000) document.body.addEventListener( "highlighterready", (e) => { //fetch("colorme.js").then(r=>r.text()).then( page => { addCodeEditor( page ) }) fetch( 'colorme.js').then(r=>r.text()).then( src => { - addCodeMultipleEditors(40, src, 'javascript', name='splitededitor') + addCodeMultipleEditors(4, src, 'javascript', name='splitededitor') }) }, false);