Manichand Kondapaka
Manichand Kondapaka
```javascript editable function setCodeToPlayground(){ const code = JSON.parse(localStorage.getItem(window.location.href)); console.log(code) if(code){ const playground = document.getElementsByClassName('ace_text-layer')[0] while (playground.lastElementChild) { console.log(playground.lastElementChild.innerHTML.replace('','^').replace('',"^").replace(/\s+/g, '').split('^')) playground.removeChild(playground.lastElementChild); } console.log(playground,"after removal") for(let i = 0; i < code.length;...
> ```js > function setCodeToPlayground(){ > const code = JSON.parse(localStorage.getItem(window.location.href)); > console.log(code) > if(code){ > const playground = document.getElementsByClassName('ace_text-layer')[0] > while (playground.lastElementChild) { > console.log(playground.lastElementChild.innerHTML.replace('','^').replace('',"^").replace(/\s+/g, '').split('^')) > playground.removeChild(playground.lastElementChild); > }...
Getting problem with word without span tag. every word as a specific span tag except variables and print keyword.Missing those words without span tag.
Hello @djmitche , still any thing needed to add to close this issue.
on 2nd point. > saving the current page after reset of playground. When you reset the playground it will clear all including the current page but when you leave the...
> Cc @djmitche, @fw-immunant, and @mani-chand. I merged this now so I can ensure the course works for the class I'm teaching in ~12 hours. > > I only saw...
> Cc @djmitche, @fw-immunant, and @mani-chand. I merged this now so I can ensure the course works for the class I'm teaching in ~12 hours. > > I only saw...
> LocalState is limited in the amount of storage a site is allowed. I think that's 5MB? That might be part of the issue. > > Docs on [pagehide](https://developer.mozilla.org/en-US/docs/Web/API/Window/pagehide_event) agree...
> Yeah, my quic mental math also suggested we weren't using 5MB. > > I think the ACE editor has [its own events](https://ace.c9.io/#nav=howto:~:text=find(%27needle%27%2C%20...)-,Listening%20to%20Events,-To%20listen%20for) which would probably be better to listen...