static
This commit is contained in:
49
static/Magic4/Fleet/HMI_Fleet_Top.html
Normal file
49
static/Magic4/Fleet/HMI_Fleet_Top.html
Normal file
@@ -0,0 +1,49 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<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 FleetRightPostMessage(str){
|
||||
parent.window.document.getElementById('rightIframe').contentWindow.postMessage(
|
||||
{
|
||||
event_id: 'fleet_top',
|
||||
data: {
|
||||
v1: str
|
||||
}
|
||||
},
|
||||
"*" //or "www.parentpage.com"
|
||||
);
|
||||
}
|
||||
|
||||
function FleetLeftPostMessage(str){
|
||||
parent.window.document.getElementById('leftIframe').contentWindow.postMessage(
|
||||
{
|
||||
event_id: 'fleet_top',
|
||||
data: {
|
||||
v1: str
|
||||
}
|
||||
},
|
||||
"*" //or "www.parentpage.com"
|
||||
);
|
||||
}
|
||||
function Button_GetMain(){
|
||||
FleetLeftPostMessage("GetMain");
|
||||
FleetRightPostMessage("GetMain");
|
||||
}
|
||||
|
||||
function Button_GetFleetInfo(){
|
||||
FleetLeftPostMessage("GetFleetInfo");
|
||||
FleetRightPostMessage("GetFleetInfo");
|
||||
}
|
||||
|
||||
</script>
|
||||
<title>Title</title>
|
||||
</head>
|
||||
<body>
|
||||
HMI_Fleet_Top
|
||||
<input type=button id="Button_GetMain" value="GetMain" onclick=Button_GetMain() style="width:6%;height:50px;background:yellow"></input>
|
||||
<input type=button id="Button_GetFleetInfo" value="GetFleetInfo" onclick=Button_GetFleetInfo() style="width:6%;height:50px;background:yellow"></input>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user