Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
optical-design-viewer
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
optical-design-viewer
Commits
7b531c9a
Commit
7b531c9a
authored
Jul 25, 2014
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
little cleaning up
parent
92f152c7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
8 deletions
+15
-8
index.css
index.css
+8
-3
index.html
index.html
+2
-3
lens_design.js
lens_design.js
+5
-2
No files found.
index.css
View file @
7b531c9a
...
@@ -3,7 +3,7 @@ body,canvas{
...
@@ -3,7 +3,7 @@ body,canvas{
}
}
button
{
button
{
font-family
:
"Times New Roman"
,
Times
,
serif
;
font-family
:
Arial
;
}
}
#cnv1
{
#cnv1
{
...
@@ -25,7 +25,7 @@ button {
...
@@ -25,7 +25,7 @@ button {
#elements_table
{
#elements_table
{
position
:
absolute
;
position
:
absolute
;
left
:
5px
;
left
:
5px
;
top
:
5
44
px
;
top
:
5
38
px
;
}
}
#controls_div
{
#controls_div
{
...
@@ -102,13 +102,18 @@ input{
...
@@ -102,13 +102,18 @@ input{
.remove_button
{
.remove_button
{
font-size
:
16px
;
font-size
:
16px
;
margin
:
0px
;
margin
:
0px
;
padding
:
1px
6px
1px
6px
;
padding
:
0px
0px
0px
0px
;
width
:
20px
;
height
:
20px
;
border-radius
:
10px
;
border-radius
:
10px
;
}
}
.plus_button
{
.plus_button
{
font-size
:
16px
;
font-size
:
16px
;
margin
:
0px
;
padding
:
2px
6px
0px
6px
;
padding
:
2px
6px
0px
6px
;
width
:
20px
;
height
:
20px
;
border-radius
:
10px
;
border-radius
:
10px
;
}
}
...
...
index.html
View file @
7b531c9a
<html>
<html>
<meta
content=
"text/html;charset=utf-8"
http-equiv=
"Content-Type"
>
<!--
<!--
FILE NAME : index.html
FILE NAME : index.html
DESCRIPTION: optical design
DESCRIPTION: optical design
...
@@ -32,10 +33,8 @@ Copyright (C) 2014 Elphel, Inc.
...
@@ -32,10 +33,8 @@ Copyright (C) 2014 Elphel, Inc.
<table
id=
"controls_table"
>
<table
id=
"controls_table"
>
<tr>
<tr>
<td><button
onclick=
"save_design()"
>
Save
</button></td>
<td><button
onclick=
"save_design()"
>
Save
</button></td>
<td><input
type=
"text"
id=
"file_to_save"
value=
"tmp_design.xml"
/></td>
<td><input
type=
"text"
id=
"file_to_save"
value=
"tmp_design.xml"
/></td>
</tr>
</tr>
<td></td>
<td></td>
</table>
</table>
</div>
</div>
<div
id=
"elements_table_header_div"
>
<div
id=
"elements_table_header_div"
>
...
...
lens_design.js
View file @
7b531c9a
...
@@ -29,6 +29,9 @@ var path = "";
...
@@ -29,6 +29,9 @@ var path = "";
$
(
function
(){
$
(
function
(){
yO
=
$
(
"#cnv1"
).
height
()
/
2
;
yO
=
$
(
"#cnv1"
).
height
()
/
2
;
console
.
log
(
"Drawing axii"
);
console
.
log
(
"Drawing axii"
);
$
(
"#file_to_save"
).
val
(
"tmp_design.xml"
);
draw_axii
();
draw_axii
();
draw_reference_scale
();
draw_reference_scale
();
draw_scale
();
draw_scale
();
...
@@ -64,7 +67,7 @@ function element_add_button(){
...
@@ -64,7 +67,7 @@ function element_add_button(){
0
,
//front a3
0
,
//front a3
0
,
//front a4
0
,
//front a4
8
,
//back height
8
,
//back height
-
1
000
,
//back curve radius
1000
000
,
//back curve radius
0
,
//back k
0
,
//back k
0
,
//back a1
0
,
//back a1
0
,
//back a2
0
,
//back a2
...
@@ -185,7 +188,7 @@ function table_update_all(){
...
@@ -185,7 +188,7 @@ function table_update_all(){
html
+=
"
\
t
\
t<td width=100 ></td>
\n
"
;
html
+=
"
\
t
\
t<td width=100 ></td>
\n
"
;
}
}
}
else
{
//aperture case
}
else
{
//aperture case
html
+=
"
\
t<td width=24 ></td>
\n
"
;
html
+=
"
\
t
\
t
<td width=24 ></td>
\n
"
;
html
+=
"
\
t
\
t<td><input type='text' id='front_height' value='"
+
e
[
i
].
front
.
h
+
"'
\
></td>
\n
"
;
html
+=
"
\
t
\
t<td><input type='text' id='front_height' value='"
+
e
[
i
].
front
.
h
+
"'
\
></td>
\n
"
;
html
+=
"
\
t
\
t<td width=100 ></td>
\n
"
;
html
+=
"
\
t
\
t<td width=100 ></td>
\n
"
;
html
+=
"
\
t
\
t<td width=100 ></td>
\n
"
;
html
+=
"
\
t
\
t<td width=100 ></td>
\n
"
;
...
...
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