Created
June 4, 2020 13:24
-
-
Save vsecoder-old-account/42c3bb1ec6bac2e44be5e509f0927562 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta charset="utf-8"> | |
<link rel="icon" href="favicon.ico"> | |
<style> | |
html { | |
background-color: darkblue; | |
} | |
textarea { | |
float: left; | |
width: 50%; | |
max-width: 50%; | |
min-width: 50%; | |
min-height: 700px; | |
max-height: 700px; | |
height: 700px; | |
background-color: black; | |
color: #00ff00; | |
} | |
browser { | |
float: right; | |
width: 49%; | |
height: 700px; | |
border: 2px double black; | |
background-color: white; | |
display: block; | |
} | |
.run { | |
text-align: center; | |
color: white; | |
background-color: green; | |
width: 10%; | |
} | |
</style> | |
<redactor> | |
<button class="run" id="run" onclick="runing()">ЗАПУСК</button> | |
<br> | |
<textarea id="code"> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Документ</title> | |
<style></style> | |
</head> | |
<body> | |
<h1>Всеволод html</h1> | |
</body> | |
</html></textarea> | |
<browser id="play"> | |
</browser> | |
</redactor> | |
<script> | |
var code = document.getElementById("code"); | |
var run = document.getElementById("run"); | |
var play = document.getElementById("play"); | |
var coding = code.value; | |
function runing () { | |
coding = code.value; | |
document.getElementById('play').innerHTML = coding; | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment