<commit_before>﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>BabylonJS - Sandbox</title>
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
    <link href="index.css" rel="stylesheet" />
    <script src="../dist/preview%20release/cannon.js"></script>
    <script src="../dist/preview%20release/Oimo.js"></script>
    <script src="../Tools/DevLoader/BabylonLoader.js"></script>
</head>
<body>
    <p id="droptext">Drag and drop gltf, glb, obj or babylon files to view them</p>
    <canvas id="renderCanvas"></canvas>
    <div id="logo">
    </div>
    <div id="footer" class="footer">
        <div id="animationBar">
            <div class="dropdown">
                <div id="dropdownBtn">
                    <img src="Assets/Icon_Up.svg" id="chevronUp">
                    <img src="Assets/Icon_Down.svg" id="chevronDown">
                    <span id="dropdownLabel"></span>
                </div>
                <div id="dropdownContent">
                </div>
            </div>
            <div class="row">
                <button id="playBtn" class="pause">
                    <img id="playImg" src="Assets/Icon_Play.svg">
                    <img id="pauseImg" src="Assets/Icon_Pause.svg">    
                </button>
                <input id="slider" type="range" min="0" max="100" value="0" step="any">
            </div>
        </div>               
        <div class="footerRight">
            <a href="#" id="btnFullscreen" class="hidden"><img src="./Assets/Icon_Fullscreen.svg" alt="Switch the scene to full screen" title="Switch the scene to full screen" /></a> 
            <a href="#" id="btnInspector" class="hidden"><img src="./Assets/Icon_EditModel.svg" alt="Display inspector" title="Display inspector" /></a> 
            <a href="#">
                <div class="custom-upload" title="Open your scene from your hard drive (.babylon, .gltf, .glb, .obj)">
                    <input type="file" id="files" multiple />
                </div>
            </a>
        </div>
    </div>
    <div id="errorZone"></div>
    <script>
        BABYLONDEVTOOLS.Loader
            .require('index.js')
            .load(function () {
                BABYLON.DracoCompression.Configuration.decoder = {
                    wasmUrl: "../dist/preview%20release/draco_wasm_wrapper_gltf.js",
                    wasmBinaryUrl: "../dist/preview%20release/draco_decoder_gltf.wasm",
                    fallbackUrl: "../dist/preview%20release/draco_decoder_gltf.js"
                };
            });
    </script>
</body>
</html><commit_msg>prevent drag and drop of file until local scripts are loaded<commit_after>﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>BabylonJS - Sandbox</title>
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
    <link href="index.css" rel="stylesheet" />
    <script src="../dist/preview%20release/cannon.js"></script>
    <script src="../dist/preview%20release/Oimo.js"></script>
    <script src="../Tools/DevLoader/BabylonLoader.js"></script>
</head>
<body>
    <p id="droptext">Drag and drop gltf, glb, obj or babylon files to view them</p>
    <canvas id="renderCanvas"></canvas>
    <div id="logo">
    </div>
    <div id="footer" class="footer">
        <div id="animationBar">
            <div class="dropdown">
                <div id="dropdownBtn">
                    <img src="Assets/Icon_Up.svg" id="chevronUp">
                    <img src="Assets/Icon_Down.svg" id="chevronDown">
                    <span id="dropdownLabel"></span>
                </div>
                <div id="dropdownContent">
                </div>
            </div>
            <div class="row">
                <button id="playBtn" class="pause">
                    <img id="playImg" src="Assets/Icon_Play.svg">
                    <img id="pauseImg" src="Assets/Icon_Pause.svg">
                </button>
                <input id="slider" type="range" min="0" max="100" value="0" step="any">
            </div>
        </div>
        <div class="footerRight">
            <a href="#" id="btnFullscreen" class="hidden"><img src="./Assets/Icon_Fullscreen.svg" alt="Switch the scene to full screen" title="Switch the scene to full screen" /></a> 
            <a href="#" id="btnInspector" class="hidden"><img src="./Assets/Icon_EditModel.svg" alt="Display inspector" title="Display inspector" /></a> 
            <a href="#">
                <div class="custom-upload" title="Open your scene from your hard drive (.babylon, .gltf, .glb, .obj)">
                    <input type="file" id="files" multiple />
                </div>
            </a>
        </div>
    </div>
    <div id="errorZone"></div>
    <script>
        // prevent drag and drop of file until local scripts are loaded
        document.ondragover = function (e) {
            e.dataTransfer.dropEffect = "none";
            e.dataTransfer.effectAllowed = "none";
            e.preventDefault();
        };

        BABYLONDEVTOOLS.Loader
            .require('index.js')
            .load(function () {
                BABYLON.DracoCompression.Configuration.decoder = {
                    wasmUrl: "../dist/preview%20release/draco_wasm_wrapper_gltf.js",
                    wasmBinaryUrl: "../dist/preview%20release/draco_decoder_gltf.wasm",
                    fallbackUrl: "../dist/preview%20release/draco_decoder_gltf.js"
                };
            });
    </script>
</body>
</html>
{'fraction_non_alphanumeric': 0.16335740072202165, 'fraction_numerical': 0.007581227436823105, 'mean_word_length': 2.0212649945474372, 'pattern_counts': {'":': 0, '<': 125, '<?xml version=': 0, '>': 125, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '4005011', 'n_tokens_mistral': 1726, 'n_tokens_neox': 1619, 'n_words': 334}