mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-21 17:07:24 +08:00
16 lines
No EOL
600 B
JavaScript
16 lines
No EOL
600 B
JavaScript
$(function () {
|
|
var clipboardRules = new ClipboardJS('.clipboard-single', {
|
|
text: function (trigger) {
|
|
const id = trigger.getAttribute('data-clipboard-target-id');
|
|
const html = $("#" + id + " .highlight");
|
|
return html.text();
|
|
},
|
|
});
|
|
var clipboardCategories = new ClipboardJS('.clipboard-multiple', {
|
|
text: function (trigger) {
|
|
const id = trigger.getAttribute('data-clipboard-target-id');
|
|
const html = $("[id^=" + id + "] .highlight");
|
|
return html.append("\n\n").text();
|
|
},
|
|
});
|
|
}); |