forked from daurnimator/lua.vm.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript_example.html
More file actions
60 lines (50 loc) · 1.82 KB
/
script_example.html
File metadata and controls
60 lines (50 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>lua.vm.js script example</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/bootstrap.css" rel="stylesheet">
<style>
body {
padding-top: 60px;
}
</style>
<link href="css/bootstrap-responsive.css" rel="stylesheet">
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="brand" href="lua.vm.js.html">lua.vm.js</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li><a href="lua.vm.js.html">Benchmarks+FAQ</a></li>
<li><a href="repl.html">REPL</a></li>
<li class="active"><a href="script_example.html">Script Example</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="container">
<div class="hero-unit">
<h2>Lua Script Tags Example</h2>
<p>Do view source on this page!</p>
</div>
</div>
<!-- begin script tag example -->
<script src="lua/src/emlua_shell.js"></script>
<script src="lua.js"></script>
<script type="text/lua">
js.global.alert('hello from Lua script tag in HTML!') -- this is Lua!
</script>
<!-- end script tag example -->
<a href="https://github.com/kripken/lua.vm.js"><img style="position: absolute; top: 35px; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
</body>
</html>