Why does my pasted code show as plain text, without its style.css or script.js?

A Code part is one file with nothing beside it, so files your code links to by a path of its own, like style.css, script.js, logo.png or data/items.json, aren't there to load: the code shows without its look (plain words, one under another), its buttons do nothing and its pictures are missing. When you paste it with Paste HTML and choose Run it exactly as written, Furge names each file that wasn't pasted, right under that choice, and opens two boxes: paste style.css in CSS from a separate file and script.js in JavaScript from a separate file, and Furge puts each where its link was (a script that waited for the page still runs once the page is there). Add says what it would be without until then. Pictures need a full https:// address: upload them in Assets and copy each one's address from Developer → Files. A Code part you already have says what's missing in its panel, under Edit its code, and its file in Developer mode marks each such path. Links to your other pages open a page that isn't there: each page is a Code part of its own.

Steps

  1. Open Paste HTML, paste your index.html and choose Run it exactly as written (a Code part).
  2. Paste style.css in CSS from a separate file and script.js in JavaScript from a separate file.
  3. Check what it still says is missing (pictures need https:// addresses), then press Add to page.

Also asked as

Related

Still stuck? Ask Furge Help, the round chat button at the bottom right, or contact the Furge team.

← All of Furge's docs