2023-05-17 10:16:15 +00:00
|
|
|
<html>
|
|
|
|
|
<head>
|
2023-11-02 19:17:25 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="../../../core/template_files/css/sight.css">
|
2023-05-17 10:16:15 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="css/template.css">
|
|
|
|
|
|
|
|
|
|
<script src="template.js"></script>
|
2023-11-02 19:17:25 +00:00
|
|
|
<script src="../../../core/template_files/js/jquery-3.6.4.min.js"></script>
|
2023-05-17 10:16:15 +00:00
|
|
|
<script src="qrc:///qtwebchannel/qwebchannel.js"></script>
|
|
|
|
|
<script>
|
|
|
|
|
var init_sight={
|
|
|
|
|
'width' : 300,
|
2023-11-02 19:17:25 +00:00
|
|
|
'height' : 300,
|
|
|
|
|
'pos_x' : 450,
|
|
|
|
|
'pos_y': 450
|
2023-05-17 10:16:15 +00:00
|
|
|
}
|
2023-10-26 18:47:39 +00:00
|
|
|
|
|
|
|
|
|
2023-05-17 10:16:15 +00:00
|
|
|
</script>
|
2023-10-26 18:47:39 +00:00
|
|
|
|
2023-11-02 19:17:25 +00:00
|
|
|
<script src="../../../core/template_files/js/sight.js"></script>
|
2023-05-17 10:16:15 +00:00
|
|
|
<script>
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
/*addData("name", "Balazs", true);
|
|
|
|
|
getData("name");*/
|
2023-11-09 13:57:36 +00:00
|
|
|
window.sight.register("message","price_change")
|
|
|
|
|
window.sight.register("message","updated")
|
|
|
|
|
/*dict = {}
|
|
|
|
|
dict["account_id"] = 10227;
|
|
|
|
|
dict["account_name"] = "Test Bank";
|
|
|
|
|
dict["details"] = {};
|
|
|
|
|
dict["details"]["phone"] = 123456789
|
|
|
|
|
dict["details"]["place"] = "New York"
|
|
|
|
|
|
|
|
|
|
sendMessage("test",dict, ["other"])*/
|
2023-05-17 10:16:15 +00:00
|
|
|
});
|
2023-10-26 18:47:39 +00:00
|
|
|
|
2023-11-09 13:57:36 +00:00
|
|
|
function recieveMessage(referral_name, data) {
|
2023-11-09 20:22:58 +00:00
|
|
|
if(referral_name === "price_change") {
|
|
|
|
|
alert("MAIN got from OTHER (price_change): " + referral_name + " " + data.account_name + " " + data.amount + " -> 12500")
|
2023-11-09 13:57:36 +00:00
|
|
|
data.amount = 12500
|
2023-11-09 20:22:58 +00:00
|
|
|
sendMessage("updated", data, ["other"])
|
|
|
|
|
}
|
2023-11-09 13:57:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*function recieveMessage(referral_name, data) {
|
|
|
|
|
|
|
|
|
|
alert(referral_name + " " + data.account_name)
|
|
|
|
|
}*/
|
|
|
|
|
|
|
|
|
|
/*function message(label, data) {
|
2023-10-26 18:47:39 +00:00
|
|
|
if(label === "price_change") {
|
2023-11-09 13:57:36 +00:00
|
|
|
//sendMessage("changed_now")
|
2023-10-27 08:58:33 +00:00
|
|
|
return "I update my price - "+label+"; DATA - "+data
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(label === "test") {
|
|
|
|
|
return "MAIN GOT TEST MESSAGE"+"; DATA - "+data
|
2023-10-26 18:47:39 +00:00
|
|
|
}
|
2023-11-09 13:57:36 +00:00
|
|
|
}*/
|
2023-10-27 08:58:33 +00:00
|
|
|
|
2023-05-17 10:16:15 +00:00
|
|
|
</script>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<main id="sight">
|
|
|
|
|
<div id="stitlebar">
|
|
|
|
|
<div id="stitle">Main Template</div>
|
|
|
|
|
<div id="sclose"></div>
|
2023-10-26 10:27:01 +00:00
|
|
|
<div id="stoggled"></div>
|
2023-05-17 10:16:15 +00:00
|
|
|
<div id="sminimize"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="content">
|
2023-10-26 10:27:01 +00:00
|
|
|
<div scontent="main"></div>
|
|
|
|
|
<div scontent="main_text"></div>
|
2023-05-17 10:16:15 +00:00
|
|
|
</div>
|
|
|
|
|
<div id="sresize"></div>
|
|
|
|
|
</main>
|
|
|
|
|
</body>
|
2023-10-30 19:43:35 +00:00
|
|
|
</html>
|