2021-03-25 20:34:51 +01:00
|
|
|
import $ from "jquery";
|
|
|
|
|
2021-04-25 18:26:03 +02:00
|
|
|
// this will hide the alerts that you click "x" on.
|
|
|
|
$("body").on("click", ".alert-box > div .exit", function () {
|
|
|
|
const $alert = $(this).closest(".alert-box > div");
|
|
|
|
$alert.addClass("fade-out");
|
|
|
|
setTimeout(() => {
|
|
|
|
$alert.removeClass("fade-out show");
|
|
|
|
}, 300);
|
|
|
|
});
|
2021-03-25 20:34:51 +01:00
|
|
|
|
2021-04-25 18:26:03 +02:00
|
|
|
$(".alert-box").on("click", ".stackframe", function () {
|
|
|
|
$(this).siblings(".code-context").toggle("fast");
|
|
|
|
});
|