46 lines
1.2 KiB
HTML
46 lines
1.2 KiB
HTML
|
|
<html>
|
||
|
|
<head>
|
||
|
|
<link rel="stylesheet" type="text/css" href="../../css/sight.css">
|
||
|
|
<link rel="stylesheet" type="text/css" href="css/template.css">
|
||
|
|
|
||
|
|
<script src="../../js/jquery-3.6.4.min.js"></script>
|
||
|
|
<script src="qrc:///qtwebchannel/qwebchannel.js"></script>
|
||
|
|
<script src="../../js/sight.js"></script>
|
||
|
|
<script>
|
||
|
|
$(document).ready(function(){
|
||
|
|
//getData("name", true);
|
||
|
|
sendMessage("price_change")
|
||
|
|
|
||
|
|
dict = {}
|
||
|
|
dict["account_id"] = 10227;
|
||
|
|
dict["account_name"] = "Test Bank";
|
||
|
|
dict["details"] = {};
|
||
|
|
dict["details"]["phone"] = 123456789
|
||
|
|
dict["details"]["place"] = "New York"
|
||
|
|
sendMessage("test", ["other","main"], dict)
|
||
|
|
});
|
||
|
|
|
||
|
|
function message(label,data) {
|
||
|
|
if(label === "test") {
|
||
|
|
data_dict = JSON.parse(data)
|
||
|
|
return "DATA - "+data_dict["account_name"] + " - " + data_dict["details"]["place"]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<main id="sight">
|
||
|
|
<div id="stitlebar">
|
||
|
|
<div id="stitle">TITLE</div>
|
||
|
|
<div id="sclose"></div>
|
||
|
|
<div id="stoggled"></div>
|
||
|
|
<div id="sminimize"></div>
|
||
|
|
</div>
|
||
|
|
<div id="content">
|
||
|
|
OTHER
|
||
|
|
<a href="main.html">Open the main inside this sight!</a>
|
||
|
|
</div>
|
||
|
|
<div id="sresize"></div>
|
||
|
|
</main>
|
||
|
|
</body>
|
||
|
|
</html>
|