static
This commit is contained in:
56
static/Magic4/FleetInfo/HMI_FleetInfo_Top.html
Normal file
56
static/Magic4/FleetInfo/HMI_FleetInfo_Top.html
Normal file
@@ -0,0 +1,56 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="stylesheet" href="../css/bootstrap.min.css"/>
|
||||
<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 FleetInfoRightPostMessage(str){
|
||||
parent.window.document.getElementById('rightIframe').contentWindow.postMessage(
|
||||
{
|
||||
event_id: 'fleetinfo_top',
|
||||
data: {
|
||||
v1: str
|
||||
}
|
||||
},
|
||||
"*" //or "www.parentpage.com"
|
||||
);
|
||||
}
|
||||
|
||||
function FleetInfoLeftPostMessage(str){
|
||||
parent.window.document.getElementById('leftIframe').contentWindow.postMessage(
|
||||
{
|
||||
event_id: 'fleetinfo_top',
|
||||
data: {
|
||||
v1: str
|
||||
}
|
||||
},
|
||||
"*" //or "www.parentpage.com"
|
||||
);
|
||||
}
|
||||
function Button_Main(){
|
||||
FleetInfoLeftPostMessage("Main");
|
||||
FleetInfoRightPostMessage("Main");
|
||||
}
|
||||
|
||||
function Button_HttpFleetSafetyTable_JSON(){
|
||||
FleetInfoLeftPostMessage("HttpFleetSafetyTable_JSON");
|
||||
FleetInfoRightPostMessage("HttpFleetSafetyTable_JSON");
|
||||
}
|
||||
|
||||
function Button_FleetShareMsg(){
|
||||
FleetInfoLeftPostMessage("FleetShareMsg");
|
||||
FleetInfoRightPostMessage("FleetShareMsg");
|
||||
}
|
||||
|
||||
</script>
|
||||
<title>Title</title>
|
||||
</head>
|
||||
<body>
|
||||
<!-- HMI_FleetInfo_Top -->
|
||||
<input type=button class="btn" id="Button_Main" value="Main" onclick=Button_Main() style="background:yellow"></input>
|
||||
<input type=button class="btn" id="Button_HttpFleetSafetyTable_JSON" value="HttpFleetSafetyTable_JSON" onclick=Button_HttpFleetSafetyTable_JSON() style="background:yellow"></input>
|
||||
<input type=button class="btn" id="Button_FleetShareMsg" value="FleetShareMsg" onclick=Button_FleetShareMsg() style="background:yellow"></input>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user