21 lines
759 B
HTML
21 lines
759 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>List: insert operation</title>
|
|
<script src="../../konva.js"></script>
|
|
</head>
|
|
<body>
|
|
|
|
<h1>List: insert operation</h1>
|
|
<p>This animation shows the insert operation in List. Click the "next step" button to run the animation. <b>Note:</b> in this animation, we will insert a node in between 5 and 8, and we assume the new node's value (i.e., x) is 4.</p>
|
|
|
|
<div id="container"></div>
|
|
<script src="insert.js"></script>
|
|
|
|
<!-- we must include the javascript first, and then have this button definition which calls a function defined in the javascript -->
|
|
<button onclick="list_insert_nextstep()" style="position: absolute; top: 110px; left: 10px;">next step</button>
|
|
|
|
</body>
|
|
</html>
|