Commit 7b531c9a authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

little cleaning up

parent 92f152c7
......@@ -3,7 +3,7 @@ body,canvas{
}
button {
font-family: "Times New Roman", Times, serif;
font-family:Arial;
}
#cnv1{
......@@ -25,7 +25,7 @@ button {
#elements_table{
position: absolute;
left:5px;
top:544px;
top:538px;
}
#controls_div{
......@@ -102,13 +102,18 @@ input{
.remove_button{
font-size: 16px;
margin: 0px;
padding: 1px 6px 1px 6px;
padding: 0px 0px 0px 0px;
width:20px;
height:20px;
border-radius: 10px;
}
.plus_button{
font-size: 16px;
margin: 0px;
padding: 2px 6px 0px 6px;
width:20px;
height:20px;
border-radius: 10px;
}
......
<html>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<!--
FILE NAME : index.html
DESCRIPTION: optical design
......@@ -32,10 +33,8 @@ Copyright (C) 2014 Elphel, Inc.
<table id="controls_table">
<tr>
<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>
<td></td>
<td></td>
</table>
</div>
<div id="elements_table_header_div">
......
......@@ -29,6 +29,9 @@ var path = "";
$(function(){
yO = $("#cnv1").height()/2;
console.log("Drawing axii");
$("#file_to_save").val("tmp_design.xml");
draw_axii();
draw_reference_scale();
draw_scale();
......@@ -64,7 +67,7 @@ function element_add_button(){
0,//front a3
0,//front a4
8,//back height
-1000,//back curve radius
1000000,//back curve radius
0,//back k
0,//back a1
0,//back a2
......@@ -185,7 +188,7 @@ function table_update_all(){
html += "\t\t<td width=100 ></td>\n";
}
}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 width=100 ></td>\n";
html += "\t\t<td width=100 ></td>\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment