Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
1

JS more Tasks in a REPL ?

alfware17
alfware17

Hey there, I wanted to try out some HTML+CSS+JS tasks.
My idea was to create subfolders, each containing a index.html, css and js.
But it don't work. Even when I move the 3 files from root to subfolder -> nothing found.
Any idea or work flow how I can test more task (and save some) WITHOUT having a new REPL for each?
Thank you for telling me, I am newbie to this

1 year ago
You are viewing a single comment. View All
1
robin_a_meade
robin_a_meade

Yes, your idea should definitely work.

Here's an example of an index.html in a subfolder:
https://html-css-js.robin-a-meade.repl.co/subfolder2/
from my replit https://replit.com/@robin_a_meade/HTML-CSS-JS

NOTE: For convenience of yourself and viewers, you'll probably want to have an index.html file in the root folder that links to the various subfolders. Otherwise, you'll get a error when visiting your replit's URL without the /subfolder1/ part added at the end.

The links in your root index.html file should look something like this:

<p><a href="subfolder1">Example 1</a></p> <p><a href="subfolder2">Example 2</a></p>
3 months ago