summaryrefslogtreecommitdiff
path: root/www/lib/vis/examples/network/nodeStyles/HTMLInNodes.html
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2016-11-07 15:43:13 -0500
committerPliable Pixels <pliablepixels@gmail.com>2016-11-07 15:43:13 -0500
commit77faead4e948f901fa6ca9951f085bbe045bae68 (patch)
tree3f059e5e76ec5c037c7b2c76e53895a8a337fa3e /www/lib/vis/examples/network/nodeStyles/HTMLInNodes.html
parent5b80d3916cd91d630a0142f76a87b4863b714203 (diff)
Updated vis library to 4.17 and also linked to only graph2d-timeline CSS and JS
Diffstat (limited to 'www/lib/vis/examples/network/nodeStyles/HTMLInNodes.html')
-rw-r--r--www/lib/vis/examples/network/nodeStyles/HTMLInNodes.html9
1 files changed, 3 insertions, 6 deletions
diff --git a/www/lib/vis/examples/network/nodeStyles/HTMLInNodes.html b/www/lib/vis/examples/network/nodeStyles/HTMLInNodes.html
index 4eca8191..e80590b7 100644
--- a/www/lib/vis/examples/network/nodeStyles/HTMLInNodes.html
+++ b/www/lib/vis/examples/network/nodeStyles/HTMLInNodes.html
@@ -17,7 +17,7 @@
</style>
<script type="text/javascript" src="../../../dist/vis.js"></script>
- <link href="../../../dist/vis.css" rel="stylesheet" type="text/css" />
+ <link href="../../../dist/vis-network.min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
var nodes = null;
@@ -29,7 +29,7 @@
var LENGTH_SUB = 50;
- var data = '<svg xmlns="http://www.w3.org/2000/svg" width="390" height="65">' +
+ var svg = '<svg xmlns="http://www.w3.org/2000/svg" width="390" height="65">' +
'<rect x="0" y="0" width="100%" height="100%" fill="#7890A7" stroke-width="20" stroke="#ffffff" ></rect>' +
'<foreignObject x="15" y="10" width="100%" height="100%">' +
'<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:40px">' +
@@ -40,11 +40,8 @@
'</foreignObject>' +
'</svg>';
- var DOMURL = window.URL || window.webkitURL || window;
- var img = new Image();
- var svg = new Blob([data], {type: 'image/svg+xml;charset=utf-8'});
- var url = DOMURL.createObjectURL(svg);
+ var url = "data:image/svg+xml;charset=utf-8,"+ encodeURIComponent(svg);
// Called when the Visualization API is loaded.
function draw() {