-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnews.html
executable file
·42 lines (38 loc) · 978 Bytes
/
news.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
<html>
<head>
<title></title>
<script
src="https://code.jquery.com/jquery-3.3.1.js"
integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
crossorigin="anonymous">
</script>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script>
$(function(){
$("#header").load("header.html", function () {
d3.select("#").classed("selected", true);
});
$("#footer").load("footer.html");
$("#sidebar").load("newsSidebar.html");
});
</script>
</head>
<body>
<div id="header"></div>
<div>
<div id="site_content">
<div id="top_border"></div>
<div id="sidebar"></div>
<div class="content newsBox">
</div>
</div>
</div>
</div>
<div id="footer"></div>
</body>
<script>
d3.xml("xml/newsArchive.xml", function (error, xml) {
console.log(xml.documentElement);
})
</script>
</html>