<commit_before><!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>D4K - MazeVR</title>
    <link rel="stylesheet" href="css/style.css">
    <script src="/node_modules/systemjs/dist/system.js"></script>
    <script type="text/javascript">
      function microAjax(B,A){this.bindFunction=function(E,D){return function(){return E.apply(D,[D])}};this.stateChange=function(D){if(this.request.readyState==4){this.callbackFunction(this.request.responseText)}};this.getRequest=function(){if(window.ActiveXObject){return new ActiveXObject("Microsoft.XMLHTTP")}else{if(window.XMLHttpRequest){return new XMLHttpRequest()}}return false};this.postBody=(arguments[2]||"");this.callbackFunction=A;this.url=B;this.request=this.getRequest();if(this.request){var C=this.request;C.onreadystatechange=this.bindFunction(this.stateChange,this);if(this.postBody!==""){C.open("POST",B,true);C.setRequestHeader("X-Requested-With","XMLHttpRequest");C.setRequestHeader("Content-type","application/x-www-form-urlencoded");C.setRequestHeader("Connection","close")}else{C.open("GET",B,true)}C.send(this.postBody)}};
      var currentVersion;
      setInterval(function() {
        microAjax('/version', function(res) {
          if (!currentVersion) {
            currentVersion = res;
          } else if (currentVersion != res) {
            location.reload();
          }
        });
      }, 5000);

      function start() {
        System.import ('app');
      }
    </script>
</head>
<body>

    <div id="loading">
        <p>Lade...</p>
    </div>

    <div id="settings">
        <form>
            <fieldset>
                <label for="name">Name</label>
                <input id="name" type="text" name="name" value="<NAME>" placeholder="Name" />

                <label for="color">Farbe</label> 
                <input id="color" type="text" name="color" value="blue" placeholder="Farbe" />

                <label for="speed">Geschwindigkeit</label>        
                <input id="speed" type="number" name="speed" value="2" placeholder="Geschwindigkeit" />

                <label>Startpositon</label>
                <p>
                    X <input class="small" type="number" name="x" value="0" /> 
                    Z <input class="small" type="number" name="z" value="0" />
                </p>

                <button>Los gehts!</button>
            </fieldset>
        </form>
    </div>

    <script>
        if (window.location.search.indexOf('name') === -1 ||
            window.location.search.indexOf('color') === -1 ||
            window.location.search.indexOf('speed') === -1
        ) {
            document.getElementById('loading').setAttribute('style', 'display: none;');
            document.getElementById('settings').setAttribute('style', 'display: block;');
        } else {

            const nodeModulesPath = './../node_modules';<commit_msg>use html5 color selector<commit_after><!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>D4K - MazeVR</title>
    <link rel="stylesheet" href="css/style.css">
    <script src="/node_modules/systemjs/dist/system.js"></script>
    <script type="text/javascript">
      function microAjax(B,A){this.bindFunction=function(E,D){return function(){return E.apply(D,[D])}};this.stateChange=function(D){if(this.request.readyState==4){this.callbackFunction(this.request.responseText)}};this.getRequest=function(){if(window.ActiveXObject){return new ActiveXObject("Microsoft.XMLHTTP")}else{if(window.XMLHttpRequest){return new XMLHttpRequest()}}return false};this.postBody=(arguments[2]||"");this.callbackFunction=A;this.url=B;this.request=this.getRequest();if(this.request){var C=this.request;C.onreadystatechange=this.bindFunction(this.stateChange,this);if(this.postBody!==""){C.open("POST",B,true);C.setRequestHeader("X-Requested-With","XMLHttpRequest");C.setRequestHeader("Content-type","application/x-www-form-urlencoded");C.setRequestHeader("Connection","close")}else{C.open("GET",B,true)}C.send(this.postBody)}};
      var currentVersion;
      setInterval(function() {
        microAjax('/version', function(res) {
          if (!currentVersion) {
            currentVersion = res;
          } else if (currentVersion != res) {
            location.reload();
          }
        });
      }, 5000);

      function start() {
        System.import ('app');
      }
    </script>
</head>
<body>

    <div id="loading">
        <p>Lade...</p>
    </div>

    <div id="settings">
        <form>
            <fieldset>
                <label for="name">Name</label>
                <input id="name" type="text" name="name" value="<NAME>" placeholder="Name" />

                <label for="color">Farbe</label> 
                <input id="color" type="color" name="color" value="#ff0000" placeholder="Farbe" />

                <label for="speed">Geschwindigkeit</label>        
                <input id="speed" type="number" name="speed" value="2" placeholder="Geschwindigkeit" />

                <label>Startpositon</label>
                <p>
                    X <input class="small" type="number" name="x" value="0" /> 
                    Z <input class="small" type="number" name="z" value="0" />
                </p>

                <button>Los gehts!</button>
            </fieldset>
        </form>
    </div>

    <script>
        if (window.location.search.indexOf('name') === -1 ||
            window.location.search.indexOf('color') === -1 ||
            window.location.search.indexOf('speed') === -1
        ) {
            document.getElementById('loading').setAttribute('style', 'display: none;');
            document.getElementById('settings').setAttribute('style', 'display: block;');
        } else {

            const nodeModulesPath = './../node_modules';
{'fraction_non_alphanumeric': 0.1822421834513733, 'fraction_numerical': 0.0057004664017965105, 'mean_word_length': 2.86, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 87, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1146319', 'n_tokens_mistral': 1757, 'n_tokens_neox': 1695, 'n_words': 238}