54 lines
2.3 KiB
HTML
54 lines
2.3 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; " xmlns="http://www.w3.org/1999/html">
|
|
<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 PointB_rx=0;
|
|
var PointB_ry=0;
|
|
var PointB_rt=0;
|
|
var PointB_Ref_NodeID=0;
|
|
|
|
function SketchLeftLearnLineAHSch1PostMessage(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;
|
|
}*/
|
|
PointB_rx=parseFloat($.cookie('AH_Global_rx')).toFixed(3);
|
|
PointB_ry=parseFloat($.cookie('AH_Global_ry')).toFixed(3);
|
|
PointB_rt=parseFloat($.cookie('AH_Global_rt')).toFixed(3);
|
|
var str="LearnLineAHSch1:"+PointB_rx+","+PointB_ry+","+PointB_rt+","+PointB_Ref_NodeID+"#";
|
|
//console.log(PointA_rx+" "+PointA_ry+" "+PointA_rt);
|
|
SketchLeftLearnLineAHSch1PostMessage(str);
|
|
}
|
|
</script>
|
|
<title>Title</title>
|
|
</head>
|
|
<body>
|
|
<input type=button class="btn" id="Button_GetPointB" value="Button_GetPointB" onclick=Button_GetPointB() style="background:lightgreen"></input>
|
|
</body>
|
|
<script src="../js/drag.js"></script>
|
|
</html> |