47 lines
2.0 KiB
HTML
47 lines
2.0 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"/>
|
||
|
|
<script src="../jquery-2.1.0.min.js"></script>
|
||
|
|
<script src="../jquery.cookie.js"></script>
|
||
|
|
<script type="text/javascript">
|
||
|
|
var PointB_rx=0;
|
||
|
|
var PointB_ry=0;
|
||
|
|
var PointB_rt=0;
|
||
|
|
var PointB_Ref_NodeID=0;
|
||
|
|
|
||
|
|
function SketchLeftLearnWayPointAB4Sch1PostMessage(str){
|
||
|
|
parent.window.postMessage(
|
||
|
|
str,
|
||
|
|
"*" //or "www.parentpage.com"
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
function Button_GetPointB(){
|
||
|
|
var Learn_Ref_State=$.cookie('Learn_Ref_State');
|
||
|
|
if(Learn_Ref_State=="true"){
|
||
|
|
PointB_rx = parseFloat($.cookie('Learn_Ref_Node_x')).toFixed(3);
|
||
|
|
PointB_ry = parseFloat($.cookie('Learn_Ref_Node_y')).toFixed(3);
|
||
|
|
PointB_rt = parseFloat($.cookie('Learn_Ref_Node_t')).toFixed(3);
|
||
|
|
PointB_Ref_NodeID=$.cookie('Learn_Ref_NodeID');
|
||
|
|
}else {
|
||
|
|
PointB_rx = parseFloat($.cookie('Car_Global_rx')).toFixed(3);
|
||
|
|
PointB_ry = parseFloat($.cookie('Car_Global_ry')).toFixed(3);
|
||
|
|
PointB_rt = parseFloat($.cookie('Car_Global_Theta')).toFixed(3);
|
||
|
|
PointB_Ref_NodeID=0;
|
||
|
|
}
|
||
|
|
var str="LearnWayPointAB4Sch1:"+PointB_rx+","+PointB_ry+","+PointB_rt+","+PointB_Ref_NodeID+"#";
|
||
|
|
console.log(PointB_rx+" "+PointB_ry+" "+PointB_rt+" "+PointB_Ref_NodeID);
|
||
|
|
SketchLeftLearnWayPointAB4Sch1PostMessage(str);
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
<title>Title</title>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<input type=button class="btn" id="Button_GetPointB" value="Button_GetPointB" onclick=Button_GetPointB() style="width:80%;height:40px;background:lightgreen"></input>
|
||
|
|
</body>
|
||
|
|
<script src="../js/drag.js"></script>
|
||
|
|
</html>
|