mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
31 lines
946 B
HTML
31 lines
946 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<style>
|
|
body {background-color: #EFEFEF}
|
|
canvas, label, button {
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
display: block;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<p><label style="font-size:30px" id="some_label">Waiting for some action...</label></p>
|
|
<p><button style="font-size:30px" onclick="JSExample1('some string', true, 777);">Press me to execute native function from JS!</button></p>
|
|
<p><button style="font-size:30px" onclick="JSExample2('second function', 123);">Press me to execute another native function from JS!</button></p>
|
|
<p><button style="font-size:30px" onclick="console.log('debug message!');">Press me to add console message</button></p>
|
|
|
|
<script>
|
|
function CallbackExample(r)
|
|
{
|
|
document.getElementById('some_label').innerHTML = 'Javascript function executed by native code: ' + r;
|
|
}
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|