d2tools/res/app.js

47 lines
920 B
JavaScript
Raw Normal View History

2021-03-23 08:13:54 +00:00
$(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();
}
});
$('.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');
2021-03-24 15:37:21 +00:00
y.value = x;
});
2021-03-23 08:13:54 +00:00
2021-03-24 15:37:21 +00:00
$(".btnconfig").click(function(){
$(".ctrl-config").hide();
$("#loading").show();
2021-03-23 08:13:54 +00:00
2021-03-24 15:37:21 +00:00
});
});