Files
CSCI-1200/animations/lists/push_front/index.html
2023-09-11 21:11:17 -04:00

21 lines
749 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>List push_front</title>
<script src="../../konva.js"></script>
</head>
<body>
<h1>List push_front</h1>
<p>This animation shows how the push_front() method works in List. Click the "next step" button to run the animation. <b>Note:</b> In this animation, we only consider the general case where the list is not empty. Also, we assume value is 4. </p>
<div id="container"></div>
<script src="push_front.js"></script>
<!-- we must include the javascript first, and then have this button definition which calls a function defined in the javascript -->
<button onclick="nextstep()" style="position: absolute; top: 110px; left: 10px;">next step</button>
</body>
</html>