52 lines
2.1 KiB
HTML
52 lines
2.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" id="container" onmousedown="startDrag(event)" onmouseup="stopDrag(event)" onmousemove="dragging(event)" style="overflow-x: hidden;
|
|
overflow-y: hidden; ">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<link rel="stylesheet" href="../css/bootstrap.min.css"/>
|
|
<link rel="stylesheet" href="../css/btn.css"/>
|
|
<link rel="stylesheet" href="../css/sketchBtn.css"/>
|
|
<script src="../jquery-2.1.0.min.js"></script>
|
|
<script src="../jquery.cookie.js"></script>
|
|
<script type="text/javascript" type="text/javascript">
|
|
var Point_rx=0;
|
|
var Point_ry=0;
|
|
var Point_rt=0;
|
|
var Point_Ref_NodeID=0;
|
|
|
|
function SketchLeftSetStationSch0PostMessage(str){
|
|
parent.window.postMessage(
|
|
str,
|
|
"*" //or "www.parentpage.com"
|
|
);
|
|
}
|
|
|
|
function Button_GetPoint(){
|
|
var Learn_Ref_State=$.cookie('Learn_Ref_State');
|
|
if(Learn_Ref_State=="true"){
|
|
Point_rx = parseFloat($.cookie('Learn_Ref_Node_x')).toFixed(3);
|
|
Point_ry = parseFloat($.cookie('Learn_Ref_Node_y')).toFixed(3);
|
|
Point_rt = parseFloat($.cookie('Learn_Ref_Node_t')).toFixed(3);
|
|
Point_Ref_NodeID=$.cookie('Learn_Ref_NodeID');
|
|
}
|
|
else{
|
|
Point_rx=parseFloat($.cookie('Car_Global_rx')).toFixed(3);
|
|
Point_ry=parseFloat($.cookie('Car_Global_ry')).toFixed(3);
|
|
Point_rt=parseFloat($.cookie('Car_Global_Theta')).toFixed(3);
|
|
Point_Ref_NodeID=0;
|
|
}
|
|
var str="SetStationSch0:"+Point_rx+","+Point_ry+","+Point_rt+","+Point_Ref_NodeID+"#";
|
|
//console.log(PointA_rx+" "+PointA_ry+" "+PointA_rt);
|
|
SketchLeftSetStationSch0PostMessage(str);
|
|
}
|
|
</script>
|
|
<title>Title</title>
|
|
</head>
|
|
<body>
|
|
SetStation_Sch0
|
|
<tr>
|
|
<input type=button class="btn" id="Button_GetPoint" value="Button_GetPoint" onclick=Button_GetPoint() style="background:lightgreen"></input>
|
|
</tr>
|
|
</body>
|
|
<script src="../js/drag.js"></script>
|
|
</html> |