mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-24 10:33:34 +03:00
41 lines
854 B
HTML
41 lines
854 B
HTML
<html>
|
|
<head>
|
|
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"/>
|
|
<style>
|
|
#green-square {
|
|
background: green;
|
|
width: 200px;
|
|
height: 200px;
|
|
text-align: center;
|
|
line-height: 200px;
|
|
color: white;
|
|
}
|
|
#green-square span {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id='loading'>
|
|
Loading...
|
|
</div>
|
|
<div id='script' style='display:none'>
|
|
<p>
|
|
The current time is:
|
|
<span id='current-time'>...</span>
|
|
</p>
|
|
|
|
<div id='green-square'>
|
|
<span>Click me!</span>
|
|
</div>
|
|
<p>
|
|
You've clicked the green square
|
|
<span id='num-clicks'>0</span>
|
|
times
|
|
</p>
|
|
</div>
|
|
<script src='./index.js'></script>
|
|
</body>
|
|
</html>
|