<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Kotlin + OpenGL = KOOL</title>
    <style>
        body {
            background-color: white;
            border: 0;
            padding: 0;
            margin: 0;
        }
        canvas {
            width: 100vw;
            height: 100vh;
            display: block;
        }
    </style>
</head>
<body>
    <!-- Hidden div is needed to get the physical screen resolution, i.e. how many pixels fit into 1 inch -->
    <!-- Apparently this always results in 96 dpi anyway... :/ -->
    <div id="dpiMeasure" style="height: 1in; width: 1in; position: fixed; left: 100%; top: 100%;"></div>

    <!-- tabindex is required to make canvas focusable, needed to get per-canvas key events -->
    <canvas id="glCanvas" tabindex="1">
        Your browser doesn't appear to support the
        <code>&lt;canvas&gt;</code> element.
    </canvas>

    <script type="text/javascript" src="kotlin.js"></script>
    <script type="text/javascript" src="kool-js_main.js"></script>
    <script type="text/javascript" src="kooldemo.js"></script>
</body>
</html>

Split projects into lib and demo projects
Split projects into lib and demo projects
