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>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<label class = "form-label" for="FoV_Width">
|
<label class = "form-label" for="FoV_Width">
|
||||||
|
|
@ -179,13 +180,6 @@
|
||||||
var db;
|
var db;
|
||||||
let openRequest = indexedDB.open("my_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() {
|
openRequest.onerror = function() {
|
||||||
console.error("Error", openRequest.error);
|
console.error("Error", openRequest.error);
|
||||||
};
|
};
|
||||||
|
|
@ -327,8 +321,8 @@ function draw(e) {
|
||||||
console.log('Yay');
|
console.log('Yay');
|
||||||
line.push({x: pos.x, y: pos.y});
|
line.push({x: pos.x, y: pos.y});
|
||||||
let measured_length = get_length(line);
|
let measured_length = get_length(line);
|
||||||
fov_height.value = ((real_length.value/(measured_length * canvas_draw.width))* canvas_draw.width).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.height).toFixed(0);
|
fov_width.value = ((real_length.value/(measured_length * canvas_draw.width))* canvas_draw.width).toFixed(0);
|
||||||
|
|
||||||
line = [];
|
line = [];
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue