mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-05 17:40:51 +08:00
21 lines
562 B
HTML
Executable File
21 lines
562 B
HTML
Executable File
<html>
|
|
<script language="javascript">
|
|
/* This function is invoked by the activity */
|
|
function wave() {
|
|
document.getElementById("droid").src="android_waving.png";
|
|
alert("Hello from JavaScript!");
|
|
}
|
|
</script>
|
|
<body>
|
|
<!-- Calls into the javascript interface for the activity -->
|
|
<a onClick="window.demo.clickOnAndroid()"><div style="width:80px;
|
|
margin:0px auto;
|
|
padding:10px;
|
|
text-align:center;
|
|
border:2px solid #202020;" >
|
|
<img id="droid" src="android_normal.png"/><br>
|
|
Click me!
|
|
</div></a>
|
|
</body>
|
|
</html>
|