-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
135 lines (117 loc) · 7.46 KB
/
index.html
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Robert James Gabriel : Sorting ALor</title>
<!-- Bootstrap -->
<!-- Material Design fonts -->
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:300,400,500,700" type="text/css">
<link href="//fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Bootstrap Material Design -->
<link href="//robertgabriel.ninja/dist/css/styles.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="//oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="//oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="navbar navbar-warning">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-warning-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="//robertgabriel.ninja">Robert James Gabriel</a>
</div>
<div class="navbar-collapse collapse navbar-warning-collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#bubble">Bubble Sort</a></li>
<li><a href="#insertion" >Insertion Sort</a></li>
<li><a href="#selection">Selection Sort</a></li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-3"></div>
<div class="col-sm-6">
<div class="panel panel-default" id="bubble">
<div class="panel-body">
<h3>Bubble Sort</h3>
<p>Bubble sort, sometimes referred to as sinking sort, is a simple sorting algorithm that repeatedly steps through the list to be sorted, compares each pair of adjacent items and swaps them if they are in the wrong order.</p>
<div class="form-group" style="margin-top:50px;">
<div class="col-md-12">
<div class="form-group label-floating">
<label class="control-label" for="focusedInput1">Data to sort</label>
<input type="text" class="form-control" id="inputBubble" placeholder="987678987" required>
</div>
<label class="control-label">Sorted Data</label>
<input type="text" class="form-control" id="bubbleResult" placeholder="1829322">
<button onclick="bubble_event()" class="btn btn-raised btn-info" >Sort</button>
<a href="//github.com/RobertJGabriel/sorting-algorithms-coffeescript/blob/master/assets/coffeescript/sorts.coffee#L4-L17" class="btn btn-raised btn-link">Source</a>
</div>
</div>
</div>
</div>
<div class="panel panel-default" id="insertion">
<div class="panel-body">
<h3>Insertion Sort</h3>
<p>Insertion sort is a simple sorting algorithm that builds the final sorted array (or list) one item at a time. It is much less efficient on large lists than more advanced algorithms such as quicksort, heapsort, or merge sort. ... Efficient for (quite) small data sets, much like other quadratic sorting algorithms.</p>
<div class="form-group" style="margin-top:50px;">
<div class="col-md-12">
<div class="form-group label-floating">
<label class="control-label" for="focusedInput1">Data to sort</label>
<input type="text" class="form-control" id="inputInsertion" placeholder="987678987" required>
</div>
<label class="control-label" for="focusedInput1">Sorted Data</label>
<input type="text" class="form-control" id="insertionResult" placeholder="">
<button onclick="insertion_event()" class="btn btn-raised btn-info" >Sort</button>
<a href="//github.com/RobertJGabriel/sorting-algorithms-coffeescript/blob/master/assets/coffeescript/sorts.coffee#L22-L41" class="btn btn-raised btn-link">Source</a>
</div>
</div>
</div>
</div>
<div class="panel panel-default" id="selection">
<div class="panel-body">
<h3>Selection Sort</h3>
<p>The selection sort is a combination of searching and sorting. During each pass, the unsorted element with the smallest (or largest) value is moved to its proper position in the array. The number of times the sort passes through the array is one less than the number of items in the array.</p>
<div class="form-group" style="margin-top:50px;">
<div class="col-md-12">
<div class="form-group label-floating">
<label class="control-label" for="focusedInput1">Data to sort</label>
<input type="text" class="form-control" id="inputSelection" placeholder="987678987" required>
</div>
<label class="control-label" for="focusedInput1">Sorted Data</label>
<input type="text" class="form-control" id="selectionResult" placeholder="987678987">
<button onclick="selection_event()" class="btn btn-raised btn-info" >Sort</button>
<a href="//github.com/RobertJGabriel/sorting-algorithms-coffeescript/blob/master/assets/coffeescript/sorts.coffee#L45-L59" class="btn btn-raised btn-link">Souce</a>
</div>
</div>
</div>
</div>
<div class="col-sm-3"></div>
</div>
</div>
</div>
<!-- /.container -->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="./assets/js/sorts.js"></script>
<!-- Material Design for Bootstrap -->
<script src="//robertgabriel.ninja/dist/js/all.min.js"></script>
<script>
$.material.init();
</script>
</body>
</html>