html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!-- Created by Gekoda -->
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<!--How can i make this work as the real function, for example: eval turns a string or calvulation into an integer calculation print("hi") and making it behave as javascript code?--><div id="input" contenteditable>
</div>
<script>
function print(){
var code=document.getElementById("input").innerText;
eval(code);
}
</script>
<button onclick="print()">run</button>
</body>
</html>
Enter to Rename, Shift+Enter to Preview
css
css
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
/* Created by Gekoda */
body {
margin:0;
padding:0;
}
div{
height:100vh;
width:90vw;
background-color:#333;
position:fixed;
top:0;
left:0;
color:white;
z-index:1;
padding:20px;
}
div:focus,button:focus{
outline:none;
}
button{
position:fixed;
bottom:20px;
right:20px;
z-index:3;
font-size:20px;
border-radius:5px;
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
4
5
6
// Created by Gekoda
window.onload=function(){
}
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run