Tutorial
Get started with DEMOLAND and learn how to code websites!
How to use DEMOLAND
Get started with DEMOLAND and learn how to code websites!
Open chapter ↗DEMOLAND is an open source website template that allows you to distribute editable code demos (HTML, CSS, JavaScript) entirely within your web browser. This project was created by GD with GD to make teaching code easier, without the need for subscribing to any premium code distribution services.
DEMOLAND is a metaphor for a library containing books featuring chapters of demos. Each book is organized via JSON files, and each demo is split up into two HTML files (content and information). A Node.js file generates the homepage as a static document, while the code editor page fetches demos dynamically. The editor is built using CodeMirror 5.
Interested in launching your own DEMOLAND site? Clone the GitHub repository and launch your site via GitHub pages!
CREDITS
DEMOLAND was developed by GD with GD / Gabriel Drozdov. The site features Limkin by Too Much Type and Monaspace by GitHub. Text editors are built using CodeMirror 5. The original DEMOLAND site is available at demoland.gdwithgd.com.
If you launch your own DEMOLAND, I’d appreciate it if you left these credits in. And sent me an email just to share your work!
DEMOLAND is an open source website template that allows you to distribute editable code demos (HTML, CSS, JavaScript) entirely within your web browser. By GD with GD.
Get started with DEMOLAND and learn how to code websites!
Get started with DEMOLAND and learn how to code websites!
Open chapter ↗What is code? What can we use it for? This book is an introduction to coding through the lens of web programming. We’ll cover object-oriented programming using JavaScript, and use HTML and CSS to create visual and interactive outputs.
Introducing the basics of JavaScript: variables, data types, operators, conditionals, and functions.
Open chapter ↗Try to answer these questions on your own first! You can access the assignment here.
Open chapter ↗How can we use code to do a whole bunch of things at once? With loops!
Open chapter ↗Topics: random numbers, input elements, accessing data from arrays, for/while loops.
Open chapter ↗Topics: random numbers, input elements, accessing data from arrays, for/while loops.
Open chapter ↗We can store, access, and modify data (relatively) easily using arrays and objects.
Open chapter ↗