Skip to content

Commit 94ffcee

Browse files
committed
Start main() at end of mandelbrot.js instead of in HTML
1 parent 19391da commit 94ffcee

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

mandelbrot.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,5 @@ <h1>The Mandelbrot Set</h1>
243243

244244
<script type="text/javascript" src="mandelbrot.js">
245245
</script>
246-
247-
<script type="text/javascript">
248-
main();
249-
</script>
250246
</body>
251247
</html>

mandelbrot.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,3 +730,5 @@ function main()
730730
draw(getColorPicker(), getSamples());
731731
draw(getColorPicker(), getSamples());
732732
}
733+
734+
main();

0 commit comments

Comments
 (0)