text: function searchFunction() {
      var input, filter, table, tr, td, i, txtValue;
      input = document.getElementById("inputSearch");
      filter = input.value.toUpperCase();
      table = document.getElementById("principalTable");
      tr = table.getElementsByTagName("tr");
      for (i = 0; i < tr.length; i++) {
          td = tr[i].getElementsByTagName("td")[0];
          if (td) {
              txtValue = td.textContent || td.innerText;
              if (txtValue.toUpperCase().indexOf(filter) > -1) {
                  tr[i].style.display = "";
              } else {
                  tr[i].style.display = "none";
              }
          }
      }
  }
  
  $(document).ready(function() {
      $('[data-toggle="tooltip"]').tooltip();
  });
  
  
  function toggle(id) {
      var e = document.getElementById(id)
      if (e.style.display == 'none')
          e.style.display = 'table-row-group';
      else
          e.style.display = 'none';
  
  }
  
  //  Google Analytics
  (function(i, s, o, g, r, a, m) {
      i['GoogleAnalyticsObject'] = r;
      i[r] = i[r] || function() {
          (i[r].q = i[r].q || []).push(arguments)
      }, i[r].l = 1 * new Date();
      a = s.createElement(o),
          m = s.getElementsByTagName(o)[0];
      a.async = 1;
      a.src = g;
      m.parentNode.insertBefore(a, m)
  })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
  
  ga('create', 'UA-157301458-1', 'auto');
  ga('send', 'pageview', { 'page': location.pathname + location.search + location.hash });
  ga('set', 'anonymizeIp', true);
  // End Google Analytics
  
  google.charts.load("current", { packages: ["corechart"] });
  
  function drawChart() {
      var data = google.visualization.arrayToDataTable([
          ['Job Status', 'Total'],
          ['Success', 3796],
          ['Failure', 59]
      ]);
      var options = {
          title: 'Runs Overview for the last 5 runs',
          slices: [{ color: 'green' }, { color: 'red' }],
          pieHole: 0.4,
      };
      var chart = new google.visualization.PieChart(document.getElementById('donutchart_total_runs'));
      chart.draw(data, options);
  }
  google.charts.setOnLoadCallback(drawChart);
  
  function drawChart_last_run() {
      var data = google.visualization.arrayToDataTable([
          ['Job Status', 'Total'],
          ['Success', 765],
          ['Failure', 6]
      ]);
      var options = {
          title: 'Runs Overview for last night run',
          slices: [{ color: 'green' }, { color: 'red' }],
          pieHole: 0.4,
      };
      var chart = new google.visualization.PieChart(document.getElementById('donutchart_last_run'));
      chart.draw(data, options);
  }
  google.charts.setOnLoadCallback(drawChart_last_run);
  