]> arthur.barton.de Git - netdata.git/blobdiff - web/index.html
increased version in html for CDN refresh; updated API reference for badge.svg; insta...
[netdata.git] / web / index.html
index 803ba04703d29f6ba8c1f87b111d3f92e477f97e..cb92af5ab791d3d5148674dc8b6ebda74d9113bc 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html>
 <html lang="en">
 <head>
        <title>netdata dashboard</title>
        </script>
 
        <!-- load the dashboard manager - it will do the rest -->
-       <script type="text/javascript" src="dashboard.js?v37"></script>
+       <script type="text/javascript" src="dashboard.js?v39"></script>
 </head>
 
 <body data-spy="scroll" data-target="#sidebar">
@@ -2427,6 +2427,16 @@ function finalizePage() {
                offset: $(window).height() / 3 // controls the diff of the <hX> element to the top, to select it
        });
 
+       $('#sidebar').on('activate.bs.scrollspy', function (e)
+       {
+               var el = $(e.target);
+               if (el.find('ul').size() == 0)
+               {
+                       var href = el.find('a').attr('href');
+                       history.pushState(null, document.title, href);
+               };
+       });
+
        document.getElementById('footer').style.display = 'block';