snipplets.dev/code/C/webui/index.html
2023-09-26 22:05:13 +03:00

24 lines
511 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ololo</title>
<script src="/webui.js"></script>
</head>
<body>
<button onclick="abc('string');">ssf</button>
<br>
<button id="clck">Click</button>
<script type="text/javascript">
window.onload = function () {
window.resizeTo(500, 500);
}
function abc(text) {
webui_fn('MyID', text).then((response) => { console.log(response); });
}
</script>
</body>
</html>