Files
QVolution2019.2/AoM_Service/AoM_Configs/webapp/templates/header.html
2021-09-12 22:16:11 -06:00

67 lines
2.0 KiB
HTML
Executable File

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-COMPATIBLE" content="IE=edge">
<meta name="viewport" content="width=device-width, intial-scale=1">
<title>Alerting On Metrics Yaml Builder</title>
<link rel=stylesheet type=text/css href="{{ url_for('static', filename='bootstrap.min.css') }}">
<link rel="stylesheet" type=text/css href="{{ url_for('static', filename='style.css') }}">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="{{ url_for('static', filename='bootstrap.min.js') }}"></script>
<script type="text/javascript">
function dynInput(cbox) {
console.log(cbox)
if (cbox.checked) {
var input = document.createElement("input");
input.type = "text";
input.id = cbox.name + "_list";
input.name = cbox.name + "_list";
document.getElementById("insertinputs_" + cbox.name).appendChild(input);
} else {
document.getElementById(cbox.name + "_list").remove();
}
}
function dynEnable(cbox) {
console.log(cbox);
var theId = "#" + cbox.name + "_list";
console.log(theId);
if (cbox.checked){
$(theId)[0].disabled = false;
} else {
$(theId)[0].disabled = true;
}
}
function dynThreshold(cbox) {
var theId = "#" + cbox.name + "_threshold";
if (cbox.checked){
$(theId)[0].disabled = false;
} else {
$(theId)[0].disabled = true;
}
}
function forceLower(strInput){
strInput.value=strInput.value.toLowerCase().replace(" ","_");
}
function forceComma(strInput){
strInput.value=strInput.value.replace(" ",",");
}
function forcePositive(strInput){
if (parseInt(strInput.value) <= 1) {
strInput.value = 2
}
}
</script>
</head>
<body>
<div class=page>
{% block body %}{% endblock %}