mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
46 lines
No EOL
1.6 KiB
HTML
46 lines
No EOL
1.6 KiB
HTML
<form>
|
|
<div>
|
|
<label>Script:</label>
|
|
<br>
|
|
<div id="demoscript">
|
|
</div>
|
|
<br><br>
|
|
<button onclick="clearInput(); return false;">
|
|
Clear Input
|
|
</button>
|
|
<button onclick="executeScript(); return false;">
|
|
Run
|
|
</button>
|
|
</div>
|
|
<br><br>
|
|
<div>
|
|
<label>Output:</label>
|
|
<br>
|
|
<textarea readonly rows="10" cols="70" id="output"></textarea>
|
|
<br><br>
|
|
<button onclick="clearOutput(); return false;">
|
|
Clear Output
|
|
</button>
|
|
</div>
|
|
</form>
|
|
<style>
|
|
#demoscript {
|
|
position: relative;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 300px;
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
}
|
|
</style>
|
|
<link rel="stylesheet" data-name="vs/editor/editor.main" href="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.26.1/min/vs/editor/editor.main.min.css">
|
|
<div id="container" style="height:400px;border:1px solid black;"></div>
|
|
<script>var require = { paths: { 'vs': 'https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.30.1/min/vs' } }</script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.30.1/min/vs/loader.min.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.30.1/min/vs/editor/editor.main.nls.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.30.1/min/vs/editor/editor.main.js"></script>
|
|
|
|
<script async src="https://github.com/Roblox/luau/releases/latest/download/Luau.Web.js"></script>
|
|
<script type="text/javascript" src="../../../assets/js/repl.js"></script> |