remove db initialization -> this is done by the index.html
This commit is contained in:
parent
85ea7d9147
commit
abbe0a28bf
|
|
@ -89,6 +89,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<label class = "form-label" for="FoV_Width">
|
||||
|
|
@ -179,13 +180,6 @@
|
|||
var db;
|
||||
let openRequest = indexedDB.open("my_db");
|
||||
|
||||
openRequest.onupgradeneeded = function() {
|
||||
db = openRequest.result;
|
||||
db.createObjectStore("microscope_setup", {autoIncrement : true});
|
||||
db.createObjectStore("prep_protocol", {autoIncrement : true});
|
||||
|
||||
};
|
||||
|
||||
openRequest.onerror = function() {
|
||||
console.error("Error", openRequest.error);
|
||||
};
|
||||
|
|
@ -327,8 +321,8 @@ function draw(e) {
|
|||
console.log('Yay');
|
||||
line.push({x: pos.x, y: pos.y});
|
||||
let measured_length = get_length(line);
|
||||
fov_height.value = ((real_length.value/(measured_length * canvas_draw.width))* canvas_draw.width).toFixed(0);
|
||||
fov_width.value = ((real_length.value/(measured_length * canvas_draw.width))* canvas_draw.height).toFixed(0);
|
||||
fov_height.value = ((real_length.value/(measured_length * canvas_draw.width))* canvas_draw.height).toFixed(0);
|
||||
fov_width.value = ((real_length.value/(measured_length * canvas_draw.width))* canvas_draw.width).toFixed(0);
|
||||
|
||||
line = [];
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue