ONOS-1904 : Initial patchset for defining the Sprite Service.
- reverting topo-theme.css so that the original sprite layer still works (if anyone out there is using it).
- adding hard-coded sprite and layout for testing purposes (they'll be removed later).
Change-Id: I5f78c5cbc66cfe9ad0ac0292d5ffb1e19b611fa5
diff --git a/web/gui/src/main/webapp/index.html b/web/gui/src/main/webapp/index.html
index 40edebe..9f85a21 100644
--- a/web/gui/src/main/webapp/index.html
+++ b/web/gui/src/main/webapp/index.html
@@ -69,6 +69,8 @@
<script src="app/fw/svg/map.js"></script>
<script src="app/fw/svg/zoom.js"></script>
<script src="app/fw/svg/svgUtil.js"></script>
+ <script src="app/fw/svg/sprite.js"></script>
+ <script src="app/fw/svg/spriteData.js"></script>
<script src="app/fw/remote/remote.js"></script>
<script src="app/fw/remote/urlfn.js"></script>
@@ -104,6 +106,7 @@
<link rel="stylesheet" href="app/fw/mast/mast-theme.css">
<link rel="stylesheet" href="app/fw/svg/glyph.css">
<link rel="stylesheet" href="app/fw/svg/glyph-theme.css">
+ <link rel="stylesheet" href="app/fw/svg/sprite-theme.css">
<link rel="stylesheet" href="app/fw/svg/icon.css">
<link rel="stylesheet" href="app/fw/svg/icon-theme.css">
<link rel="stylesheet" href="app/fw/layer/panel.css">
@@ -264,7 +267,7 @@
<script>
<!-- Inject user agent info into html element to allow CSS sensitivity. -->
(function () {
- var t = !!('ontouchstart' in window) || !!('onmsgesturechange' in window);
+ var t = ('ontouchstart' in window) || ('onmsgesturechange' in window);
d3.select(document.documentElement)
.attr('data-useragent', navigator.userAgent)
.attr('data-platform', navigator.platform)