-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
22 lines (19 loc) · 932 Bytes
/
index.html
File metadata and controls
22 lines (19 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!-- Author : Ayush Kumar aykumar@cs.stonybrook.edu -->
<!DOCTYPE html>
<html lang="en">
<head>
<!-- <script src="../d3.min.js"></script> Use D3 library from CDN -->
<script src="https://d3js.org/d3.v4.min.js"></script>
<!-- <script src="./js/testFunc.js"></script> -->
</head>
<body>
<script>
console.log("Hello World"); // write your d3 code here..
</script>
<!-- <script src="./js/testFunc.js"></script> -->
</body>
</html>
<!-- The reason is that you’re guaranteed all of the DOM elements you may need are already present on the page.
Loading your scripts earlier could introduce timing issues where you would need to worry about using window.onload or
some other method to determine when the DOM is ready to be used. By including this code at the bottom of the page,
you are assured that the DOM is ready to be poked and you won’t need to delay initialization any further. -->