d2tools/res/app.js
2021-03-27 02:53:26 -06:00

66 lines
1.3 KiB
JavaScript

$(document).ready(function () {
$('.form-text').hide();
$('.help').click(function () {
// $('.form-text').slideToggle();
});
$('.op1').val(this.checked);
$('.op1').change(function () {
if (this.checked) {
$('option[disabled="disabled"]').hide();
} else {
$('option[disabled="disabled"]').show();
}
});
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
$('.w-select').change(function () {
$('.a-select').each(function (i, v) {
v.value = '';
v.required = '';
});
x = $(this).find(':selected').text();
y = document.getElementById('item');
y.value = x;
});
$('.a-select').change(function () {
$('.w-select').each(function (i, v) {
v.value = '';
v.required = '';
});
x = $(this).find(':selected').text();
y = document.getElementById('item');
y.value = x;
});
$(".btnconfig").click(function () {
$(".ctrl-config").hide();
$("#loading").show();
});
$('.help').click(function () {
$(".fa-help").remove();
$(this).next().fadeToggle("slow").focus().css({
"position": "absolute",
"z-index": "1000",
"background": "#eee",
"color": "black !important",
"border": "1px solid #aaa",
"width": "300px",
})
});
$('.form-text').click(function () {
$(this).fadeOut("slow");
});
});