-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathembed.html
More file actions
128 lines (121 loc) · 3.92 KB
/
Copy pathembed.html
File metadata and controls
128 lines (121 loc) · 3.92 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="screen-orientation" content="landscape">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<title>Legal System Visualization - Embed Example</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
background: #f5f5f5;
}
.example-container {
background: white;
padding: 20px;
margin: 20px 0;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.example-container h2 {
margin-top: 0;
color: #333;
}
.embed-container {
width: 100%;
height: 700px;
border: 1px solid #ddd;
border-radius: 4px;
margin: 20px 0;
}
code {
background: #f4f4f4;
padding: 2px 6px;
border-radius: 3px;
font-family: 'Courier New', monospace;
}
pre {
background: #f4f4f4;
padding: 15px;
border-radius: 4px;
overflow-x: auto;
}
</style>
<!-- Include D3.js -->
<script src="https://d3js.org/d3.v7.min.js"></script>
<!-- Include CSS -->
<link rel="stylesheet" href="style.css">
<!-- Include required scripts -->
<script src="data.js"></script>
<script src="helpers.js"></script>
<script src="network-diagram.js"></script>
</head>
<body>
<h1>Legal System Visualization - Embed Examples</h1>
<div class="example-container">
<h2>Example 1: Basic Embed (Diagram View)</h2>
<p>This example shows a basic embed with default settings (diagram view, filters enabled, read-only mode).</p>
<div id="embed-example-1" class="embed-container"></div>
<h3>Code:</h3>
<pre><code><div id="my-viz" style="width: 100%; height: 700px;"></div>
<script src="data.js"></script>
<script src="helpers.js"></script>
<script src="network-diagram.js"></script>
<script src="embed.js"></script>
<script>
LegalSystemEmbed.init({
container: '#my-viz',
view: 'diagram',
showFilters: true
});
</script></code></pre>
</div>
<div class="example-container">
<h2>Example 2: Table View with Filters</h2>
<p>This example shows the table view with filters enabled.</p>
<div id="embed-example-2" class="embed-container"></div>
<h3>Code:</h3>
<pre><code>LegalSystemEmbed.init({
container: '#my-viz',
view: 'table',
showFilters: true
});</code></pre>
</div>
<div class="example-container">
<h2>Example 3: Diagram View without Filters</h2>
<p>This example shows the diagram view without filter controls.</p>
<div id="embed-example-3" class="embed-container"></div>
<h3>Code:</h3>
<pre><code>LegalSystemEmbed.init({
container: '#my-viz',
view: 'diagram',
showFilters: false
});</code></pre>
</div>
<script src="embed.js"></script>
<script>
// Initialize Example 1: Basic embed
LegalSystemEmbed.init({
container: '#embed-example-1',
view: 'diagram',
showFilters: true
});
// Initialize Example 2: Table view
LegalSystemEmbed.init({
container: '#embed-example-2',
view: 'table',
showFilters: true
});
// Initialize Example 3: No filters
LegalSystemEmbed.init({
container: '#embed-example-3',
view: 'diagram',
showFilters: false
});
</script>
</body>
</html>