Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
timeAgo();
});
// toggle search panel behavior
docReady(() => {
if (document.querySelector(".-js-add-filter")) searchFilterToggle();
});
// Kick off the client side HTML includes.
docReady(HTMLInclude);
// Trigger our analytics code.
docReady(Analytics);
// Handle the JS based automatic form submission.
docReady(formUtils.submitTriggers);
docReady(formUtils.registerFormValidation);
docReady(Statuspage);
// Copy handler for copy tooltips, e.g.
// - the pip command on package detail page
// - the copy hash on package detail page
// - the copy hash on release maintainers page
docReady(() => {
let setCopiedTooltip = (e) => {
e.trigger.setAttribute("data-tooltip-label", "Copied!");
e.trigger.setAttribute("role", "alert");
e.clearSelection();
};
new Clipboard(".copy-tooltip").on("success", setCopiedTooltip);