mirror of
https://github.com/qurator-spk/neat.git
synced 2025-06-12 21:29:54 +02:00
fix #35
This commit is contained in:
parent
16309d8b78
commit
718cfbafee
1 changed files with 5 additions and 5 deletions
10
neath.js
10
neath.js
|
@ -41,7 +41,7 @@ function loadFile(evt, onComplete) {
|
||||||
escapeChar: String.fromCharCode(0),
|
escapeChar: String.fromCharCode(0),
|
||||||
comments: "#",
|
comments: "#",
|
||||||
skipEmptyLines: true,
|
skipEmptyLines: true,
|
||||||
dynamicTyping: true,
|
dynamicTyping: false,
|
||||||
complete: function(results) { onComplete(results, file, urls); }
|
complete: function(results) { onComplete(results, file, urls); }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -130,10 +130,10 @@ function setupInterface(data, file, urls) {
|
||||||
if (img_url == "http://empty")
|
if (img_url == "http://empty")
|
||||||
return
|
return
|
||||||
|
|
||||||
let left = data.data[nRow]['left'];
|
let left = parseInt(data.data[nRow]['left']);
|
||||||
let right = data.data[nRow]['right'];
|
let right = parseInt(data.data[nRow]['right']);
|
||||||
let top = data.data[nRow]['top'];
|
let top = parseInt(data.data[nRow]['top']);
|
||||||
let bottom = data.data[nRow]['bottom'];
|
let bottom = parseInt(data.data[nRow]['bottom']);
|
||||||
|
|
||||||
top = Math.max(0, top - 25);
|
top = Math.max(0, top - 25);
|
||||||
bottom = bottom + 25;
|
bottom = bottom + 25;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue