start writing build guide
This commit is contained in:
parent
5bda61bae9
commit
e914d68c2d
4 changed files with 384 additions and 1 deletions
32
js/main.js
32
js/main.js
|
|
@ -28,3 +28,35 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||
});
|
||||
}
|
||||
});
|
||||
|
||||
function flex_pcb_calc() {
|
||||
const phone_length = parseFloat(document.getElementById("phone_length").value);
|
||||
const phone_width = parseFloat(document.getElementById("phone_width").value);
|
||||
document.getElementById("flex_pcb_length").value = phone_length + phone_width;
|
||||
}
|
||||
|
||||
/*
|
||||
document.getElementById("flex_pcb_calc").onsubmit = function(e) {
|
||||
const phone_length = document.getElementById("phone_length").value
|
||||
const phone_width = document.getElementById("phone_width").value;
|
||||
|
||||
document.getElementById("flex_pcb_length").value = phone_length + phone_width;
|
||||
e.preventDefault();
|
||||
};
|
||||
*/
|
||||
|
||||
/*
|
||||
const flex_pcb_calc = document.getElementById("flex_pcb_calc");
|
||||
if (flex_pcb_calc.addEventListener) {
|
||||
flex_pcb_calc.addEventListener("submit", function(event) {
|
||||
event.preventDefault();
|
||||
window.history.back();
|
||||
}, true);
|
||||
} else {
|
||||
flex_pcb_calc.attachEvent('onsubmit', function(event){
|
||||
event.preventDefault();
|
||||
window.history.back();
|
||||
});
|
||||
}
|
||||
*/
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue