@simontiger/

SortingImproved

HTML, CSS, JS

No description

fork
loading
Files
  • index.html
  • script.js
  • style.css
  • tree.js

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.7464686019830673","path":"index.html","file":{"path":"index.html","content":{"asEncoding":{"base64":"PCFET0NUWVBFIGh0bWw+CjxodG1sPgogIDxoZWFkPgogICAgPG1ldGEgY2hhcnNldD0idXRmLTgiPgogICAgPG1ldGEgbmFtZT0idmlld3BvcnQiIGNvbnRlbnQ9IndpZHRoPWRldmljZS13aWR0aCI+CiAgICA8dGl0bGU+cmVwbC5pdDwvdGl0bGU+CiAgICA8bGluayBocmVmPSJzdHlsZS5jc3MiIHJlbD0ic3R5bGVzaGVldCIgdHlwZT0idGV4dC9jc3MiIC8+CiAgPC9oZWFkPgogIDxib2R5PgogICAgPGgxPlNvcnRpbmc8L2gxPgogICAgPHA+CiAgICAgICMgb2YgZWxlbWVudHM6IDxpbnB1dCBpZD0iZWx0cyIgdmFsdWU9IjEwMCIgLz48YnI+CiAgICAgIDxidXR0b24gaWQ9InNodWZmbGUiPlNodWZmbGU8L2J1dHRvbj4KICAgIDwvcD4KICAgIDxwPgogICAgICBBbGdvcml0aG06IDxzZWxlY3QgaWQ9ImFsZ28iPgogICAgICAgIDxvcHRpb24+UXVpY2tzb3J0PC9vcHRpb24+CiAgICAgICAgPG9wdGlvbj5NZXJnZSBTb3J0PC9vcHRpb24+CiAgICAgICAgPG9wdGlvbj5IZWFwIFNvcnQ8L29wdGlvbj4KICAgICAgICA8b3B0aW9uPkluc2VydGlvbiBTb3J0PC9vcHRpb24+CiAgICAgICAgPG9wdGlvbj5TZWxlY3Rpb24gU29ydDwvb3B0aW9uPgogICAgICAgIDxvcHRpb24+QnViYmxlIFNvcnQ8L29wdGlvbj4KICAgICAgICA8b3B0aW9uPlNoZWxsIFNvcnQ8L29wdGlvbj4KICAgICAgICA8b3B0aW9uPlJhZGl4IFNvcnQ8L29wdGlvbj4KICAgICAgPC9zZWxlY3Q+PGJyPgogICAgICBGcmFtZXJhdGU6IDxpbnB1dCBpZD0iZnIiIHZhbHVlPSIzMCIgLz48YnI+CiAgICAgIDxidXR0b24gaWQ9InNvcnQiPlNvcnQ8L2J1dHRvbj4KICAgICAgPGJ1dHRvbiBpZD0ic3RvcCI+U3RvcDwvYnV0dG9uPgogICAgPC9wPgogICAgPGRpdiBpZD0iY29udGFpbmVyIj48L2Rpdj4KICAgIDxzY3JpcHQgc3JjPSJzY3JpcHQuanMiPjwvc2NyaXB0PgogIDwvYm9keT4KPC9odG1sPg=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>repl.it</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
  </head>
  <body>
    <h1>Sorting</h1>
    <p>
      # of elements: <input id="elts" value="100" /><br>
      <button id="shuffle">Shuffle</button>
    </p>
    <p>
      Algorithm: <select id="algo">
        <option>Quicksort</option>
        <option>Merge Sort</option>
        <option>Heap Sort</option>
        <option>Insertion Sort</option>
        <option>Selection Sort</option>
        <option>Bubble Sort</option>
        <option>Shell Sort</option>
        <option>Radix Sort</option>
      </select><br>
      Framerate: <input id="fr" value="30" /><br>
      <button id="sort">Sort</button>
      <button id="stop">Stop</button>
    </p>
    <div id="container"></div>
    <script src="script.js"></script>
  </body>
</html>
result
console