-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
61 lines (56 loc) · 1.55 KB
/
index.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html lang="en">
<head>
<title>Interactive Architecture</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script src="../js/d3.v4.min.js" charset="utf-8"></script>
<script src="../js/interactive-architecture.js" charset="utf-8"></script>
<link rel="stylesheet" href="../css/interactive-architecture.css">
<link rel="stylesheet" href="../css/markdown-popup.css">
<style>
body {
margin: 0;
width: 100%;
font-size: 18px;
line-height: 1.65;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
body > article {
box-sizing: border-box;
margin: 0 auto;
max-width: 600px;
}
.interactive-architecture a > path {
fill: white;
stroke-width: 2px;
}
</style>
</head>
<body>
<header></header>
<article>
<p>
Example using diagram, using <a href="https://github.com/nypl-spacetime/interactive-architecture">interactive-architecture</a>.
</p>
<div id='architecture'>
</div>
<article>
<script>
var namespaces = {
gh: 'https://github.com/'
}
var config = {
getHref: function (link) {
return link.getAttribute('xl:href')
},
getPopupContents: function (href, link) {
if (href.indexOf(namespaces.gh) >= 0) {
return iA.gitHub.getReadme(href)
}
}
}
iA.architecture.create('#architecture', 'example.svg', config)
</script>
</body>
</html>