mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-11 14:53:49 +00:00
d502426d7c
This is a follow-up for b104f67beb
41 lines
1.3 KiB
Text
41 lines
1.3 KiB
Text
{% import (
|
|
"github.com/VictoriaMetrics/VictoriaMetrics/lib/httpserver"
|
|
) %}
|
|
|
|
{% func Footer() %}
|
|
{% code pathPrefix := httpserver.GetPathPrefix() %}
|
|
</main>
|
|
<script src="{%s pathPrefix %}/static/js/jquery-3.6.0.min.js" type="text/javascript"></script>
|
|
<script src="{%s pathPrefix %}/static/js/bootstrap.bundle.min.js" type="text/javascript"></script>
|
|
<script type="text/javascript">
|
|
function expandAll() {
|
|
$('.collapse').addClass('show');
|
|
}
|
|
function collapseAll() {
|
|
$('.collapse').removeClass('show');
|
|
}
|
|
|
|
$(document).ready(function() {
|
|
// prevent collapse logic on link click
|
|
$(".group-heading a").click(function(e) {
|
|
e.stopPropagation();
|
|
});
|
|
|
|
$(".group-heading").click(function(e) {
|
|
let target = $(this).attr('data-bs-target');
|
|
let el = $("#"+target);
|
|
new bootstrap.Collapse(el, {
|
|
toggle: true
|
|
});
|
|
});
|
|
|
|
var hash = window.location.hash.substr(1);
|
|
let group = $("#"+hash);
|
|
if (group.length > 0) {
|
|
group.click();
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|
|
{% endfunc %}
|