<!DOCTYPE html>
<html>
    <head>
        <title>Interactive Semantic Projection</title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
        <script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
        <script src="closure-library/closure/goog/base.js"></script>
        <script src="fabric.js/dist/fabric.js"></script>
        <script src="definitions.json"></script>
        <script src="database.json"></script>
        <script src="grapher.js"></script>
        <script src="projection.js"></script>
        <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
        <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css">
        <link rel="stylesheet" type="text/css" href="style.css">
    </head>
    <body>

        <div class="container">
            <div class="page-header">
                <h1>Interactive Semantic Projection</h1>
            </div>

            <div id="input">
                <form id="form" class="form-horizontal">
                    <div class="form-group">
                        <label for="query" class="col-md-2 control-label">Keyword</label>
                        <div class="col-md-10">
                            <select id="query" class="form-control" name="query"></select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="maxDistance" class="col-md-2 control-label">Max distance</label>
                        <div class="col-md-10">
                            <input type="number" class="form-control" value="25000" id="maxDistance" name="maxDistance">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="hintSteps" class="col-md-2 control-label">Hint steps</label>
                        <div class="col-md-10">
                            <input class="form-control" type="number" value="100" id="hintSteps" name="hintSteps">
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-md-offset-2 col-md-10">
                            <button class="btn btn-primary" id="search" type="button">Search</button>
                        </div>
                    </div>
                </form>
            </div>

            <div id="output" style="display: none;">
                <h3>Feature tweaks for <span id="keyword" class="text-primary"></span></h3>
                <canvas id="canvas" width="800" height="400"></canvas>

                <h3>Image results (<span id="count" class="text-primary"></span>)</h3>
                <div id="results" style="width: 850px;"></div>
            </div>
        </div>

    </body>
</html>