Files
apt-nl-map/static/Magic4/Mapping/HMI_Mapping_Top.html
2024-12-04 10:21:04 +08:00

84 lines
3.3 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="../css/bootstrap.min.css"/>
<style>
#topBody{
line-height: 80px;
padding: 0px 10px;
}
.btn{
margin: 0px 5px;
color: white;
align-content: center;
}
</style>
<script type="text/javascript" src="../jquery-2.1.0.min.js"></script>
<script type="text/javascript" src="../jquery.cookie.js"></script>
<script type="text/javascript">
function MappingRightPostMessage(str){
parent.window.document.getElementById('rightIframe').contentWindow.postMessage(
str,
"*" //or "www.parentpage.com"
);
}
function MappingLeftPostMessage(str){
parent.window.document.getElementById('leftIframe').contentWindow.postMessage(
str
,
"*" //or "www.parentpage.com"
);
}
function Button_BoschRecording(){
MappingLeftPostMessage("BoschRecording");
MappingRightPostMessage("BoschRecording");
}
function Button_BoschMapping(){
MappingLeftPostMessage("BoschMapping");
MappingRightPostMessage("BoschMapping");
}
function Button_BoschTotalInit(){
MappingLeftPostMessage("BoschTotalInit");
MappingRightPostMessage("BoschTotalInit");
}
function Button_Main(){
MappingLeftPostMessage("Main");
MappingRightPostMessage("Main");
}
function Button_BoschRecordingDelete(){
MappingLeftPostMessage("BoschRecordingDelete");
MappingRightPostMessage("BoschRecordingDelete");
}
function Button_BoschMapDelete(){
MappingLeftPostMessage("BoschMapDelete");
MappingRightPostMessage("BoschMapDelete");
}
function Button_BoschServerMapDelete(){
MappingLeftPostMessage("BoschServerMapDelete");
MappingRightPostMessage("BoschServerMapDelete");
}
</script>
<title>Title</title>
</head>
<body>
<div id="topBody">
<input type=button class="btn" id="Button_Main" value="Main" onclick=Button_Main() style="height:40px;background:#008000"></input>
<input type=button class="btn" id="Button_BoschTotalInit" value="BoschTotalInit" onclick=Button_BoschTotalInit() style="height:40px;background:#008000"></input>
<input type=button class="btn" id="Button_BoschRecording" value="BoschRecording" onclick=Button_BoschRecording() style="height:40px;background:#008000"></input>
<input type=button class="btn" id="Button_BoschMapping" value="BoschMapping" onclick=Button_BoschMapping() style="height:40px;background:#008000"></input>
<input type=button class="btn" id="Button_BoschRecordingDelete" value="BoschRecordingDelete" onclick=Button_BoschRecordingDelete() style="height:40px;background:#ff0000"></input>
<input type=button class="btn" id="Button_BoschMapDelete" value="BoschMapDelete" onclick=Button_BoschMapDelete() style="height:40px;background:#ff0000"></input>
<input type=button class="btn" id="Button_BoschServerMapDelete" value="BoschServerMapDelete" onclick=Button_BoschServerMapDelete() style="height:40px;background:#ff0000"></input>
</div>
</body>
</html>