|
| 1 | +$(document).ready(function () { |
| 2 | + if (window.chartConf) { |
| 3 | + window.chartConf.credits = { |
| 4 | + enabled: false |
| 5 | + }; |
| 6 | + window.chartConf.exporting = { |
| 7 | + fallbackToExportServer: false |
| 8 | + }; |
| 9 | + |
| 10 | + if (!window.chartConf.legend) |
| 11 | + window.chartConf.legend = { |
| 12 | + enabled: false |
| 13 | + }; |
| 14 | + |
| 15 | + var chart = Highcharts.chart('chart', window.chartConf); |
| 16 | + } |
| 17 | + |
| 18 | + if (window.pieChartConf) { |
| 19 | + window.pieChartConf.credits = { |
| 20 | + enabled: false |
| 21 | + }; |
| 22 | + var pieChart = Highcharts.chart('pie-chart', window.pieChartConf); |
| 23 | + } |
| 24 | + /* |
| 25 | + $(".popover-details").each(function () { |
| 26 | + var stdNameRegExp = new RegExp("^(rfc|bcp|fyi|std)[0-9]+$", 'i'); |
| 27 | + var draftRegExp = new RegExp("^draft-", 'i'); |
| 28 | +
|
| 29 | + var html = []; |
| 30 | + $.each(($(this).data("elements") || "").split("|"), function (i, element) { |
| 31 | + if (!$.trim(element)) |
| 32 | + return; |
| 33 | +
|
| 34 | + if (draftRegExp.test(element) || stdNameRegExp.test(element)) { |
| 35 | + var displayName = element; |
| 36 | +
|
| 37 | + if (stdNameRegExp.test(element)) |
| 38 | + displayName = element.slice(0, 3).toUpperCase() + " " + element.slice(3); |
| 39 | +
|
| 40 | + html.push('<div class="element"><a href="/doc/' + element + '/">' + displayName + '</a></div>'); |
| 41 | + } |
| 42 | + else { |
| 43 | + html.push('<div class="element">' + element + '</div>'); |
| 44 | + } |
| 45 | + }); |
| 46 | +
|
| 47 | + if ($(this).data("sliced")) |
| 48 | + html.push('<div class="text-center">…</div>'); |
| 49 | +
|
| 50 | + $(this).popover({ |
| 51 | + trigger: "focus", |
| 52 | + template: '<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>', |
| 53 | + content: html.join(""), |
| 54 | + placement: "top", |
| 55 | + html: true |
| 56 | + }).on("click", function (e) { |
| 57 | + e.preventDefault(); |
| 58 | + }); |
| 59 | + });*/ |
| 60 | +}); |
0 commit comments