You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.3 KiB
36 lines
1.3 KiB
9 years ago
|
(function() {
|
||
|
$('body').on('mouseenter', '[data-toggle="tooltip"]', function( event ) {
|
||
|
$(this).tooltip('show');
|
||
|
}).on('mouseleave', '[data-toggle="tooltip"]', function( event ) {
|
||
|
$(this).tooltip('hide');
|
||
|
});
|
||
|
|
||
|
$.fn.sparkline.defaults.bar.height = 63;
|
||
|
$.fn.sparkline.defaults.bar.barWidth = 6;
|
||
|
$.fn.sparkline.defaults.bar.barSpacing = 1;
|
||
|
$.fn.sparkline.defaults.bar.tooltipClassname = 'jqstooltip';
|
||
|
$.fn.sparkline.defaults.bar.tooltipOffsetX = 0;
|
||
|
$.fn.sparkline.defaults.bar.tooltipFormat = $.spformat('<div class="tooltip-arrow"></div><div class="tooltip-inner">{{prefix}}{{value}} {{suffix}}</div>');
|
||
|
$.fn.sparkline.defaults.bar.colorMap = $.range_map({
|
||
|
'0:6': '#10a0de',
|
||
|
'6:12': '#7bcc3a',
|
||
|
'12:20': '#FFD162',
|
||
|
'20:30': '#ff8a00',
|
||
|
'30:': '#F74B4B'
|
||
|
});
|
||
|
|
||
|
moment.relativeTimeThreshold('s', 60);
|
||
|
moment.relativeTimeThreshold('m', 60);
|
||
|
moment.relativeTimeThreshold('h', 24);
|
||
|
moment.relativeTimeThreshold('d', 28);
|
||
|
moment.relativeTimeThreshold('M', 12);
|
||
|
|
||
|
})();
|
||
|
|
||
|
(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-63657296-1', 'auto');
|
||
|
ga('send', 'pageview');
|