blob: 1eeaa1dc86471f4a863f23751958b55e3dc1d456 [file] [log] [blame]
<!--
Copyright 2015 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<script src="/js/stats_viewer.js"></script>
<script src="/js/third_party/dygraph/dygraph-combined.js"></script>
<style>
:root {
font-family: sans-serif;
overflow-y: scroll;
}
.index-link {
font-size: 80%%;
}
.graph {
position: relative;
width: 100%%;
height: 200px;
margin-bottom: 100px;
}
.chart {
position: absolute;
top: 0px;
bottom: 0px;
left: 0px;
right: 200px;
}
.legend {
position: absolute;
right: 0px;
width: 200px;
}
</style>
<h1>%(project)s %(period)s CQ Stats</h1>
<div id="indexDiv"></div>
<div id="container">Loading stats...</div>
<script>
statsViewerModule.init("%(project)s", %(interval_minutes)s,
%(window_length)s, %(data_points)s);
window.addEventListener('load', statsViewerModule.main);
</script>
<script>
// Add Google Analytics integration
(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','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-55762617-13', {'siteSpeedSampleRate': 100});
ga('send', 'pageview');
</script>