mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2025-09-18 01:22:08 +00:00
latest working copy, file backup, tbl entry done
This commit is contained in:
30
res/app.js
Normal file
30
res/app.js
Normal file
@@ -0,0 +1,30 @@
|
||||
function val() {
|
||||
w = document.getElementById("w-select");
|
||||
w.value = '';
|
||||
|
||||
a = document.getElementById("a-select");
|
||||
a.required = "required";
|
||||
}
|
||||
function val2() {
|
||||
a = document.getElementById("a-select");
|
||||
a.value = '';
|
||||
|
||||
w = document.getElementById("w-select");
|
||||
w.required = "required";
|
||||
}
|
||||
|
||||
$(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();
|
||||
}
|
||||
});
|
||||
});
|
37
res/style.css
Normal file
37
res/style.css
Normal file
@@ -0,0 +1,37 @@
|
||||
input {
|
||||
width: 108px;
|
||||
padding: 5px;
|
||||
margin: 5xp;
|
||||
text-align: center;
|
||||
border: 0px;
|
||||
background: #eef;
|
||||
}
|
||||
|
||||
.form-text,
|
||||
.help {
|
||||
font-size: 11px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.form-text {
|
||||
background: white;
|
||||
padding: 5px;
|
||||
border-radius: 4px;
|
||||
|
||||
}
|
||||
|
||||
select,
|
||||
input,
|
||||
option {
|
||||
border: #ccc;
|
||||
}
|
||||
|
||||
.row {
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
.col-2,
|
||||
.col-3,
|
||||
.col-4 {
|
||||
padding: 5px;
|
||||
}
|
Reference in New Issue
Block a user