ScriptOnIt / Docs Building a Hello World app

The bare minimum

Adding the Scriptonit engine

Let's add one line before the closing line of the body:

<script src="Scriptonit.Engine.js"></script>

So now the body looks like:

<body>

    Hello World!

    <script src="Scriptonit.Engine.js"></script>
</body>

Now we have the functions ready to use but we're not actually using them; so it's time to start some Javascript coding. For this, we add another line:

<body>

    Hello World!

    <script src="Scriptonit.Engine.js"></script>
    <script src="start.js"></script>
</body>

...and of course we must add the file system/Scriptonit.Engine.js to the project. But usually it's already there. Now let's create a start.js from scratch (in app folder, like everything else):

var sci = new ScriptonitInterface();    // create an instance
sci.window.setTitle("Hey check out my first app!");

That was easy:

Now we have the window title under control.

Automatic reloading

Working with styles

How a normal project looks

Conclusion