Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
eyesis4pi-393-gui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
eyesis4pi-393-gui
Commits
8a9aaf00
Commit
8a9aaf00
authored
Apr 13, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor
parent
3216e7e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
eyesis4pi.js
js/eyesis4pi.js
+3
-0
jquery-jp4.js
js/jquery-jp4.js
+11
-3
No files found.
js/eyesis4pi.js
View file @
8a9aaf00
...
...
@@ -591,6 +591,9 @@ function append_hidden_div(index){
el
=
$
(
"<div>"
,{
id
:
"div_"
+
index
}).
css
({
/*position:"absolute",
top: "1000px",
left: index*200+"px",*/
display
:
"none"
});
...
...
js/jquery-jp4.js
View file @
8a9aaf00
...
...
@@ -98,16 +98,19 @@
TX
=
Date
.
now
();
T0
=
Date
.
now
();
http
.
responseType
=
"blob"
;
http
.
onload
=
function
(
e
)
{
console
.
log
(
"#"
+
elem
.
attr
(
"id"
)
+
", file load time: "
+
(
Date
.
now
()
-
TX
)
/
1000
+
" s"
);
TX
=
Date
.
now
();
if
(
this
.
status
===
200
)
{
var
heavyImage
=
new
Image
();
heavyImage
.
onload
=
function
(){
EXIF
.
getData
(
this
,
function
()
{
//update canvas size
canvas
.
attr
(
"width"
,
this
.
width
);
...
...
@@ -118,10 +121,12 @@
canvas
.
drawImage
({
x
:
0
,
y
:
0
,
source
:
this
,
//source: heavyImage,
load
:
redraw
,
fromCenter
:
false
});
});
};
heavyImage
.
src
=
URL
.
createObjectURL
(
http
.
response
);
}
...
...
@@ -133,6 +138,9 @@
function
redraw
(){
//for debugging
//IMAGE_FORMAT="JPEG";
$
(
this
).
draw
({
fn
:
function
(
ctx
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment