Can my pasted code run exactly as written, scripts and all?
Yes: a Code part runs your own HTML, CSS and JavaScript exactly as you wrote them, so sums, balances, saved data, forms and screens your script builds all work, on the canvas, in Preview and on the live site. Paste it with Paste HTML and choose Run it exactly as written (a Code part), or paste it into a page's file in Developer mode and choose Run it exactly as written when Furge asks how it should come in; you can also add one from Add → Media → Code. A whole app gets a page of its own and fills the window on the live site. Select it and press Edit its code to change it: it's a file of its own in Developer mode, saved exactly as written. It runs sealed off from Furge and from the rest of the page, so it can't reach your account, your site's visitors' sign-ins or Furge itself; what it saves with localStorage is kept for it on each visitor's device. Its words and pictures are changed in its code, not on the canvas: by you, or by Furge AI from its own Furge AI box, which changes only what you ask and tries it before it says it's done. To change things on the canvas instead, choose Rebuild it with Furge's parts. A Code part is one file: if your page links to style.css or script.js, paste them in the CSS and JavaScript boxes below the code and Furge puts each where its link was.
Steps
- Open Paste HTML (Developer → Code → Paste HTML), paste your code and choose Run it exactly as written (a Code part).
- If it links to style.css or script.js, paste them in the CSS and JavaScript boxes that open.
- Press Add to page: it runs on the canvas straight away.
- Select it and press Edit its code to change it; try it in Preview, then publish.
Also asked as
- run my code as written
- run it exactly as written
- keep my javascript working
- my app's script should run
- paste a whole app
- paste my app and keep it working
- code part
- code block
- custom code block
- embed my own html
- html embed
- run my html css and javascript
- my balance doesn't change
- my transfer doesn't work after pasting
- localstorage in my code
- my own app inside furge
- like vs code
- as effective as vs code
- code that runs on the canvas
Related
Still stuck? Ask Furge Help, the round chat button at the bottom right, or contact the Furge team.