mirror of
https://github.com/timmypidashev/web.git
synced 2026-04-14 11:03:50 +00:00
implement trinket.io for coding
This commit is contained in:
@@ -1,39 +1,2 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
||||||
<title>Editor</title>
|
|
||||||
<style type="text/css" media="screen">
|
|
||||||
body {
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
#editor {
|
<iframe src="https://trinket.io/embed/python/54ef42852f" width="100%" height="356" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>
|
||||||
margin: 0;
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<pre id="editor">function foo(items) {
|
|
||||||
var i;
|
|
||||||
for (i = 0; i < items.length; i++) {
|
|
||||||
alert("Ace Rocks " + items[i]);
|
|
||||||
}
|
|
||||||
}</pre>
|
|
||||||
|
|
||||||
<script src="src-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
|
|
||||||
<script>
|
|
||||||
var editor = ace.edit("editor");
|
|
||||||
editor.setTheme("ace/theme/twilight");
|
|
||||||
editor.session.setMode("ace/mode/javascript");
|
|
||||||
</script>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user